maribelacosta/wikiwho

Difficulty in installation

Closed this issue · 13 comments

While installing wikiwho I got the following error:
File "C:\Python34\WikiwhoRelationships.py", line 14, in
from structures import Text
ImportError: No module named 'structures'

hi, to narrow down the error source: did you download all corresponding folders and named the folders “etc” and “structures” as in our master branch?

On 21.09.2015, at 18:58, shruti927 notifications@github.com wrote:

While installing wikiwho I got the following error:
File "C:\Python34\WikiwhoRelationships.py", line 14, in
from structures import Text
ImportError: No module named 'structures'


Reply to this email directly or view it on GitHub #8.

No, I just ran the wikiwhorelationships.py file. Do I have to run the files in etc and structures folders or is there any other way to do the same?

You just have to download all the files and subfolders and put/unzip them them into the same directory. Then run the WikiwhoRelationships.py - or, if you really only need authorship, the Wikiwho.py.

On 24.09.2015, at 13:35, shruti927 notifications@github.com wrote:

No, I just ran the wikiwhorelationships.py file. Do I have to run the files in etc and structures folders or is there any other way to do the same?


Reply to this email directly or view it on GitHub #8 (comment).

I did the same but still got the above error.

Hi Fabian, Shruti is helping with the accuracy review project, so needs
dates more than authorship.

Shruti, please document the steps you used to create a PythonAnywhere
account, and the resulting Python source files and subdirectories (as much
of the folder structure as you can easily obtain, except for large parts
you believe were installed by PythonAnywhere instead of your work --
include the folders for those, but not the files.) The steps should be
sufficient for someone else to reproduce the same problem, and you should
try them again to make sure they do reproduce the problem using another
account. If your steps do reproduce the problem, then include the error
messages produced with any differences between the two.

Please add that information here and on:
https://etherpad.wikimedia.org/p/accuracyreview

Thank you both!

On Thu, Sep 24, 2015 at 7:28 AM, shruti927 notifications@github.com wrote:

I did the same but still got the above error.


Reply to this email directly or view it on GitHub
#8 (comment)
.

hi, so what Python version are you actually using? if you are using the python 2.7 version from the master branch, did you use the wmf utilities from here: https://bitbucket.org/halfak/wikimedia-utilities/get/2cf1f506e336.zip and install them or put them into the same folder?

Fabian, this may have been my fault for suggesting
https://github.com/maribelacosta/wikiwho/tree/python3
with https://github.com/mediawiki-utilities/python-mediawiki-utilities
but I was very hopeful that it would be okay because mediawiki-utilities is
only being maintained in Python 3. I should have asked you or suggested the
Python 2.7 version first.

On Thu, Sep 24, 2015 at 12:30 PM, Fabian Flöck notifications@github.com
wrote:

hi, so what Python version are you actually using? if you are using the
python 2.7 version from the master branch, did you use the wmf utilities
from here:
https://bitbucket.org/halfak/wikimedia-utilities/get/2cf1f506e336.zip and
install them or put them into the same folder?


Reply to this email directly or view it on GitHub
#8 (comment)
.

I just suggested the way to run it for 2.7, but it works fine as well with python 3. I just tested it with our python3 branch, python 3.4 and the up-to-date mediawiki-utilities and it runs without hiccups. So I'm not sure what the issue is on your side.

I am using Python 3 on Windows 8.1.Should I send the screenshots and mention the steps I tried?

yes, that would be helpful --> also, on which OS are you?

  1. I installed Python 3.4.
  2. I downloaded the mediawiki-utilities folder from https://github.com/mediawiki-utilities/python-mediawiki-utilities.
  3. I wrote the following command in cmd to install mediawiki-utilities:
    C:/Python34/Scripts/pip install mediawiki-utilities
  4. I downloaded wikiwho folder from https://github.com/maribelacosta/wikiwho/tree/python3 and ran the WikiwhoRelationships.py and first I got the following error and the new one in screnshot
    screenshot 2015-09-25 16 53 07
    :
    File "C:\Python34\WikiwhoRelationships.py", line 14, in
    from structures import Text
    ImportError: No module named 'structures'
    screenshot 2015-09-25 16 37 09

hi, sorry for the late response.

  • I now tried it on windows(7) as well and using the python3 branch with the up-to-date mw-utlitites with python3.4.3 or 3.5 indeed throws errors coming from mw-utilities that do not appear on unix OSs apparently. so if you strictly want to use the python3 version (and Win) please ask aaron halfaker about those issues (or 0nsen who ported to python3, but he uses only Linux afaik).
  • the “structures”-not-found error (which would be usually the folder missing) never occured for me nor anyone i know that used wikiwho so far. if you just unzip the master-branch package i don’t see how that can happen.
  • anyway, as the easiest solution: the master branch with python2.7 and the old bitbucket-version of mw-utilities runs fine for me on Win7. so i just recommend using that one.

On 25.09.2015, at 13:14, shruti927 notifications@github.com wrote:

I installed Python 3.4. 2.I downloaded the mediawiki-utilities folder from https://github.com/mediawiki-utilities/python-mediawiki-utilities https://github.com/mediawiki-utilities/python-mediawiki-utilities
I wrote the following command in cmd to install mediawiki-utilities: C:/Python34/Scripts/pip install mediawiki-utilities
I downloaded wikiwho folder from https://github.com/maribelacosta/wikiwho/tree/python3 https://github.com/maribelacosta/wikiwho/tree/python3 and ran the WikiwhoRelationships.py and got the following error: File "C:\Python34\WikiwhoRelationships.py", line 14, in from structures import Text ImportError: No module named 'structures' https://cloud.githubusercontent.com/assets/5814476/10099174/b986c9e8-63a4-11e5-8022-2daa29d9ae83.png

Reply to this email directly or view it on GitHub #8 (comment).

on addition: I just saw "File "C:\Python34\WikiwhoRelationships.py", line 14, in from structures import Text ImportError: No module named 'structures' " --> Did you copy just the WikiwhoRelationships.py in the Python34 folder without the rest of the folders and try to run it?