Skip to content

BUILD: No module named 'pandas._libs.interval' after building container from .devcontainer.json #50134

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

Closed
1 task done
ghost opened this issue Dec 8, 2022 · 3 comments · Fixed by #50145
Closed
1 task done
Labels
Build Library building on various platforms Dependencies Required and optional dependencies

Comments

@ghost
Copy link

ghost commented Dec 8, 2022

I cloned the repo and used the .devcontainer.json with VS Code to build a dev docker, on my Linux laptop.
It seemed to run well until I tried import pandas and got ModuleNotFoundError: No module named 'pandas._libs.interval'.

I tried the commands recommended here: https://stackoverflow.com/a/68935982
It didnt work.

The problem is easy to reproduce, because it also happens in Github Codespace, which, I suppose, also use .devcontainer.json.

Installation check

Platform

Linux-5.19.16-76051916-generic-x86_64-with-glibc2.31

Installation Method

Built from source

pandas Version

building from latest .devcontainer.json on main

Python Version

3.10.8

Installation Logs

Replace this line with the installation logs.

@ghost ghost added Build Library building on various platforms Needs Triage Issue that has not been reviewed by a pandas team member labels Dec 8, 2022
@MarcoGorelli
Copy link
Member

hey

you need to do

python setup.py build_ext -j 4
python -m pip install -e . --no-build-isolation --no-use-pep517

https://pandas.pydata.org/docs/dev/development/contributing_environment.html

@ghost
Copy link
Author

ghost commented Dec 9, 2022

Ha, thank you @MarcoGorelli !
Due to the structure of the documentation, I assumed that this part wasn't applicable to the Visual Studio Code paragraph.
As a Docker newbie, there is something I don't understand: why are those commands not part of the build?
Shouldn't they, if they are mandatory anyway?

@MarcoGorelli
Copy link
Member

because you need to run them regularly when the C extensions change (which is quite often), they're not just a one-off process

I agree that it's not clear though. I'll try to rewrite this page, it's been on my mind for a while, there's too many irrelevant details and the overall process isn't clear enough

@phofl phofl added Dependencies Required and optional dependencies and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Dependencies Required and optional dependencies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants