-
Notifications
You must be signed in to change notification settings - Fork 0
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
Python code not working due to conda error #762
Comments
Finally got to looking at this @B0SKAMP! Current How are you creating your conda environment? Maybe recreating it will fix? |
I see now this is with installing from conda cloud, not from using a clone of the repo. I suspect it's the same issue as @johnnonweiler experienced. |
This runs without error on Windows 10:
I'll check linux next. Raises some interesting questions on how to test conda packages! |
Thanks Bob. Tbh it's not so important now we have the Julia package. Thanks
for following up though. Cheers, Martin
…On Thu, 11 Feb 2021, 07:39 bobturneruk, ***@***.***> wrote:
Finally got to looking at this @mjb3 <https://github.com/mjb3>! Current
environment.yml pins s3fs=0.4.2:
https://github.com/ScottishCovidResponse/data_pipeline_api/blob/b4b2e51b02a09ef038aea41ff322ffc171325c80/environment.yml#L16
How are you creating your conda environment? Maybe recreating it will fix?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#762 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRRIYJVTXIEZYXX4TKBMFLS6OCSHANCNFSM4XLOTJ5A>
.
|
This is a different issue to the one I reported previously. (The issue that I reported appears to have been a problem with the conda server, which was fixed a few hours after I had reported it in our Zulip chat.) I didn't see this issue at the time, but then I did see it later, after running |
I do still see the same problem. (I had forgotten that I need to run the download script to see the error message.) |
What command yields the error, please, @johnnonweiler? |
This command yields the error: |
Thanks. I'm getting (Windows 10, for my own reference):
|
Similar to Linux @johnnonweiler, @B0SKAMP? |
I'm using Windows 10. I get:
(As Bram suggests, I believe this can be fixed with |
the main issue seems to be:
conda install -c scottishcovidresponse data_pipeline_api
On my windows 10 fresh updated conda, installs an environment with:
s3fs pkgs/main/noarch::s3fs-0.5.2-pyhd3eb1b0_0
and the error is indeed the one in john's email below.
Bram
…On 11/02/2021 11:40, johnnonweiler wrote:
I'm using Windows 10. I get:
|Traceback (most recent call last): File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\runpy.py", line 183,
in _run_module_as_main mod_name, mod_spec, code =
_get_module_details(mod_name, _Error) File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\runpy.py", line 109,
in _get_module_details __import__(pkg_name) File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\site-packages\data_pipeline_api\registry\__init__.py",
line 1, in <module> from data_pipeline_api.registry.downloader import
Downloader File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\site-packages\data_pipeline_api\registry\downloader.py",
line 16, in <module> from data_pipeline_api.registry.common import (
File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\site-packages\data_pipeline_api\registry\common.py",
line 23, in <module> from s3fs import S3FileSystem File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\site-packages\s3fs\__init__.py",
line 1, in <module> from .core import S3FileSystem, S3File File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\site-packages\s3fs\core.py",
line 13, in <module> import aiobotocore File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\site-packages\aiobotocore\__init__.py",
line 1, in <module> from .session import get_session, AioSession File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\site-packages\aiobotocore\session.py",
line 6, in <module> from .client import AioClientCreator,
AioBaseClient File
"C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\site-packages\aiobotocore\client.py",
line 2, in <module> from botocore.client import logger,
PaginatorDocstring, ClientCreator, \ ImportError: cannot import name
'S3ArnParamHandler' from 'botocore.client'
(C:\Users\jnonweil\Miniconda3\envs\dpapi_test\lib\site-packages\botocore\client.py
|
(As Bram suggests, I believe this can be fixed with |conda install
s3fs=4.2.0|.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#762 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFRKLVROO25PQXCQU5T7D23S6O633ANCNFSM4XLOTJ5A>.
|
Thanks, I'll try and reproduce on my machine. (I'm sure you're right about the fix, I get same s3fs version, I'm thinking a bit about future-proofing and want to make sure I understand what's going on on my box as well!). |
And I kind of want to know why it's using that version as we specify the correct one here https://github.com/ScottishCovidResponse/data_pipeline_api/blob/master/environment.yml |
Related to #776 |
and also #770 |
Install from conda cloud is no longer supported, use:
|
Currently the command yields a different error:
|
Perhaps this is a problem with my |
... trying to work on the java API and get the python upload/download code to work with this.
The python code is currently not working because Conda uses S3FS version 5.2 instead of the required 4.2. After I run "conda install s3fs=4.2.0" it all works fine.
The text was updated successfully, but these errors were encountered: