question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Throws an error while running manual_control.py

See original GitHub issue

Hi, I followed all the steps accordingly but when I try running manual_control.py it throws the below error. I also double checked the paths and environment variables.

I have Python 2.7 and CARLA 0.9.10

Traceback (most recent call last):
  File "manual_control.py", line 58, in <module>
    from examples.manual_control import (World, HUD, KeyboardControl, CameraManager,
ImportError: No module named examples.manual_control

Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
glopezdiestcommented, Mar 16, 2021

Hey @SiNa-Dehbari, recent version need an additional PYTHONPATH link:

export PYTHONPATH=$PYTHONPATH:$CARLA_ROOT/PythonAPI

which seems to be the one you are missing

0reactions
Jia-Wei-Wangcommented, Sep 22, 2021

I add this line to ~/.bashrc

export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/examples

then it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release 0.9.1 manual_control.py gives error when run ...
While I'm using the manual.control.py I'm getting a blackscreen, but i can control the car. Is this the same issue like @YashBansod mentioned?...
Read more >
Cannot run properly the basic scenario in Scenario Runner
Regarding your manual control error, you seem to be missing the $CARLA_ROOT/PythonAPI/carla folder at the PYTHONPATH, so python isn't finding ...
Read more >
Control-C handling in Python and Trio — njs blog
add_callback(B), we just write A(); B() (maybe with some awaits thrown in). Our model for running concurrent tasks is that spawning a task...
Read more >
Problem when linking against Python 3.8 libs in gcc
I don't have experience with manual control of gcc's options, all what I've done was compilation from inside IDE's with automatically set flags....
Read more >
Control Flow — Julia Language development documentation
Exception Handling: try-catch, error and throw. Tasks (aka Coroutines): yieldto. The first five control flow mechanisms are standard to high-level programming ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found