Billinghurst added a comment.
Still failing
billinghurst@tools-sgebastion-07:~$ python3 -V
Python 3.5.3
billinghurst@tools-sgebastion-07:~$ ls -l scripts/up*
-rwxr-xr-x 1 tools.pywikibot tools.pywikibot 7906 Jan 22 01:01
scripts/upload.py
Here is the console ...
File with name Alice_in_Wonderland_%281903%29_-_yt.webm already exists. Would
you like to change the name? (Otherwise file will be overwritten.) ([Y]es,
[n]o): n
The suggested description is:
{{do not move to Commons|expiry=2023}}
{{int:filedesc}}
----------------
{{Information
| Description ={{en
| 1=1903 silent film}} |
| Source =[https://www.outube.com/watch?v=JuNVHPUxKLI YouTube]
|
| Author =[[author:Cecil Hepworth|Cecil Hepworth]] and [[author:Percy
Stow|Percy Stow]] |
| Date =1903
|
| Permission ={{PD/US
| 1953}} |
| other_versions =
|
|
}}
<!-- [[Category:Video display resolution 480 x 360]]
[[Category:WebM videos]]
[[Category:Videos of 1903]]
[[Category:Silent films videos]]
[[Category:Videos from Edison Manufacturing]]
[[Category:Black and white videos]]
[[Category:Alice in Wonderland films]] -->
Do you want to change this description? ([y]es, [N]o, [q]uit): y
ERROR: no display name and no $DISPLAY environment variable
Do you want to change this description? ([y]es, [N]o, [q]uit): y
ERROR: no display name and no $DISPLAY environment variable
Do you want to change this description? ([y]es, [N]o, [q]uit): n
Uploading file to wikisource:en...
Reading file
https://upload.wikimedia.org/wikipedia/commons/5/54/Alice_in_Wonderland_%281903%29_-_yt.webm
0 pages read
0 pages written
0 pages skipped
Script terminated by exception:
ERROR: TypeError: invalid file: PosixPath('/tmp/tmpm2hcnhno')
Traceback (most recent call last):
File "scripts/upload.py", line 224, in <module>
main()
File "scripts/upload.py", line 220, in main
bot.run()
File
"/data/project/shared/pywikibot/stable/pywikibot/specialbots/_upload.py", line
445, in run
self.upload_file(file_url)
File
"/data/project/shared/pywikibot/stable/pywikibot/specialbots/_upload.py", line
391, in upload_file
file_url = self.read_file_content(file_url)
File
"/data/project/shared/pywikibot/stable/pywikibot/specialbots/_upload.py", line
132, in read_file_content
with open(path, 'ab') as fd:
TypeError: invalid file: PosixPath('/tmp/tmpm2hcnhno')
CRITICAL: Exiting due to uncaught exception <class 'TypeError'>
TASK DETAIL
https://phabricator.wikimedia.org/T272345
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, Billinghurst
Cc: Xqt, Multichill, Aklapper, pywikibot-bugs-list, Billinghurst, JohnsonLee01,
SHEKH, Dijkstra, Khutuck, 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