-
Notifications
You must be signed in to change notification settings - Fork 35
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
Failed to build PLY table. Please run setup.py #249
Comments
Do you observe this on the
The code about minimum violation planning was merged into |
Scott is right that you should have all the eeci code in main.
I tried setting up using the main branch and was able to reproduce the
issue. In fact, I ran into more issues. Please find below the issues and a
way I fixed it. Mostly, it's about getting the right versions of the
dependencies.
1. When running
$ pip install -r requirements.txt
I got an error when it tries to install gr1py==0.2.0
Collecting gr1py==0.2.0 (from -r requirements.txt (line 10))
Downloading gr1py-0.2.0.tar.gz (22 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [4 lines of output]
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Please run again to cache the parsing table.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
error in gr1py setup command: use_2to3 is invalid.
[end of output]
I fixed this by simply installing gr1py without specifying the version,
i.e.,
$ pip install gr1py
2. When running
$ python setup.py install
I got a long error that starts with
Failed to build PLY tables: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error
in existing code, use `int` by itself. Doing this will not modify any
behavior and is safe. When replacing `np.int`, you may wish to use e.g.
`np.int64` or `np.int32` to specify the precision. If you wish to review
your current use, check the release note link for additional information.
and ends with
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Failed
to build PLY table. Please run setup.py
again.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This gave some hints that there is some incompatibility between the version
of numpy I installed and what the installation wants. So I went back a few
version. What seems to work is to do
$ pip install numpy==1.19.1 scipy==1.5.2
Then, rerun
$ python setup.py install
There are warning about setup.py install is deprecated but at least there
is no error.
Hope this helps.
Best,
Nok
…On Wed, Jun 21, 2023 at 8:09 PM Scott C. Livingston < ***@***.***> wrote:
Do you observe this on the main branch, too?
git checkout main
The code about minimum violation planning was merged into main after that
workshop (#236 <#236>).
—
Reply to this email directly, view it on GitHub
<#249 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACE24YACJJUSJ4C6RR4YB6DXMOLK3ANCNFSM6AAAAAAZPKF36I>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thank you for the help! Everything went well, except in the very end, WARNING:polytope.solvers: |
@khassibi Are you certain that
and
|
I tried with python 3.9 and I couldn't even do
$ pip install scipy==1.5.2
So perhaps you're not using python 3.9? The fix I talked about earlier uses
python 3.8.
Best,
Nok
…On Thu, Jun 22, 2023 at 9:21 PM Scott C. Livingston < ***@***.***> wrote:
@khassibi <https://github.com/khassibi> Are you certain that python3.9 is
running in the virtual environment? Usually it is named python. You can
confirm which program is running by comparing
which python3.9
and
which python
—
Reply to this email directly, view it on GitHub
<#249 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACE24YH6JZYHS6LS4P62Q73XMT4TBANCNFSM6AAAAAAZPKF36I>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
So my virtual environment uses python 3.8. When I do WARNING: no p_error() function is defined Installed /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/tulip-1.4.0-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/polytope-0.2.3-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/ply-3.10-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/omega-0.3.1-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/networkx-3.1-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/graphviz-0.20.1-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/pydot-1.4.2-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/natsort-8.4.0-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/humanize-4.6.0-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/dd-0.5.7-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/astutils-0.0.4-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/pyparsing-3.1.0-py3.8.egg Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages Using /Users/kimiahassibi/Desktop/Caltech/SURF2023/env/lib/python3.8/site-packages/psutil-5.9.5-py3.8-macosx-10.9-x86_64.egg |
Hi, so I figured out that if I do the following commands in the main branch, then I get the error shown above, but if I do the commands in the eeci2020 branch, everything is successfully installed. Is the eeci2020 branch outdated, or is it fine for me to use?
|
@khassibi It is outdated, but possibly not in a way that is significant for your work. I am going to explore this issue more today. I will try a new Tulip installation on a MacBook with macOS 13.4.1 and arm64 (Apple Silicon). |
Hi @slivingston, has this issue been resolved? I'm happy to help fix it if it has not. |
@abadithela Sorry, I missed your message. It is not resolved. If you have some time, your investigating it is welcome! |
I was given the advice by Apurva Badithela to install TuLiP by using these commands
$ git clone https://github.com/tulip-control/tulip-control.git
$ cd tulip-control
$ git checkout eeci2020
$ pip install wheel
$ pip install cvxopt
$ pip install -r requirements.txt
$ python setup.py install
(These directions were found towards the bottom of https://murray.cds.caltech.edu/EECI-IGSC_2020.)
I used a virtual environment (venv) when doing these commands. Everything worked well, except when running
python setup.py install
, I got the message!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Failed to build PLY table. Please run setup.py again.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This issue was brought up in #132 (comment), where the advice was to disable pip's caching behavior with
--no-cache-dir
. I have tried adding this flag to the pip install's (pip install wheel
,pip install cvxopt
,pip install -r requirements.txt
), but I still run into the same issue.Does anyone know how to resolve this issue? Thank you!
The text was updated successfully, but these errors were encountered: