Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Doesn't run in python 2.6.2: TypeError: NamedTemporaryFile() keywords must be strings #5539
Comments
|
Post the full output you get when running with |
|
I run: I get: |
|
Will be fixed in the next version. Thanks for the report. |
Hi!
I'm using sl4a python version 2.6.2 for Android. I need to get links to videos and everything is working fine except caching. If I add --cache-dir parameter with my local folder (have write access) I get:
WARNING: Writing cache to u'/data/data/com.example.test/cache/ytdl/youtube-sigfuncs/js_en_US-vflkH_4LI_43.42.json' failed: Traceback (most recent call last):
File "/data/data/com.example.test/files/ytdl/youtube_dl/cache.py", line 50, in store
write_json_file(data, fn)
File "/data/data/com.example.test/files/ytdl/youtube_dl/utils.py", line 117, in write_json_file
tf = tempfile.NamedTemporaryFile(**args)
TypeError: NamedTemporaryFile() keywords must be strings
It seems it's relating to this issue, that was not fixed properly:
#3813