Unable to import programs

Recently started studying at a university in Sweden, and currently I'm taking a course in Python programming. Was thinking it would be nice to be able to program from home aswell, which worked fine until i started trying importing certain python files that are needed to be able to run other python programs.

I.e, we just got a pre-made code which contains some graphical stuff, and this code is needed to run another code that I've written myself. However, when i try to do "from graphics import *" and then try importing the other program with "import xxx" i get an error saying "NameError: name 'graphics' is not defined".

Have tried to do the exactly same thing at the university computers, works flawlessly there, so if anybody has an idea of what might be causing this I would appreciate your replies incredibly!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!