-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Bug report] - TypeError: a bytes-like object is required, not 'str' #305
Comments
util.py requires data_url which is None and that seems to be causing this error. How do I set data_url in the Alyx database? I don't see it under Datasets. There is one under Data Repositories but setting it does not have any effect on the data_url parameter in util.py |
Specifying the data_url directly in util.py worked. So the problem is how to set it properly in Alyx. |
However, running the following code:
gives a new error:
|
Here's a link to our admin interface guide: https://docs.google.com/document/d/1cx3XLZiZRh3lUzhhR_p65BggEqTKpXHUDkUDagvf9Kc/edit?usp=sharing You need to log into the admin interface and navigate to Data > Data repository and add your data repository. Make sure the data_url field is set. In the python ONE API only https URLs are supported at the moment (you can also download via AWS boto3 from S3 buckets). Also make sure you're using the latest version of ONE:
You should be on version 1.10. You can update by running |
The version is 1.10 |
Setting data_url to http://localhost:8000/admin/data/datarepository/repositoryName worked. However |
Any idea what could be the cause of this error? @k1o0 |
Seems to be caused by updating the exists parameter in file api.py lines 406-407:
|
I tried leaving empty the data_url parameter in the associated data repository and that would give the following error (similar to the initially reported issue):
|
I am trying out ONE and ran a basic test similar to number 14 described in https://int-brain-lab.github.io/ONE/notebooks/one_quickstart.html
I run the following code:
and get this error:
The computer is running Ubuntu 20.04 and iblenv was installed following instructions described in https://github.com/int-brain-lab/iblenv
Can you please advice on how I could fix this issue? The method is supposed to accept strings but then it complains about that.
Many thanks!
The text was updated successfully, but these errors were encountered: