-
Notifications
You must be signed in to change notification settings - Fork 118
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
Can't install on fedora 38: package versions have conflicting dependencies #93
Comments
Hello, Thank you for your feedback. It appears that the primary cause of the version conflict in your Docker image might be due to the utilization of To rectify this situation, I recommend you to switch the Python version in your Docker image to Furthermore, I noticed that you are utilizing the Fedora operating system. While Fedora is a commendable OS, it's likely that LightZero has been primarily tested and optimized for Considering these factors, unless there are special requirements or considerations, I suggest you consider switching to the Ubuntu operating system. Ubuntu has broader support in the open-source community, and most Python libraries and packages are well-supported and optimized for it. I hope these suggestions are helpful! Best regards! |
# Start from Ubuntu 20.04
FROM ubuntu:20.04
# Set the working directory
WORKDIR /app
# Install Python 3.8 and other dependencies
RUN apt-get update && \
apt-get install -y python3.8 python3-pip gcc g++ swig git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create a symlink for Python
RUN ln -s /usr/bin/python3.8 /usr/local/bin/python && \
ln -s /usr/bin/pip3 /usr/local/bin/pip
# Update pip and setuptools
RUN python -m pip install --upgrade pip setuptools
# Clone and install the package in editable mode
RUN git clone https://github.com/opendilab/LightZero.git
RUN pip install -e ./LightZero
# The command to run when this image starts up
CMD ["python", "./LightZero/zoo/classic_control/cartpole/config/cartpole_muzero_config.py"]
# docker build cmd:
# docker build -t ubuntu-py38-lz .
|
Thank you for raising this issue. We have addressed this in a pull request (PR). In this PR, we have added an example Dockerfile along with detailed usage instructions. This will help you set up an environment with all the dependencies needed to run the LightZero library. Please refer to this PR for more information. We appreciate your feedback, it's incredibly valuable to our project. If you have any more questions or need further assistance, please don't hesitate to let us know. |
Thanks you. To follow this up, I did some tests using python 3.7 to python 3.11. Install fails with python 3.7 with the following error:
But works with python 3.8 and 3.9 and also surprisingly with 3.10. I have the same test results for every version 3 errors, 1 warning. I propose to change version bounds to >=3.8, <3.11 as this seems to work. |
Hello, we sincerely appreciate your feedback and suggestion. We will carefully review this pull request and make the necessary updates to the Python version requirement after conducting thorough testing. We also welcome any additional suggestions or improvements you may have. Best wishes to you. |
I didn't manage to install LightZero on fedora 38 in an isolated environment (virtualenv).
This fails with the following error message:
This can consistently be reproduced with this docker file:
Thanks for this amazing work! I plan to develop my own agents using lightzero as building block!
The text was updated successfully, but these errors were encountered: