Magul added a comment.

Could You, please, provide more details here?

It's working for me. My successful path looks like:

  • I have requested Tools Labs account here.
  • I uploaded my ssh key as described here.
  • After these steps I was able to login to ssh [email protected].
  • I edited my .bash_profile file. The whole content of it looks like:
export PYTHONPATH=/shared/pywikipedia/core:/shared/pywikipedia/core/externals/httplib2:/shared/pywikipedia/core/scripts

  • I need to relogin to load new .bash_profile settings to shell.
  • After relogin command echo $PYTHONPATH returned:
/shared/pywikipedia/core:/shared/pywikipedia/core/externals/httplib2:/shared/pywikipedia/core/scripts
  • I starting python and executing commands (with output):
magul@tools-bastion-03:~$ python
Python 2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/shared/pywikipedia/core', '/shared/pywikipedia/core/externals/httplib2', '/shared/pywikipedia/core/scripts', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7']
>>> from pywikibot.specialbots import UploadRobot
>>>

Is Your rutine here somehow different?


TASK DETAIL
https://phabricator.wikimedia.org/T151850

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Shizhao, Magul
Cc: TerraCodes, Luke081515, Jay8g, Magul, Aklapper, Labs, Shizhao, pywikibot-bugs-list, MayS, Mdupont, JJMC89, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to