-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
BUILD: Issue while creating DEV environment using Gitpod #53685
Comments
You need Python 3.9+ to run pandas main (as dictated by the NEP 29 schedule). Can you recreate your gitpod env? |
@lithomas1 I did try rebuilding it but it seems gitpod picks old python version and since it builds the whole environment automatically, it's not possible to change. From what I understand the docker image needs to be updated. |
We talked about this at the dev call. Will assign myself so I don't forget to update the instructions. |
Thanks @lithomas1 ! I depend on Gitpod for the dev environment but I have not been able to build the project there. This will be really helpful! |
Hey guys! The docker image for Instead, it might be worthwhile to set up autobuilds on Dockerhub for every time the Alternatively, Gitpod has the capability to build and reuse docker images. The pro of using the This fixes the issue right now: In
There are additional considerations, like that the Dockerfile in the repo right now doesn't create a conda environment, and it throws a few errors because the setup tasks expect it to:
However, you can just specify the python version that was installed from the
@lithomas1 I don't know what you have planned for this issue, but I can help out / pair-program some things if you want. I have a long weekend ahead and I am trapped in an Airbnb. |
Thanks. While I update the build instructions, can you help me figure out a good way to update the conda environment in the gitpod? There seem to be permissions issue with If you get that working and add that step into the pre-build, you should be able to build pandas. The docker image will still need to be updated (to prevent having to download new packages and such every time, though). |
Hey @jorisvandenbossche, Is there a reason that we are using the mamba installation flow here instead of the docker installation flow for building pandas in Gitpod? I understand that mamba is recommended in the installation guide, but it seems like using mamba with docker images introduces many unnecessary points of failure (version pinning for mamba, outdated images built from other outdated images on dockerhub, etc). I think just using the Dockerfile in the base of the repo and letting Gitpod take care of keeping the image up to date is the simplest / most maintainable solution. The dependencies only have to be installed once when the image is initially built, and if there are any changes when the workspace is reopened Gitpod will rebuild the image (source): This would completely circumvent the process of having to upload/pull images to and from Dockerhub, and it is just as fast after the image is built for the first time. I've modified the code to automate the Docker installation flow from the installation guide if that is the route we want to go (using the newer meson builds setup process). Let me know and I can create a pull request with updated code and documentation. Additionally, I think gitpod/Dockerfile, gitpod/workspace_config and gitpod/gitpod.Dockerfile wouldn't be used anymore if we're not using mamba. This is my branch with the working .gitpod.yml: |
Installation check
Platform
Linux-6.1.27-060127-generic-x86_64-with-glibc2.10
Installation Method
Built from source
pandas Version
2.0.2-dev
Python Version
3.8.16
Installation Logs
This appears when I run
python -m pytest pandas
after environment creation in Gitpod. Also, similar message appears when I try to import pandas in terminal.ImportError while loading conftest '/workspace/pandas/pandas/conftest.py'.
pandas/init.py:46: in
from pandas.core.api import (
pandas/core/api.py:47: in
from pandas.core.groupby import (
pandas/core/groupby/init.py:1: in
from pandas.core.groupby.generic import (
pandas/core/groupby/generic.py:69: in
from pandas.core.frame import DataFrame
pandas/core/frame.py:141: in
from pandas.core.generic import (
pandas/core/generic.py:182: in
from pandas.core.window import (
pandas/core/window/init.py:1: in
from pandas.core.window.ewm import (
pandas/core/window/ewm.py:41: in
from pandas.core.window.numba_ import (
pandas/core/window/numba_.py:20: in
@functools.cache
E AttributeError: module 'functools' has no attribute 'cache'
The text was updated successfully, but these errors were encountered: