Jump to content

Recommended Posts

Posted

Hi All,

 

I have had a few students having issues with running modules in Python. I have discovered what is happening they are trying to use turtle and creating a module called Turtle.py then trying to run the module they get an error as its trying to import the file rather than the module. once it has broken it writes something to their data folder because as soon as i gave my test account a fresh data path it sorts it.

 

does anyone know locations that IDLE writes to so i can try and clear those files rather than creating new data paths for students with the issue.

 

Cheers,

OFNF

Posted
Have you tried calling the python file something other than turtle.py since it's a known module and you can't have files with the same name as inbuilt modules?
Posted
Hey thanks for your reply. yeah it seems once they have done this once doesnt seem to matter what module I try to import it still holds onto this issue.
Posted

Hmm, my pupil had the same problem once, but renaming the file fixed it.

 

Check AppData\Roaming\Python\Python38\site-packages or similar

Posted
tried that location and weirdly there isnt anything in appdata pertaining to Python. odd as there isnt a redirect for this and its just a standard install of IDLE

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...