[visionegg] Re: _imagingtk error
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Fri, 28 Jan 2005 14:44:56 -0800
Hi Gabriel,
I don't have the time to delve into this right now, but I think it's
more likely a pygame issue -- the error message indicates something
about threads. AFAIK PIL doesn't use threads, but I think some of the
Mac OS X specific bits of pygame might. (The Vision Egg itself does not.)
Early next week I can take a look if you're still stumped...
Cheers!
Andrew
Gabriel Nevarez wrote:
Hi, all,
new issue:
Been trying to add GUI functionality to my scripts, but having problems getting
the GUI functions to work in OS X.
For example, the VisionEgg demo "drumDemoGUI.py" exits with the following error
message:
Fatal Python error: PyEval_SaveThread: NULL tstate
Abort trap
I've included the entire VisionEgg startup log at the end of this email.
I think it may be related to issues loading the Python Imaging Library, as
python reports the following error during VisionEgg initialization:
2005-01-26 23:11:36,718 (2333) INFO: No Vision Egg logo :( because of error
while trying to display image in GUI.GraphicsConfigurationWindow:
exceptions.ImportError: No module named _imagingtk
This only happens on our OS X (10.3, python 2.3) boxes. The PC install of
VisionEgg works fine.
I've reinstalled the PIL as per the original install instructions and also via
FINK, no go.
I've tried reinstalling Tkintervia Package Manager only to get the following
error:
(TclTkAqua): This package needs to be installed manually (no Download-URL field)
(AppleInstalledPython): This package needs to be installed manually (no
Download-URL field)
Following the install instructions on the VisionEgg site, I realized that there
is no package called "_imagingtk.py*" installed on both our OS X boxes, whereas
our test PC has it installed in the correct \site-packages\PIL directory.
Can I assume that I will just need to rebuild PIL manually on our OS X boxes?
Is there a clear-cut way to determine what is missing, since apparently
check-config.py thinks everything is ok? I've included the check-config.py
output at the end of this email.
cheers,
-=gabe
drumDemoGUI.py output:
m278:/users/shared/projects/visionegg/visionegg-0.9.9-demo/demo/gui sapgn$
pythonw ./drumDemoGUI.py
2005-01-26 23:11:26,855 (2333) INFO: Script ./drumDemoGUI.py started Vision Egg
1.0-cvs with process id 2333.
2005-01-26 23:11:36,718 (2333) INFO: No Vision Egg logo :( because of error
while trying to display image in GUI.GraphicsConfigurationWindow:
exceptions.ImportError: No module named _imagingtk
## Component Manager: attempting to find symbols in a component alias of type
(regR/carP/x!bt)
2005-01-26 23:11:43,034 (2333) INFO: Requesting window 1024 x 768 32 bpp (8 8 8
0 RGBA).
2005-01-26 23:11:43,846 (2333) INFO: OpenGL 1.5 ATI-1.3.36, ATI Radeon 9600 XT
OpenGL Engine, ATI Technologies Inc.
2005-01-26 23:11:43,849 (2333) INFO: Video system reports 32 bpp (8 8 8 8 RGBA).
Fatal Python error: PyEval_SaveThread: NULL tstate
Abort trap
*******************
check-config.py output:
check-config.py for Vision Egg 0.9.5a2.
[2003/09/19 03:54:27 CVS revision 1.19]
Beginning configuration check.
VisionEgg version 1.0-cvs
VisionEgg modules in
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/VisionEgg
VisionEgg system directory
/System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg
VisionEgg user directory /Users/sapgn/VisionEgg
Config file found at
/System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg/VisionEgg.cfg
SYNCLYNC_PRESENT = 0
VISIONEGG_ALWAYS_START_LOGGING = 0
VISIONEGG_CONFIG_FILE =
/System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg/VisionEgg.cfg
VISIONEGG_DARWIN_CONVENTIONAL_PRIORITY = -20
VISIONEGG_DARWIN_MAXPRIORITY_CONVENTIONAL_NOT_REALTIME = 1
VISIONEGG_DARWIN_PTHREAD_PRIORITY = max
VISIONEGG_DARWIN_REALTIME_COMPUTATION_DENOM = 2400
VISIONEGG_DARWIN_REALTIME_CONSTRAINT_DENOM = 1200
VISIONEGG_DARWIN_REALTIME_PERIOD_DENOM = 120
VISIONEGG_DARWIN_REALTIME_PREEMPTIBLE = 0
VISIONEGG_FRAMELESS_WINDOW = 0
VISIONEGG_FULLSCREEN = 0
VISIONEGG_GAMMA_FILE =
VISIONEGG_GAMMA_INVERT_BLUE = 2.1
VISIONEGG_GAMMA_INVERT_GREEN = 2.1
VISIONEGG_GAMMA_INVERT_RED = 2.1
VISIONEGG_GAMMA_SOURCE = none
VISIONEGG_GUI_INIT = 1
VISIONEGG_GUI_ON_ERROR = 1
VISIONEGG_HIDE_MOUSE = 1
VISIONEGG_LOG_FILE = VisionEgg.log
VISIONEGG_LOG_TO_STDERR = 1
VISIONEGG_MAXPRIORITY = 0
VISIONEGG_MONITOR_REFRESH_HZ = 60.0
VISIONEGG_PREFERRED_BPP = 32
VISIONEGG_REQUEST_ALPHA_BITS = 0
VISIONEGG_REQUEST_BLUE_BITS = 8
VISIONEGG_REQUEST_GREEN_BITS = 8
VISIONEGG_REQUEST_RED_BITS = 8
VISIONEGG_SCREEN_H = 768
VISIONEGG_SCREEN_W = 1024
VISIONEGG_SYNC_SWAP = 1
VISIONEGG_SYSTEM_DIR =
/System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg
VISIONEGG_TKINTER_OK = 1
VISIONEGG_USER_DIR = /Users/sapgn/VisionEgg
Version checklist:
Python version 2.3 (OK)
extra Python info: (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple
Computer, Inc. build 1495)]
Numeric version 23.1 (OK)
PyOpenGL (package "OpenGL") version 2.0.1.07 (OK)
pygame version 1.6 (OK)
Python Imaging Library (package "Image") version 1.1.4 (OK)
Optional module(s):
Pyro failed
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
--
Andrew D. Straw Post-doctoral scholar
,-. Dickinson Lab
\_/ California Institute of Technology
8||} Mailcode 138-78
/ \ Pasadena CA 91125, USA
`-^
email: astraw@xxxxxxxxxxx
office: +1 626 395 5828
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] _imagingtk error
- From: Gabriel Nevarez
Other related posts:
- » [visionegg] _imagingtk error
- » [visionegg] Re: _imagingtk error
- » [visionegg] Re: _imagingtk error
- » [visionegg] Re: _imagingtk error
- » [visionegg] Re: _imagingtk error
new issue:
Been trying to add GUI functionality to my scripts, but having problems getting the GUI functions to work in OS X.
For example, the VisionEgg demo "drumDemoGUI.py" exits with the following error message:
Fatal Python error: PyEval_SaveThread: NULL tstate Abort trap
I've included the entire VisionEgg startup log at the end of this email.
I think it may be related to issues loading the Python Imaging Library, as python reports the following error during VisionEgg initialization:
2005-01-26 23:11:36,718 (2333) INFO: No Vision Egg logo :( because of error while trying to display image in GUI.GraphicsConfigurationWindow: exceptions.ImportError: No module named _imagingtk
This only happens on our OS X (10.3, python 2.3) boxes. The PC install of VisionEgg works fine.
I've reinstalled the PIL as per the original install instructions and also via FINK, no go.
I've tried reinstalling Tkintervia Package Manager only to get the following error:
(TclTkAqua): This package needs to be installed manually (no Download-URL field) (AppleInstalledPython): This package needs to be installed manually (no Download-URL field)
Following the install instructions on the VisionEgg site, I realized that there is no package called "_imagingtk.py*" installed on both our OS X boxes, whereas our test PC has it installed in the correct \site-packages\PIL directory.
Can I assume that I will just need to rebuild PIL manually on our OS X boxes? Is there a clear-cut way to determine what is missing, since apparently
check-config.py thinks everything is ok? I've included the check-config.py
output at the end of this email.
cheers, -=gabe
drumDemoGUI.py output:
m278:/users/shared/projects/visionegg/visionegg-0.9.9-demo/demo/gui sapgn$ pythonw ./drumDemoGUI.py 2005-01-26 23:11:26,855 (2333) INFO: Script ./drumDemoGUI.py started Vision Egg 1.0-cvs with process id 2333. 2005-01-26 23:11:36,718 (2333) INFO: No Vision Egg logo :( because of error while trying to display image in GUI.GraphicsConfigurationWindow: exceptions.ImportError: No module named _imagingtk ## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt) 2005-01-26 23:11:43,034 (2333) INFO: Requesting window 1024 x 768 32 bpp (8 8 8 0 RGBA). 2005-01-26 23:11:43,846 (2333) INFO: OpenGL 1.5 ATI-1.3.36, ATI Radeon 9600 XT OpenGL Engine, ATI Technologies Inc. 2005-01-26 23:11:43,849 (2333) INFO: Video system reports 32 bpp (8 8 8 8 RGBA). Fatal Python error: PyEval_SaveThread: NULL tstate Abort trap
*******************
check-config.py output:
check-config.py for Vision Egg 0.9.5a2. [2003/09/19 03:54:27 CVS revision 1.19] Beginning configuration check.
VisionEgg version 1.0-cvs
VisionEgg modules in /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/VisionEgg VisionEgg system directory /System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg VisionEgg user directory /Users/sapgn/VisionEgg
Config file found at /System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg/VisionEgg.cfg
SYNCLYNC_PRESENT = 0
VISIONEGG_ALWAYS_START_LOGGING = 0
VISIONEGG_CONFIG_FILE =
/System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg/VisionEgg.cfg
VISIONEGG_DARWIN_CONVENTIONAL_PRIORITY = -20
VISIONEGG_DARWIN_MAXPRIORITY_CONVENTIONAL_NOT_REALTIME = 1
VISIONEGG_DARWIN_PTHREAD_PRIORITY = max
VISIONEGG_DARWIN_REALTIME_COMPUTATION_DENOM = 2400
VISIONEGG_DARWIN_REALTIME_CONSTRAINT_DENOM = 1200
VISIONEGG_DARWIN_REALTIME_PERIOD_DENOM = 120
VISIONEGG_DARWIN_REALTIME_PREEMPTIBLE = 0
VISIONEGG_FRAMELESS_WINDOW = 0
VISIONEGG_FULLSCREEN = 0
VISIONEGG_GAMMA_FILE = VISIONEGG_GAMMA_INVERT_BLUE = 2.1
VISIONEGG_GAMMA_INVERT_GREEN = 2.1
VISIONEGG_GAMMA_INVERT_RED = 2.1
VISIONEGG_GAMMA_SOURCE = none
VISIONEGG_GUI_INIT = 1
VISIONEGG_GUI_ON_ERROR = 1
VISIONEGG_HIDE_MOUSE = 1
VISIONEGG_LOG_FILE = VisionEgg.log
VISIONEGG_LOG_TO_STDERR = 1
VISIONEGG_MAXPRIORITY = 0
VISIONEGG_MONITOR_REFRESH_HZ = 60.0
VISIONEGG_PREFERRED_BPP = 32
VISIONEGG_REQUEST_ALPHA_BITS = 0
VISIONEGG_REQUEST_BLUE_BITS = 8
VISIONEGG_REQUEST_GREEN_BITS = 8
VISIONEGG_REQUEST_RED_BITS = 8
VISIONEGG_SCREEN_H = 768
VISIONEGG_SCREEN_W = 1024
VISIONEGG_SYNC_SWAP = 1
VISIONEGG_SYSTEM_DIR =
/System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg
VISIONEGG_TKINTER_OK = 1
VISIONEGG_USER_DIR = /Users/sapgn/VisionEgg
Version checklist:
Python version 2.3 (OK) extra Python info: (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] Numeric version 23.1 (OK) PyOpenGL (package "OpenGL") version 2.0.1.07 (OK) pygame version 1.6 (OK) Python Imaging Library (package "Image") version 1.1.4 (OK)
Optional module(s):
Pyro failed
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
- [visionegg] _imagingtk error
- From: Gabriel Nevarez