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

make: Nothing to be done for 'PythonAPI'. #2

Open
lylyjy opened this issue Mar 14, 2021 · 4 comments
Open

make: Nothing to be done for 'PythonAPI'. #2

lylyjy opened this issue Mar 14, 2021 · 4 comments

Comments

@lylyjy
Copy link

lylyjy commented Mar 14, 2021

Hi, when I run "make PythonAPI" in .carla,
it occurs that:
make: Nothing to be done for 'PythonAPI'.
Can you tell me how to solve it?

The problem occurs when I run python PythonAPI/util/config.py -m Town04 -p 4000,
it occurs that:AttributeError: module 'carla' has no attribute 'Client'

Thanks.

@rohjunha
Copy link
Owner

Hi @lylyjy, can you copy the error message you had?
I am not sure how make PythonAPI is running by calling python PythonAPI/util/config.py.
(Since we're copying the binary of CARLA, we don't need to build it.)
I found a similar problem from the CARLA repo: carla-simulator/carla#3083.
I am wondering if you run the python command at $(PROJECT_DIRECTORY)/.carla and you're using python 3.7 or later.

@lylyjy
Copy link
Author

lylyjy commented Mar 16, 2021

When I run python PythonAPI/util/config.py -m Town04 -p 4000,
it occurs that:
Traceback (most recent call last):
File "PythonAPI/util/config.py", line 288, in
main()
File "PythonAPI/util/config.py", line 198, in main
client = carla.Client(args.host, args.port, worker_threads=1)
AttributeError: module 'carla' has no attribute 'Client'

@lylyjy
Copy link
Author

lylyjy commented Mar 16, 2021

I run the python command at $(PROJECT_DIRECTORY)/.carla and you're using python 3.7 or later.

@rohjunha
Copy link
Owner

rohjunha commented Mar 17, 2021

I think you should run bash env.sh before running the python code.
This will add the $(PROJECT_DIRECTORY)/.carla/PythonAPI and egg file into the $PYTHONPATH variable and activate the conda environment.
Sorry for omitting this part in the README. I will update it.

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

2 participants