Last modified: 2014-06-10 18:52:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68442, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66442 - ImportError: No module named terminal_interface
ImportError: No module named terminal_interface
Status: RESOLVED WONTFIX
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All Linux
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-10 18:38 UTC by Travis Briggs
Modified: 2014-06-10 18:52 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Travis Briggs 2014-06-10 18:38:27 UTC
I believe my compat install is sync'd to the latest version. I cannot run version.py as you see below.

vagrant@mediawiki-vagrant:/vagrant/pywikibot-compat$ python login.py -dir:/home/vagrant/.pywikibot
Traceback (most recent call last):
  File "login.py", line 59, in <module>
    import query
  File "/vagrant/pywikibot-compat/query.py", line 30, in <module>
    import wikipedia as pywikibot
  File "/vagrant/pywikibot-compat/wikipedia.py", line 9742, in <module>
    exec "import %s_interface as uiModule" % config.userinterface
  File "<string>", line 1, in <module>
ImportError: No module named terminal_interface

vagrant@mediawiki-vagrant:/vagrant/pywikibot-compat$ python version.py -dir:/home/vagrant/.pywikibot
No module named terminal_interface
Serious import error; pywikibot not available - was it configured?
Traceback (most recent call last):
  File "version.py", line 20, in <module>
    pywikibot.output('Pywikibot: %s' % getversion())
AttributeError: 'module' object has no attribute 'output'
Comment 1 Merlijn van Deen (test) 2014-06-10 18:41:31 UTC
That sounds like your checkout is incomplete -- with the userinterfaces dir (or it's contents) missing.
Comment 2 Merlijn van Deen (test) 2014-06-10 18:42:43 UTC
Oh, wait. It's because of -dir:/home/vagrant/.pywikibot. If you want to use that syntax (i.e. changing the place where user-config.py is stored), please use core and not compat.
Comment 3 Travis Briggs 2014-06-10 18:52:32 UTC
Okay, no problem. I just thought that since that -dir option existed it would work. The real problem is that I'm developing on a MediaWiki vagrant instance (http://www.mediawiki.org/wiki/MediaWiki-Vagrant) and the directory is shared via NFS, so the permissions are wonky and the user-config.py can't be in the base pywikibot-compat directory.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links