Unable to import programs - Programmers Heaven

Howdy, Stranger!

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


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Unable to import programs

hennil93hennil93 Posts: 2Member
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.