-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add installation instructions to README.md #2
Comments
I added installation instructions to the documentation and a link in the readme in #5 . Please let me know if these new instructions work for you. |
Official Gurobi documentation indicates that version 10 supports Python 3.10 and 3.11, while version 11 supports up to Python 3.12 (the most recent Python version): https://support.gurobi.com/hc/en-us/articles/360013195212-Which-Python-versions-are-supported-by-Gurobi Floras (or, the package formerly known as "flowsynth") is pinned at gurobipy 10: Line 20 in 37cf9d0
@jgraeb is it possible to upgrade to gurobipy version 11 ? |
I am trying to make it work. Gurobi 11 installs fine, but I get this error message when installing spot (when testing using GitHub actions main.yaml):
Any idea what this could be? python3-dev is the newest version. The only change is the pyproject.toml file and lock file changing the python version to >=3.10 and Gurobi to 11.0.3. |
On Debian hosts, you need the libpython*-dev package corresponding to the Python version. Here, if you are building with Python 3.10, try
(libpython3.11-dev if you are building with Python 3.11 etc.) |
Ok I added this but get the same error message here: https://github.com/jgraeb/floras/actions/runs/11154250994/job/31003212287 |
My mistake: I assumed you were referring to a local installation. In CI jobs, this should already be installed and therefore is likely not the reason for the error. I will think more and follow up soon. |
I reverted the addition of libpython*-dev and removed matplotlib from pyproject.yaml (it was imported but not used anywhere). Now CI jobs are passing with gurobipy version 11 on my branch: https://github.com/slivingston/floras/tree/j-main |
Ok, thanks. Matplotlib wasn't used because I haven't added the plotting functions yet, so I will need to add it back soon. Do you know what the reason for the spot error message was involving matplotlib? |
There was some version compatibility problem between matplotlib and numpy because PDM switched to numpy version 2 in the conda CI build. I just added matplotlib again, now with a version bound of |
...and for |
That error with the numpy in conda environment is fixed by updating the versions you stated. |
@jgraeb something seems to be broken with the CI cache for Spot. Can you try to delete the cache item with "spot" in its name at https://github.com/jgraebfloras/actions/caches and then re-run https://github.com/jgraeb/floras/actions/runs/11156329821 ? |
The commit where the CI jobs started to fail changed the Python versions expression in pyproject.toml. My hypothesis is this resulted in a new venv generated by PDM, but the cache key for Spot is not a function of this, and therefore, If the hypothesis is true, then the solution is to add another
or |
That fixed it in #6 . |
I tried reinstalling following the directions here. I got an error when
It looks like the error is that I next tried to install
I then installed spot using At this stage, I was able to run Things to address based on my experience:
Some other comments:
|
I updated the instruction on readthedocs and added them to the readme. I did not include them in the readthedocs welcome page yet as they are extremely long - hopefully they will become more streamlined (`pip install floras') soon and then I will add them to the welcome page. |
I can try to debug it, too, but have you considered using the Python package graphviz instead? It is more popular (in terms of stars on GitHub), and has been used successfully in TuLiP and dd. |
Originally I had graphviz and pygraphviz but was able to remove graphviz, which worked for all environments except macOS and pdm (but that one does not work yet anyways). The problem is: When using macOS (without conda) installing pygraphviz does not work through pdm - that's why I tried to install it using brew and pip and it gets installed successfully (there seem to be some difficulties with pygraphviz and macOS). But then it does not find the pygraphviz installation when it installs floras using pdm and errors out. |
I proposed a change to the CI workflow file that works for PDM on macOS (without conda) at https://github.com/tulip-control/floras/pull/7/files#r1796527847 |
I was able to install flowsynth and run the unit tests, but it would be nice to have installation instructions in the README file.
Here's what I did:
conda create -n python3.10-tulip python=3.10
pip install -e .
spot
from https://spot.lre.epita.frcd src; pytest ../tests
A couple of notes:
spot
package had to be installed manually (rather than via pip or conda)The text was updated successfully, but these errors were encountered: