Skip to content
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

pip vs setup.py install on ARMv8 #20

Open
juanmed opened this issue Sep 9, 2019 · 2 comments
Open

pip vs setup.py install on ARMv8 #20

juanmed opened this issue Sep 9, 2019 · 2 comments

Comments

@juanmed
Copy link

juanmed commented Sep 9, 2019

Hi,

I was trying to run your scripts on a Jetson Nano, which has an ARMv8 cpu and runs Ubuntu 18.04LTS, so all the following relates to this platform only. I found that it will work in this platform only when installing under python3 and using pip install mpc. If installation is done using python setup.py install under python3 the installation does not work, and both pip install mpc and python setup.py install do not work under python2.7. The error found is always with importing mpc:

Traceback (most recent call last):
  File "examples/MassSpringDamper_Example.py", line 41, in <module>
    from mpc import mpc
  File "build/bdist.linux-aarch64/egg/mpc/mpc.py", line 17, in <module>
  File "build/bdist.linux-aarch64/egg/mpc/lqr_step.py", line 13, in <module>
ImportError: cannot import name mpc

However, even using python3 and pip install mpc, the scripts are unable to locate the mpc/env_dx folder, presumably because it is only available when cloning your github repo and installing using setup.py. In order to make it work one has to move files in env_dx folder to the appropriate location in order for python to find them.

I was wondering if you have found this issue before and how did you solve it, or any pointers on a solution. This does not happen in my desktop (Intel Core i5, Ubuntu16.04).

Thanks!

@bamos
Copy link
Member

bamos commented Sep 9, 2019 via email

@ashsifat
Copy link

ashsifat commented Sep 4, 2020

is there a solution to this? I believe I am having a similar issue but in my case, it shows the following error when trying to run the control.py code

TypeError: init() got multiple values for argument 'u_lower'

btw I am running in jetson xavier. TIA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants