Hi,
I’m trying to get particles by using cryosparc-tools, but experience this error.
Could you please help me?
Error:
project = cs.find_project(“P3”)
job = project.find_job(“J2108”)
particles = job.load_output(“particles”)
Traceback (most recent call last):
File “”, line 1, in
File “/home/cryosparc_user/cryosparc-tools/cryosparc/job.py”, line 461, in load_output
datasets = [self.cs.download_dataset(self.project_uid, f) for f in metafiles]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/cryosparc_user/cryosparc-tools/cryosparc/job.py”, line 461, in
datasets = [self.cs.download_dataset(self.project_uid, f) for f in metafiles]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/cryosparc_user/cryosparc-tools/cryosparc/tools.py”, line 682, in download_dataset
with self.download(project_uid, path) as response:
File “/home/cryosparc_user/miniconda3/lib/python3.11/contextlib.py”, line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File “/home/cryosparc_user/cryosparc-tools/cryosparc/command.py”, line 226, in make_request
raise CommandError(error_reason, url=url, code=code, data=resdata)
cryosparc.errors.CommandError: *** (http://XXXXXXXX:39003/get_project_file, code 500) HTTP Error 500 INTERNAL SERVER ERROR; please check cryosparcm log command_vis for additional information.
Response from server: b’\n500 Internal Server Error\nInternal Server Error
\nThe server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
\n’
cryosparcm log:
[2024-04-25 16:01:34,577] ERROR in app: Exception on /get_project_file [POST]
Traceback (most recent call last):
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 2447, in wsgi_app
response = self.full_dispatch_request()
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/_compat.py”, line 39, in reraise
raise value
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 1950, in full_dispatch_request
rv = self.dispatch_request()
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File “/cryosparc/cryosparc_master/cryosparc_command/command_vis/viscommon.py”, line 58, in request_handler
res = func(*args, **kwargs)
TypeError: get_project_file() got an unexpected keyword argument ‘path’
2024-04-25 16:01:58,813 request_handler INFO | Received request for get_project_file
[2024-04-25 16:01:58,814] ERROR in app: Exception on /get_project_file [POST]
Traceback (most recent call last):
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 2447, in wsgi_app
response = self.full_dispatch_request()
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/_compat.py”, line 39, in reraise
raise value
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 1950, in full_dispatch_request
rv = self.dispatch_request()
File “/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/flask/app.py”, line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File “/cryosparc/cryosparc_master/cryosparc_command/command_vis/viscommon.py”, line 58, in request_handler
res = func(*args, **kwargs)
TypeError: get_project_file() got an unexpected keyword argument ‘path’