New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when uploading video - "AttributeError: 'NoneType' object has no attribute 'extension'" #46
Comments
please, add relevant informations such as python and instapy-cli version |
Hello. I've got the same sort of error on .mp4 file in ubuntu. Pictures are send successfully without errors. instapy-cli 0.0.10 | python 3.5.2 Traceback (most recent call last): |
Hi, python ver : 3.6.8 | instapy-cli 0.0.12 Traceback (most recent call last): Help would greatly appreciated Thanks |
This is duo to the missing sanity check for the filetype. Somehow the lib filetype is having problems with some mp4 and can't guess the right type. |
Can you provide a mp4 video example that filetype failed to identify? |
Of course, this one, for example: |
@b3nab i have the solution, the issue's origin is actually the filetype library and specifically this line at media.py
|
@b3nab Please review the changes if possible. |
Hey guys I have been having the same issue my code was: username = 'testing211714' with client(username, password) as cli: But recieved the error: Something went bad. Traceback (most recent call last): I followed @salahar9 advice and imported magic at media.py but the error just changed to: Something went bad. Traceback (most recent call last): |
I cloned the repo and tried to run the example "upload-a-video.py":
But I got an error in the console that said:
Any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered: