0x163mL / pygraphics

Automatically exported from code.google.com/p/pygraphics
0 stars 0 forks source link

Importing media gives init_picture error #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Import media

What is the expected output? What do you see instead?
Expected media to import and be useable. That init_picture didn't work.

What version of the product are you using? On what operating system?
Imaging 1.1.6 and PyGraphics 1.5

Please provide any additional information below.
Using Ubuntu 10.10 and Python 2.6.6

Original issue reported on code.google.com by willy1234x1 on 14 Jan 2011 at 5:50

GoogleCodeExporter commented 8 years ago
same issue for me with the latest SVN revision (rev 425) and Imaging 1.1.7, 
running on ArchLinux with Python 2.7.1.

Original comment by mattoufo...@gmail.com on 15 Jan 2011 at 1:16

GoogleCodeExporter commented 8 years ago
I'm going to try the SVN revision, see if I have any success with that one.

Original comment by willy1234x1 on 15 Jan 2011 at 9:38

GoogleCodeExporter commented 8 years ago
Attempted it with the most recent revision and got this error on attempting to 
import media.

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/pygraphics/media.py", line 19, in <module>
    picture.init_picture()
AttributeError: 'module' object has no attribute 'init_picture'

Original comment by willy1234x1 on 15 Jan 2011 at 9:51

GoogleCodeExporter commented 8 years ago
it appears that using "from pygraphics import media" instead of "import media" 
works, i don't get the reason of this, as in both cases, the "inin_picture" 
function is imported.

Original comment by mattoufo...@gmail.com on 16 Jan 2011 at 9:46

GoogleCodeExporter commented 8 years ago
I noticed a strange occurrence, when I attempt to import media from any IDE's 
Python console I run into an error. But when I just open up the Python console 
and type import media. It runs without a hitch.

Original comment by willy1234x1 on 16 Jan 2011 at 10:13