-
Notifications
You must be signed in to change notification settings - Fork 11
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
Windows 11 install into virtualenv #7
Comments
Thanks for providing such a detailed log for tracing errors. To be honest I didn't use this repository for years and am not so familiar with the compilation issue now. I went through your log and did some research. Here is my finding and hope it can help you.
The reference link is here openai/mujoco-py#773
So I checked the version of different cython. Could you check your cython version?
|
Heya! Thanks for responding, this was more of a shot in the dark as I wasn't sure if you were still monitoring this, and more for recording for anyone else who decides to try installing this now like me. So, thank you so much for your reply! Feel free to skip to the accordions near the bottom where I seem to be getting somewhere.
Again, all of the following in PowerShell: Just to see what happened I tried removing Cython as in one of the comments of that openai/mujoco-py one, it didn't work and just returned the original cython error. To be expected, it was just a "What if" attempt.
pip installed cython-0.29.13, had an error trying to pip install this as earlier versions of cython are now deprecated. Going to try downgrading my python version to 3.8
Went back and installed Python3.8.10, recreated my virtualenvironment by deleting the old and pip installing the "requirements" under the accordion, letting the requirements of each of them fill in the missing stuff from the pip list in my original comment. Pip installing cython with Python38 went wrong. Error under accordion. WARNING: Error was 363 lines long
Went back and pip installed
|
Hi @SydneyED , Do you have any updates on it or how I can follow the bugs? Thanks |
Hi! Sorry, things got hectic with work. I'm unsure quite what I did differently since I last posted as I don't recall doing anything more once I left that last comment as I was getting frustrated. However, running my testenv just now, it seems to have worked? I also realised one of my accordion sections didn't work there in my last comment, so apologies again for the confusion (or it did, but it's not apparent it's an accordion section. There's a bunch more info if you click the "In theory, this has built without error" heading. It's just removed the little arrow indicating it's clickable as an expandable section).
Just so people know what data to expect when trying to check their install, I have the following: Python output when trying to query the submodules for sksparse
Files in the folder where it installed in my testenv's sitepackages:
Checked out what was actually in cholmod.py, as that's what we're trying to import here:
Just to be sure it wasn't just importing as I started the python session from that subdirectory, I cd'd and it still worked. I'm going to try it with an actual python file/jupyter notebook some point in the near future, but for now it does import. |
Awesome! Thanks for the detailed report. Nevertheless, I don't know what happened here, it may benefit someone in the future to install this package. Hope you can use this package in your actual project! |
Just recording the issues I'm having installing this on Windows 11. Attempting to install into a virtual environment.
System setup:
Windows 11
Visual Studio 17 2022 (+ build tools)
CMake 3.28.0
Python 3.11.5
Attempting with no Anaconda
Full pip list for env as I'm trying to do some 3D stuff so there's a Tonne of things in here:
Package Version ------------------------- ------------ anyio 4.0.0 argon2-cffi 23.1.0 argon2-cffi-bindings 21.2.0 arrow 1.3.0 asttokens 2.4.1 async-lru 2.0.4 attrs 23.1.0 Babel 2.13.1 beautifulsoup4 4.12.2 black 23.10.1 bleach 6.1.0 certifi 2023.7.22 cffi 1.16.0 charset-normalizer 3.3.1 click 8.1.7 colorama 0.4.6 comm 0.1.4 Cython 0.29.36 debugpy 1.8.0 decorator 5.1.1 defusedxml 0.7.1 executing 2.0.1 fastjsonschema 2.18.1 fqdn 1.5.1 idna 3.4 imageio 2.31.6 ipykernel 6.26.0 ipython 8.17.2 ipython-genutils 0.2.0 ipywidgets 8.1.1 isoduration 20.11.0 jedi 0.19.1 Jinja2 3.1.2 joblib 1.3.2 json5 0.9.14 jsonpointer 2.4 jsonschema 4.19.2 jsonschema-specifications 2023.7.1 jupyter 1.0.0 jupyter_client 8.5.0 jupyter-console 6.6.3 jupyter_core 5.5.0 jupyter-events 0.8.0 jupyter-lsp 2.2.0 jupyter_server 2.9.1 jupyter_server_terminals 0.4.4 jupyterlab 4.0.7 jupyterlab-pygments 0.2.2 jupyterlab_server 2.25.0 jupyterlab-widgets 3.0.9 lazy_loader 0.3 llvmlite 0.41.1 MarkupSafe 2.1.3 matplotlib-inline 0.1.6 mistune 3.0.2 mypy-extensions 1.0.0 nbclient 0.8.0 nbconvert 7.10.0 nbformat 5.9.2 nest-asyncio 1.5.8 networkx 3.2.1 notebook 7.0.6 notebook_shim 0.2.3 numba 0.58.1 numpy 1.26.1 overrides 7.4.0 packaging 23.2 pandas 2.1.2 pandocfilters 1.5.0 parso 0.8.3 pathspec 0.11.2 Pillow 10.0.1 pip 23.3.1 platformdirs 3.11.0 plotly 5.18.0 prometheus-client 0.18.0 prompt-toolkit 3.0.39 psutil 5.9.6 pure-eval 0.2.2 pycparser 2.21 Pygments 2.16.1 python-dateutil 2.8.2 python-json-logger 2.0.7 pytz 2023.3.post1 pywin32 306 pywinpty 2.0.12 PyYAML 6.0.1 pyzmq 25.1.1 qtconsole 5.4.4 QtPy 2.4.1 referencing 0.30.2 requests 2.31.0 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rpds-py 0.10.6 scikit-image 0.22.0 scikit-learn 1.3.2 scipy 1.11.3 Send2Trash 1.8.2 setuptools 68.2.2 six 1.16.0 sniffio 1.3.0 soupsieve 2.5 stack-data 0.6.3 style 1.1.0 tenacity 8.2.3 terminado 0.17.1 threadpoolctl 3.2.0 tifffile 2023.9.26 tinycss2 1.2.1 tokenize-rt 5.2.0 tornado 6.3.3 tqdm 4.66.1 traitlets 5.13.0 types-python-dateutil 2.8.19.14 tzdata 2023.3 update 0.0.1 uri-template 1.3.0 urllib3 2.0.7 wcwidth 0.2.9 webcolors 1.13 webencodings 0.5.1 websocket-client 1.6.4 widgetsnbextension 4.0.9Cholmod appears to have built fine with VS 17 2022. There were no failures or problems when set to release mode and building.
For building with venv:
Powershell required the following in order to enter my venv with python as I do not want numpy installed locally:
Set-ExecutionPolicy Unrestricted -Scope Process
Followed by activating my venv with
{DIR}\venv\Scripts\activate.ps1
All of the following is done in the powershell.
Obtaining the following error (click to expand)
I then did
pip install "cython<3"
as some people with a similar issue found their cython version was the problem. This resulted in the following error under the dropdown:some text
Coming back to this later as I have to leave for the day.
The text was updated successfully, but these errors were encountered: