You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Zorin OS 16.2 (Ubuntu 20.04)
(I am currently neither using nor downloaded Google Chrome. I use Firefox... maybe that would be a problem?)
Python 3.9.13
Pandas 1.3.5
selenium 4.11.2
requests 2.31.0
Butterfly
Because I got an error with the other cell, I ran the next one as instructed:
import requests
print('Downloading Butterfly zip file')
file_id = '18I4N6lWdcUW618Qwr6Krsd1Rkn946Ag0' # sharable link id
zip_file_path = os.path.join(get_download_path(), 'butterfly.zip')
download_file_from_google_drive(file_id, zip_file_path)
# unzip video files
print('Download complete\nExtracting video files')
open_file = subprocess.Popen("utils/7z.exe" +' x ' + zip_file_path + ' -o' + 'data/video',stdout=subprocess.PIPE)
print('Extraction complete')
But I got:
ValueError: cannot convert float NaN to integer
Tracing the error back, seems to be a problem with Progressbar:
ValueError Traceback (most recent call last)
/tmp/ipykernel_97816/3349704168.py in <module>
4 file_id = '18I4N6lWdcUW618Qwr6Krsd1Rkn946Ag0' # sharable link id
5 zip_file_path = os.path.join(get_download_path(), 'butterfly.zip')
----> 6 download_file_from_google_drive(file_id, zip_file_path)
7
8 # unzip video files
/tmp/ipykernel_97816/1754689086.py in download_file_from_google_drive(id, destination)
12 response = session.get(URL, params = params, stream = True)
13
---> 14 save_response_content(response, destination)
15
16 def get_confirm_token(response):
/tmp/ipykernel_97816/1754689086.py in save_response_content(response, destination)
26
27 with open(destination, "wb") as f:
---> 28 for chunk in progress(response.iter_content(CHUNK_SIZE)):
29 if chunk: # filter out keep-alive new chunks
30 f.write(chunk)
Clarius
The code:
import requests
print('Downloading Clarius zip file...')
file_id = '1bqsqNzAJYwdriOP9CcGWPzCUB-7G72Ta' # sharable link id
zip_file_path = 'C:\\Users\\Ebadia\\Downloads\\clarius.zip' #os.path.join(get_download_path(), 'clarius.zip')
download_file_from_google_drive(file_id, zip_file_path)
# unzip video files
open_file = subprocess.Popen("utils/7z.exe" +' x ' + zip_file_path + ' -o' + 'data/video',stdout=subprocess.PIPE)
print('=== Clarius video files extraction done! ===')
Throws:
FileNotFoundError: [Errno 2] No such file or directory: 'utils/7z.exe x C:\\Users\\Ebadia\\Downloads\\clarius.zip -odata/video': 'utils/7z.exe x C:\\Users\\Ebadia\\Downloads\\clarius.zip -odata/video'
Seems to be hard-coded but I dont get how can I change that.
Or maybe the download link or something like that is deprecated?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Specs
OS: Zorin OS 16.2 (Ubuntu 20.04)
(I am currently neither using nor downloaded Google Chrome. I use Firefox... maybe that would be a problem?)
Python 3.9.13
Pandas 1.3.5
selenium 4.11.2
requests 2.31.0
Butterfly
Because I got an error with the other cell, I ran the next one as instructed:
But I got:
ValueError: cannot convert float NaN to integer
Tracing the error back, seems to be a problem with Progressbar:
Clarius
The code:
Throws:
FileNotFoundError: [Errno 2] No such file or directory: 'utils/7z.exe x C:\\Users\\Ebadia\\Downloads\\clarius.zip -odata/video': 'utils/7z.exe x C:\\Users\\Ebadia\\Downloads\\clarius.zip -odata/video'
Seems to be hard-coded but I dont get how can I change that.
Or maybe the download link or something like that is deprecated?
Thank you in advance!
The text was updated successfully, but these errors were encountered: