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.

ModuleNotFoundError: No module named 'srunner'

See original GitHub issue

I have added SCENARIO_RUNNER_ROOT as senario_runner in the system variables path which I downloaded from Carla git for carla 0.9.12. In this senario_runner we have srunner folder which I am trying to import to scenario_manager.py and in leaderboard_evaluator.py. I also added ./senario_runner in settings.json of vscode which helped in removing the warning while importing srunner but still when I try to run leaderboard_evaluator.py it gives me this error

Traceback (most recent call last):
  File "C:\CARLA\leaderboard\leaderboard\leaderboard_evaluator.py", line 27, in <module>
    from srunner.scenariomanager.carla_data_provider import *
ModuleNotFoundError: No module named 'srunner'

This is leaderboards_evaluator.py

leaderboardeval

This is settings.json

settjson

  • OS: [Windows 10]
  • CARLA Version [CARLA 0.9.12]
  • Python version [3.8.5]

I also tried carla on ubuntu but I set MESA intel error and it doesn’t run. On windows though it runs but I am getting these import errors which I am trying to solve from some days… Can anyone help me with this… I am stuck on setting carla for a long time. Please help if you know where I am going wrong… Thank you 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
glopezdiestcommented, Nov 3, 2021

Oh, seems like you updated the PYTHONPATH but didn’t refresh the terminal nor sourced the new bash script, so the new PYTHONPATH wasn’t being used. It should work for you now.

@GeneralMak Please, open another issue with your specific problem explained there.

0reactions
GeneralMakcommented, Nov 3, 2021

@chinmay-d Hello ,can you tell me how to successfuly run this leaderboard_evaluator.py? thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'srunner'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'srunner' How to remove the ModuleNotF.
Read more >
Cannot run scenario runner - "No module named 'carla'"
File “scenario_runner.py”, line 31, in import carla ModuleNotFoundError: No module named 'carla'. For information, CARLA is already “open”.
Read more >
How to fix "ModuleNotFoundError: No module named 'srunner'"
You must first install the package before you can use it in your code. Run the following command to install the package and...
Read more >
ModuleNotFoundError: No module named 'watchdog'
This is a duplicate issue. In summary, 1. It may be a python version inconsistency: * If you use python command, execute this...
Read more >
ModuleNotFoundError: No Module Named 'faker' in Python
Quick Fix: Python raises the ModuleNotFoundError: No module named 'faker' when it cannot find the library faker . This error occurs if you...
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