-
Notifications
You must be signed in to change notification settings - Fork 80
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
When I import jaxmarl, some error happens. #41
Comments
I download jax 0.4.11 and jaxlib-0.4.11+cuda11.cudnn86-cp38-cp38-manylinux2014_x86_64.whl, and then when I import jaxmarl, |
Ah looks like a jax issue? does the jax install work outside of importing jaxmarl? |
when just import jax, some basic operations can work. But once import jaxmarl, the error above happens. |
judging from the error message it does look like a jax issue. From the error message, the error should be reproduced if you run the following:
I would double check your jax installation, or otherwise take a look at this issue thread from the JAX repo: jax-ml/jax#15361 |
Hey! how did you get on? |
when installing from source (applying a docker image to reproduce) FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
# install python
ARG DEBIAN_FRONTEND=noninteractive
ARG PYTHON_VERSION=3.10
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
software-properties-common \
build-essential \
curl \
git \
vim \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update && apt-get install -y -qq python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
# Set python aliases
RUN update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py
# default workdir
WORKDIR /home/workdir
#installing jaxmarl from source
RUN git clone https://github.com/FLAIROx/JaxMARL.git && cd JaxMARL && pip install --ignore-installed -e .
CMD ["/bin/bash"] If in export PYTHONPATH=./JaxMARL:$PYTHONPATH Maybe to add a line with a hint to the readme? |
No description provided.
The text was updated successfully, but these errors were encountered: