Guest User

Untitled

a guest
Jan 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. uploaded_file_info = ol.upload_file(c:videofile.mp4)
  2. print(uploaded_file_info)
  3.  
  4. with open('ListTest.1.csv', 'r') as csv_file:
  5. csv_reader = csv.reader(csv_file)
  6. next(csv_reader)
  7. for line in csv_reader:
  8. print(line)
  9. name = (line[0])
  10. VidPath = (line[4])
  11. print(name)
  12. print(VidPath)
  13. uploaded_file_info = ol.upload_file(VidPath)
  14. print(uploaded_file_info)
  15.  
  16. Traceback (most recent call last):
  17. File "PrintingTest.py", line 19, in <module>
  18. uploaded_file_info = ol.upload_file(VidPath)
  19. File "C:UsersrestaAnaconda3libsite-packagesopenloadopenload.py", line 258, in upload_file
  20. files={'upload_file': open(file_path, 'rb')}).json()
  21. OSError: [Errno 22] Invalid argument: ' c:videofile.mp4'
Add Comment
Please, Sign In to add comment