Xqt added a comment.

  > I don't seem to have the core files in my project:
  
  Yes because Pywikibot is located via symlink at 
`/data/project/shared/pywikibot/stable`. I've added two symlinks within my 
project, one for core and one for the stable release which points to 
`/shared/pywikibot/core` and `/shared/pywikibot/stable`. To call a script I use 
the pwb wrapper script:
  `core/pwb.py <scriptname>` or `stable/pwb.py <scriptname>` but also a direct 
call works for me, e.g.
  `python3 /data/project/shared/pywikibot/core/pywikibot/scripts/version.py`. 
So try again with the pwb.py wrapper; calling the version script should not 
check for the user_config.py.
  
  > inserted export 
PYTHONPATH=/data/project/shared/pywikibot/stable:/data/project/shared/pywikibot/stable/scripts
  
  I also have this but i am not sure if this is necessary
  
  > also tried following this other guide with
  > 
PYTHONPATH=/shared/pywikibot/core:/shared/pywikibot/core/externals/httplib2:/shared/pywikibot/core/scripts,
 same error
  
  the httplib2 path is surely outdated; it was for Pywikibot 1.0
  
  If you still get a traceback please file it here because there where a lot of 
changes since 2019.

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

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

To: Xqt
Cc: Martimpassos, Xqt, pywikibot-bugs-list, Aklapper, bd808, Dvorapa, 
zhuyifei1999, JoKalliauer, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to