Comments (17)
python26 ./youtube_upload.py [email protected] --password=wbfhhufdfsdfdsfs
~/video/sdnjkasdjkasdjasda.mpg --title= bla bla bla
I guess there are some quotes on this title. Anyway, I have to upload it again,
I made change yesterday, category is required, try to use one.
Original comment by tokland
on 25 Mar 2011 at 8:01
from youtube-upload.
try please the repository version so I know it's ok and I can upload it. It's
working for me.
Original comment by tokland
on 25 Mar 2011 at 8:04
from youtube-upload.
Full line here:
python26 ./youtube_upload.py [email protected] --password=sdnmasdasdad
~/video/gallery.avi --title="word1 word2 word3 word4 word5" --description="word
word word word word, word word word word word." --category="Entertainment"
--keywords="many word via punto"
Original comment by [email protected]
on 25 Mar 2011 at 8:07
from youtube-upload.
Also, video was around 7m, it DOES not requires splitting at all.
Original comment by [email protected]
on 25 Mar 2011 at 8:07
from youtube-upload.
note that the last version does not split at all. If it gets more than one file
then it makes the "title [n/total]" thing. So I guess you have to put all your
options before the argument, this is typical UNIX style.
Regarding the 601 error now I can reproduce it, it seems a change in the API,
the script worked yesterday for sure. I'll check it.
Original comment by tokland
on 25 Mar 2011 at 8:23
- Changed state: Started
from youtube-upload.
Actually, I only get this error if the file I am trying to upload does not
exist. can you check? I can upload a video if the file exists.
Original comment by tokland
on 25 Mar 2011 at 8:25
from youtube-upload.
Ok, now I get it: for whatever reason your putting the file in the middle of
the options is making python/optparse/whatever think they are files to upload.
And obviously they do not exist, thus the error. So just put the filename at
the end and it should work.
Your command works on my ArchLinux python 2.7, though.
Which OS are you running this?
Original comment by tokland
on 25 Mar 2011 at 8:41
from youtube-upload.
Linux/CentSO 5
Hmm, okay, next time I will try to change the order.
python26 here, local gdata install
Original comment by [email protected]
on 25 Mar 2011 at 10:48
from youtube-upload.
Original comment by tokland
on 25 Mar 2011 at 10:55
- Changed state: Invalid
from youtube-upload.
[deleted comment]
from youtube-upload.
I'm having this same error now myself. I have the file name at the end, but
have still getting this error.
Here is my command:
youtube-upload [email protected] --password=password
--title="Test1-AutoUpload_FirstTry" --category=Music
/users/jasonshaw/Desktop/CamerProject/output_test/HawksHunting.flv
Here is the full trace:
Start upload using basic gdata API:
/users/jasonshaw/Desktop/CamerProject/output_test/HawksHunting.flv
Traceback (most recent call last):
File "/usr/local/bin/youtube-upload", line 445, in <module>
sys.exit(catch_exceptions(EXIT_CODES, main_upload, sys.argv[1:]))
File "/usr/local/bin/youtube-upload", line 104, in catch_exceptions
fun(*args, **kwargs)
File "/usr/local/bin/youtube-upload", line 423, in main_upload
entry = youtube.upload_video(*args, **kwargs)
File "/usr/local/bin/youtube-upload", line 190, in upload_video
return self.service.InsertVideoEntry(video_entry, path)
File "/Library/Python/2.7/site-packages/gdata/youtube/service.py", line 647, in InsertVideoEntry
'with a .read() method' % type(filename_or_handle))})
gdata.youtube.service.YouTubeError: {'status': 601, 'body':
'`filename_or_handle` must be a path name or a file-like object', 'reason':
"Found <type 'str'>, not path name or object with a .read() method"}
Original comment by [email protected]
on 3 Jan 2012 at 6:03
from youtube-upload.
@jason: it works for me. I'd a more complete bug report:
- OS
- python version
- python-gdata version
- youtube-upload version
- wc -c /users/jasonshaw/Desktop/CamerProject/output_test/HawksHunting.flv
Original comment by tokland
on 3 Jan 2012 at 2:32
- Changed state: Started
from youtube-upload.
Also, try to edit the service.py file and add around line 630:
print repr(filename_or_handle), os.path.exists(filename_or_handle) # new line
if (isinstance(filename_or_handle, (str, unicode))
and os.path.exists(filename_or_handle)):
And re-run the command and look at the print output.
Original comment by tokland
on 3 Jan 2012 at 4:44
from youtube-upload.
Original comment by tokland
on 5 Feb 2012 at 10:42
- Changed state: Stalled
from youtube-upload.
@jason
I had the same problem, and it turned out to be the following for me:
1. The paths I used were too long. I run the script on a router (WL500W), and
apparently the firmware I had did not allow for too long commands. So I created
couple of short symlinks to the appropriate scripts, and used the short
versions of the options (-p instead of --password=, etc.. )
2. I had a blank space in the path (My Pictures), and even though I escaped it
in the path(with \), it still didn't work. Again, making a symlink "MyPictures"
that point to the "My Pictures" folder did the job.
Some other things to look out for:
- If you are running the script from another script, make sure you use the full
paths, and don't rely on changing the current script path. (like chdir() in
php).
- Make sure the paths does not have non-latin chars.
Original comment by shumoapp
on 3 Apr 2012 at 11:29
from youtube-upload.
When using on windows, make sure that the title, description or anything else
is in Double quotes ("), because if you use single quotes (') it treats it like
a part of the word and gives errors. That aside, an awesome tool!
Original comment by [email protected]
on 2 Aug 2012 at 8:52
from youtube-upload.
Original comment by tokland
on 13 May 2014 at 2:55
from youtube-upload.
Related Issues (20)
- No Upload on IPv6 HOT 4
- update video and more options HOT 1
- possible support the "Upload a video thumbnail image" function ?? HOT 1
- upload with socks proxy HOT 1
- Bulk upload HOT 2
- Support Resumable Uploads HOT 2
- options HOT 1
- Uploading no longer possible HOT 5
- youtube-upload can't log in when using 2 factor auth HOT 4
- Ability to upload srt subtitles with the video HOT 2
- Upload on a specific channel HOT 1
- How select Creative Commons license for videos instead of the standard YouTube license? HOT 1
- Upload Error HOT 2
- Error: no such option: --email:[email protected] HOT 7
- How to choose which youtube account to upload from? HOT 3
- Auth failed HOT 8
- Upload Thumbnail HOT 1
- Patch for /trunk/youtube_upload/youtube_upload.py HOT 1
- description from file HOT 2
- How to set "Video language", "Monitize" field when upload? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-upload.