import media error (only in 1 subdirectory)

This is the place for queries that don't fit in any of the other categories.

import media error (only in 1 subdirectory)

Postby galaxian » Fri Feb 07, 2014 2:28 am

Hi. In short, import media works in all directories except one specific subdirectory in my documents folder. I am operating on a late 2008 macbook with 10.6.8 installed, using python 2.7.3.

In the shell, for instance, this works.

Code: Select all
>>>import media

It works imported from a module.…

However, once I run a module in the subdirectory Ch 7 it comes back with a traceback error. Then in every successive attempt to run import media until the shell is restarted.

Code: Select all
>>> import media

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    import media
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygraphics/", line 16, in <module>
NameError: name 'init_picture' is not defined

Any help would be appreciated.
Last edited by micseydel on Fri Feb 07, 2014 4:56 am, edited 1 time in total.
Reason: Locked OP.
Posts: 1
Joined: Fri Feb 07, 2014 1:49 am

Return to General Coding Help

Who is online

Users browsing this forum: Bing [Bot] and 5 guests