https://bugzilla.wikimedia.org/show_bug.cgi?id=66442
Bug ID: 66442 Summary: ImportError: No module named terminal_interface Product: Pywikibot Version: compat (1.0) Hardware: All OS: Linux Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: audiodude@gmail.com Web browser: --- Mobile Platform: ---
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'
https://bugzilla.wikimedia.org/show_bug.cgi?id=66442
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |valhallasw@arctus.nl
--- Comment #1 from Merlijn van Deen valhallasw@arctus.nl --- That sounds like your checkout is incomplete -- with the userinterfaces dir (or it's contents) missing.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66442
--- Comment #2 from Merlijn van Deen valhallasw@arctus.nl --- 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66442
Travis Briggs audiodude@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX
--- Comment #3 from Travis Briggs audiodude@gmail.com --- 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.
pywikipedia-bugs@lists.wikimedia.org