Two programs EXACTLY the same, one working, one not. HELP

2 programs EXACTLY the same, saved in different locations. 

1 on the hard drive (works), 1 on a USB drive (error)

The only difference is the location where the program is saved.

(Note: IDLE = works)

 

Problem seems to be with the program calling the module tkinter.

The same issue for turtle module

 

Q. What settings do I change so that I can run programs from the USB drive?

Thank you in advance

 

 

Hard drive program...

 

USB drive program...

 

Python script...

from tkinter import *

root = Tk()

theLabel = Label(root, text="This is too easy")
theLabel.pack()

root.mainloop()
0
5 comments

How to determine if IDE is at fault:

Copy the command from the output (first line of the run console) in case where it fails, copy it to the terminal and execute there.

0
Avatar
Permanently deleted user

Same thing when run in console.

 

USB drive doesn't work...

 

Hard drive does work...

 

IDE not at fault but...

Q. How do I get it to work for the USB file?

Thank you

0

Try removing "_" and spaces from the path.

0
Avatar
Permanently deleted user

No change...

 

I expected someone to say "The tkinter module can't be on the C-drive and the program on a USB-drive"

But I don't see why this would be the case.

There must be a setting somewhere to allow this?

0

Please try to run it from the terminal outside of IDE.

0

Please sign in to leave a comment.