TUMFTM / global_racetrajectory_optimization

This repository contains multiple approaches for generating global racetrajectories.
GNU Lesser General Public License v3.0
473 stars 193 forks source link

Import Error quad prog undefined symbol: _z7qpgen2_pds_pis0_s_s_s_s_s_s0_s0_s0_s0_s0_s0_s_s0_ #14

Closed bakhbyergyen7 closed 1 year ago

bakhbyergyen7 commented 1 year ago

Hi,

I am trying to run this algorithm on NVIDIA Jetson Orin Nano devkit on Ubuntu 20.04. I also tried it with Docker container and conda environment. I tried downgrading my python to 3.7 to reproduce what TUM did. I pip installed all the necessary packages. Same versions for all except for casadi. Instead of 3.5.1, I installed 3.5.5 as that was the lowest available version.

Now, when I try to run the main python code, I encounter an import error regarding quad prog which is a part of trajectory_planning_helpers package like this:

ImportError: /home/user/.local/lib/python3.7/site-packages/quadprog.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _Z7qpgen2_PdS_PiS0_S_S_S_S_S_S0_S0_S0_S0_S0_S0_SS0

I thought it was due to the architecture, so I tried it on my laptop, but still didn't work. Thank you in advance.

bakhbyergyen7 commented 1 year ago

I was able to resolve my issue like this: https://stackoverflow.com/questions/76894710/import-error-undefined-symbol-z7qpgen2-pds-pis0-s-s-s-s-s-s0-s0-s0-s0-s0-s0-s/76915810#76915810

It would be nice if someone can update the requirements.txt so that other people won't face the same issue.