Craftjenn added a comment.

  **commands**
  
  python3 pwb.py scripts imageharvest http://jenny.gb.free.fr/imgupload
  then python3 pwb.py scripts/userscripts/imageharvest 
http://jenny.gb.free.fr/imgupload
  
  **Python 3.6.9** on ubuntu 18.04.4 LTS
  
  **Note**: I added, on top of several files #!/usr/bin/python3.6 (for ex in 
pwb.py or imageharvest.py)
  
  Is that what you call a full traceback ?
  
  ~/bin/core$ **python3 pwb.py imageharvest http://jenny.gb.free.fr/imgupload**
  
  WARNING: /usr/lib/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't 
resolve package from __spec__ or __package__, falling back on __name__ and 
__path__
    return f(*args, **kwds)
  
  Python 3.6.9 (default, Apr 18 2020, 01:56:04) 
  [GCC 8.4.0]
  
  What text should be added at the end of the description of each image from 
this url?
  
  Traceback (most recent call last):
  
    File "pwb.py", line 390, in <module>
      if not main():
    File "pwb.py", line 385, in main
      file_package)
    File "pwb.py", line 101, in run_python_file
      main_mod.__dict__)
    File "./scripts/userscripts/imageharvest.py", line 160, in <module>
      main()
    File "./scripts/userscripts/imageharvest.py", line 154, in main
      run_bot(url, image_url, desc)
    File "./scripts/userscripts/imageharvest.py", line 104, in run_bot
      ilinks = get_imagelinks(url)
    File "./scripts/userscripts/imageharvest.py", line 78, in get_imagelinks
      links.append(urllib.basejoin(url, link))
  
  AttributeError: module 'urllib' has no attribute 'basejoin'
  Found 1 ryzomcommon:en processes running, including this one.
  Dropped throttle(s).
  Closing network session.
  CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
  Network session closed.

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

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

To: Craftjenn
Cc: Xqt, Aklapper, pywikibot-bugs-list, Craftjenn, Dijkstra, Zkhalido, Viztor, 
Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to