AndrejGobeX / TrackMania_AI

Racing game AI
GNU General Public License v3.0
99 stars 11 forks source link

Import Error when inputting `python Driver.py Neptune` #7

Closed ZeraBlayde closed 2 years ago

ZeraBlayde commented 2 years ago

Title, A screenshot for reference

Screenshot 2022-01-02 154115

ZeraBlayde commented 2 years ago

Also I'm pretty new to python so if this is obvious sorry for being an inconvenience

AndrejGobeX commented 2 years ago

I don't know, but I can see that you have installed python in Desktop/, not in default location. Also, I don't know from where you are importing basic modules. You are using python 3.7, but the traceback.py and linecache.py are from 3.9. I would recommend you to remove older versions and keep 3.9 or remove them all and install 3.9 (use the default settings + PATH checkbox). Do not edit the scripts if you are unsure.

ZeraBlayde commented 2 years ago

alright, thanks. i was using 3.7 for rlbot but i'm done with that so i'll try it.

asdat3 commented 2 years ago

he was not running in the right directory thats it

the file (driver.py) couldnt import the other files as they where not in the same location as the execution

simply fix this by cd into the directory of this repository. And learn how to manage your folders