HARPLab / DReyeVR

VR driving 🚙 + eye tracking 👀 simulator based on CARLA for driving interaction research
https://arxiv.org/abs/2201.01931
MIT License
139 stars 37 forks source link

Version mismatch between client and simulator API #154

Closed Wingspear closed 4 months ago

Wingspear commented 5 months ago

I'm trying to run some examples under PythonAPI. I'm currently launching the simulator via "make launch" and running the scene through Unreal. Then, I'm running some example python scripts via the client API.

Even though my python client seems to be on 0.9.13 (as it was pulled from the right commit), the client is still interpreted as 0.9.14. Added some screenshots below. Any pointers?

image image
shh1v commented 5 months ago

Can you list the files in your $CARLA_ROOT$/PythonAPI/carla/dist directory?

Wingspear commented 4 months ago

hmm.. I don't seem to have a $CARLA_ROOT$/PythonAPI/carla/dist directory listed.

image
shh1v commented 4 months ago

You are doing something wrong. The make PythonAPI should generate the egg and whl files. Are you running that command? Read the docs for installation.

Wingspear commented 4 months ago

After trying make PythonAPI again, the output logs that "the dist folder was installed successfully", but it doesn't look like the installation went through. It appears to be a linker error when trying to find the Boost library (we're using Python 3.8). I attached some screenshots below. Any ideas?

image image
shh1v commented 4 months ago

Yes, if there are linker errors when you first run make PythonAPI, rerunning the command shows success; however, those errors are still there. I am familiar with these errors. Please go through #46, and run the listed commands at the end.

Make sure to first run make clean and get rid of all the files in your build folder.

Wingspear commented 4 months ago

I followed the instructions and reran make PythonAPI. After launching Unreal with make launch and running the python generate_traffic.py example, I'm still getting the same Client-Simulator version mismatch issue. This is what my dist directory looks like:

image
shh1v commented 4 months ago

did you reinstall the new python whl file using pip install carla-0.9.13...whl file? Did you first run pip uninstall carla?

Wingspear commented 4 months ago

Awesome, pip install carla-0.9.13...whl did the trick. Thanks!