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 Environment issue within container #10

Open
subhankhan041 opened this issue Oct 21, 2024 · 0 comments
Open

Python Environment issue within container #10

subhankhan041 opened this issue Oct 21, 2024 · 0 comments

Comments

@subhankhan041
Copy link

Hi,

Thanks for the tutorial. I run the container after following your instructions and was able to create one. However, I am facing issue with running your test1.py file, as whenever, I run it I get the following error, despite setting the correct python path:

File "/workspaces/vscode-python-template/tests/test1.py", line 1, in
import pandas as pd
File "/opt/conda/envs/my_project_name/lib/python3.10/site-packages/pandas/init.py", line 22, in
from pandas.compat import is_numpy_dev as _is_numpy_dev # pyright: ignore # noqa:F401
File "/opt/conda/envs/my_project_name/lib/python3.10/site-packages/pandas/compat/init.py", line 25, in
from pandas.compat.numpy import (
File "/opt/conda/envs/my_project_name/lib/python3.10/site-packages/pandas/compat/numpy/init.py", line 4, in
from pandas.util.version import Version
File "/opt/conda/envs/my_project_name/lib/python3.10/site-packages/pandas/util/init.py", line 2, in
from pandas.util._decorators import ( # noqa:F401
File "/opt/conda/envs/my_project_name/lib/python3.10/site-packages/pandas/util/_decorators.py", line 14, in
from pandas._libs.properties import cache_readonly
File "/opt/conda/envs/my_project_name/lib/python3.10/site-packages/pandas/_libs/init.py", line 13, in
from pandas._libs.interval import Interval
File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I tried changing the path as well, but still no success. Could you please let me know how can I fix the 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

1 participant