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

fix ModuleNotFound errors in rrt_2D #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nro-bot
Copy link

@nro-bot nro-bot commented Jul 15, 2021

Running python rrt_2D causes modulenotfound error.

~/projects/PathPlanning/Sampling_based_Planning (master)$ python rrt_2D/rrt.py
Traceback (most recent call last):
  File "rrt_2D/rrt.py", line 14, in <module>
    from Sampling_based_Planning.rrt_2D import env, plotting, utils
ModuleNotFoundError: No module named 'Sampling_based_Planning'

Since the rrt_3D code works, we can tell that remove "Sampling_based_Planner" from import statements can fix this. I have done so and created this pull request.

Before

from Sampling_based_Planning.rrt_2D import env, plotting, utils

After

from rrt_2D import env, plotting, utils

Now we can run and it works.

~/projects/PathPlanning (master *%)$ python Sampling_based_Planning/rrt_2D/rrt.py 

@padre221
Copy link

That does not solve the issue for me it is still returning the same error ;

File "/home/user/Path planning/PathPlanning/Sampling_based_Planning/rrt_2D/../../Sampling_based_Planning/rrt_2D/plotting.py", line 14, in <module> from Sampling_based_Planning.rrt_2D import env ImportError: No module named 'Sampling_based_Planning'

even though i have made the change

Before

from Sampling_based_Planning.rrt_2D import env, plotting, utils

After

from rrt_2D import env, plotting, utils
<

@padre221
Copy link

@nouyang

That does not solve the issue for me it is still returning the same error ;

File "/home/user/Path planning/PathPlanning/Sampling_based_Planning/rrt_2D/../../Sampling_based_Planning/rrt_2D/plotting.py", line 14, in <module> from Sampling_based_Planning.rrt_2D import env ImportError: No module named 'Sampling_based_Planning'

even though i have made the change

Before

from Sampling_based_Planning.rrt_2D import env, plotting, utils

After

from rrt_2D import env, plotting, utils

Huang-ED
Huang-ED approved these changes Jun 4, 2024
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

Successfully merging this pull request may close these issues.

3 participants