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

Quickstart not working #4087

Closed
arihant2math opened this issue Apr 13, 2021 · 8 comments
Closed

Quickstart not working #4087

arihant2math opened this issue Apr 13, 2021 · 8 comments
Assignees
Labels
documentation Requires changes/additions to documentation question

Comments

@arihant2math
Copy link

The documentation in the quickstart does not specify how to install the package carla, so the examples in pythonapi/examples exit with an error. However spectator mode still works.

Windows 10, Carla 0.9.10

@LucasFKobernic
Copy link

Hi arihant2math,

Using Carla Package u just need to unzip the file you have downloaded.

Then you need to start CARLA (CarlaUE4.exe) first. And then you can run any of the examples inside the PythonAPI / examples folder.

@arihant2math
Copy link
Author

I did that, the examples still do not work.

@corkyw10
Copy link
Contributor

Hi @arihant2math, what error are you getting?

@corkyw10 corkyw10 self-assigned this Apr 20, 2021
@corkyw10 corkyw10 added documentation Requires changes/additions to documentation question labels Apr 20, 2021
@arihant2math
Copy link
Author

I'm getting this error when I run spawn_npc.py: ModuleNotFoundError: No module named 'carla'

@corkyw10
Copy link
Contributor

Can you make sure that the PYTHONPATH is set correctly by running the following, or adding it to your .bashrc file:

export PYTHONPATH=$PYTHONPATH:"$HOME/<path/to/carla>/PythonAPI/carla/dist/<name_of_egg_file>.egg"
export PYTHONPATH=$PYTHONPATH:"$HOME/<path/to/carla>/carla"
export PYTHONPATH=$PYTHONPATH:"$HOME/<path/to/carla>/carla/PythonAPI/"

@arihant2math
Copy link
Author

@corkyw10 I am using windows.

@corkyw10
Copy link
Contributor

Hi @arihant2math, sorry for the misunderstanding. Can you look in the directory carla\PythonAPI\carla\dist\ and check the .egg file there? It should look like this carla-<version>-py3.7-win-amd64.egg. The part py3.7 will indicate the version of Python that should be used, it's normally 3.7 in the package versions. Can you confirm that you are running the scripts with Python 3.7?

@arihant2math
Copy link
Author

I was using python 3.9, using 3.7 fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Requires changes/additions to documentation question
Projects
None yet
Development

No branches or pull requests

3 participants