-
Notifications
You must be signed in to change notification settings - Fork 39
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
python client.py 的相对导入问题 #9
Comments
sys.path.append("E:\UAV-auto-navigation-and-object-tracking-based-on-RL\airsim_rl\") I tried the code above, and it worked, hope it can help. |
检查下move_to_airsim 文件哈 |
Could you please tell me exactly where this code is added to run? |
(ad_py37) D:\UAV-auto-navigation-and-object-tracking-based-on-RL-main>D:/anaconda/envs/ad_py37/python.exe d:/UAV-auto-navigation-and-object-tracking-based-on-RL-main/airsim_rl/misc/move_to_airsim/client.py
Traceback (most recent call last):
File "d:/UAV-auto-navigation-and-object-tracking-based-on-RL-main/airsim_rl/misc/move_to_airsim/client.py", line 9, in
from .utils import *
ImportError: attempted relative import with no known parent package
(ad_py37) D:\UAV-auto-navigation-and-object-tracking-based-on-RL-main>D:/anaconda/envs/ad_py37/python.exe d:/UAV-auto-navigation-and-object-tracking-based-on-RL-main/airsim_rl/misc/move_to_airsim/client.py
Traceback (most recent call last):
File "d:/UAV-auto-navigation-and-object-tracking-based-on-RL-main/airsim_rl/misc/move_to_airsim/client.py", line 11, in
from .types import *
ImportError: attempted relative import with no known parent package
The text was updated successfully, but these errors were encountered: