Skip to content
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 paths wrong in pangeo #956

Closed
grallewellyn opened this issue Mar 18, 2024 · 3 comments
Closed

Python paths wrong in pangeo #956

grallewellyn opened this issue Mar 18, 2024 · 3 comments
Assignees

Comments

@grallewellyn
Copy link
Collaborator

From Alex:
"FYI something is wrong with the Python Paths in pangeo
the version of boto3 that imports is not what conda installed, in the terminal you can test this.

conda list | grep boto3
boto3                     1.34.51            pyhd8ed1ab_0    conda-forge
botocore                  1.34.51         pyge310_1234567_0    conda-forge

python
>>> botocore.__version__
'1.24.32'

"

I tested this for v3.1.4 vanilla, r, pangeo, and isce3 and they all say:

(pangeo) root@workspacevsstoit18l3xgvef:~# conda list | grep boto3
boto3                     1.33.13            pyhd8ed1ab_0    conda-forge
mypy-boto3-s3             1.34.14                  pypi_0    pypi
(pangeo) root@workspacevsstoit18l3xgvef:~# conda list | grep boto
aiobotocore               2.9.0              pyhd8ed1ab_0    conda-forge
boto3                     1.33.13            pyhd8ed1ab_0    conda-forge
botocore                  1.33.13            pyhd8ed1ab_0    conda-forge
mypy-boto3-s3             1.34.14                  pypi_0    pypi
(pangeo) root@workspacevsstoit18l3xgvef:~# python
Python 3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 18:07:37) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> botocore.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'botocore' is not defined
>>> import botocore
>>> botocore.__version__
'1.33.13'
>>> 

@wildintellect Were you seeing this in a fresh pangeo v3.1.4 environment?

@anilnatha
Copy link

This may be an issue with the installation of nb_conda_kernels. Need to investigate further. This is also in relation to the issue mentioned in ticket #858 as I think they are the same underlying issue.

@anilnatha anilnatha self-assigned this Mar 18, 2024
@chuckwondo
Copy link
Collaborator

FYI, as a minor convenience, you can replace conda list | grep X with simply conda list X

@wildintellect
Copy link
Collaborator

So the issue was user specific, I had a local python site-packages folder from 2022 that seemed to be in my path.

>>> botocore.__file__
'/projects/.local/lib/python3.10/site-packages/botocore/__init__.py'

Removing the folder resolved my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants