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.

No module named 'sumo_rl.environment'

See original GitHub issue

Hi everybody, I’m trying to run a simple test using ray rllib, but after installation of all the (many!) dependencies, I get the following unexpected error upon running:

from sumo_rl.environment.env import SumoEnvironment ModuleNotFoundError: No module named 'sumo_rl.environment'

I did a simple pip install sumo-rl in the virtualenv where I have the project as per instructions but it seems something is wrong in the way the package is distributed via pip…

Can somebody help? Am I missing something on my side? In the meanwhile I’ll try to clone the repo and do a local pip installation…

Thanks in advance to anyone that would reply 😃

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
J9nZHANGcommented, Aug 1, 2022

If you use pycharm, I think that “Mark Directory as Source Root” may help you.

0reactions
LucasAlegrecommented, Aug 24, 2022

This problem was solved in the last commit. The pypi version of the repository was outdated, and now it is working correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sumo-rl - PyPI
SUMO-RL provides a simple interface to instantiate Reinforcement Learning environments with SUMO for Traffic Signal Control. The main class SumoEnvironment ...
Read more >
sumo-rl/env.py at master - GitHub
Reinforcement Learning environments for Traffic Signal Control with SUMO. Compatible with Gym, PettingZoo, and popular RL libraries. - sumo-rl/env.py at ...
Read more >
ModuleNotFoundError: No module named 'sumolib'
You need to add the tools dir to the python path, so something like export SUMO_HOME=/home/azlaan/sumo export ...
Read more >
Re: [sumo-user] ImportError: No module named traci (python)
Hello, I'm trying to apply the following commands in python but I always get the error below, (please help) >>> import os, sys...
Read more >
ModuleNotFoundError: No module named 'sumo'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'sumo' How to remove the ModuleNotFoun.
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