/c/media/code/python/topics/presentations.txt /c/downloads/python/pyglet/bruce-3.2.1/bruce/rst_parser.py /c/downloads/python/pyglet/bruce-3.2.1/bruce/presentation.py /c/downloads/python/pyglet/bruce-3.2.1/bruce/run.py /c/virtuals/pyglet/pyglet-1.1.3/examples/image_display.py /c/virtuals/pyglet/pyglet-1.1.3/pyglet/app/__init__.py
some issues with images in pyglet if they are too big, they seem to cause problems... maybe bigger than display?
theory supported by: | http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=pyglet+images+bigger+than+window&btnG=Google+Search | pyglet images bigger than window - Google Search | http://groups.google.com/group/pyglet-users/browse_thread/thread/fca05d1f8feed7a1 | direct drawing into a texture - pyglet-users | Google Groups
files for pyglet that handle vsync:
/c/virtuals/pyglet/pyglet-1.1.3/pyglet/window/carbon/__init__.py /c/virtuals/pyglet/pyglet-1.1.3/pyglet/gl/agl.py /c/virtuals/pyglet/pyglet-1.1.3/pyglet/window/__init__.py /c/virtuals/pyglet/pyglet-1.1.3/pyglet/app/carbon.py
By default pyglet window buffer swaps are synchronised to the display refresh rate, so you may also want to disable set_vsync.
attempted an install from source... ended up going with a binary distribution
#curl http://www.ijg.org/files/jpegsrc.v6b.tar.gz > /tmp/libjpeg.tar.gz curl http://www.ijg.org/files/jpegsrc.v8a.tar.gz > /tmp/libjpeg.tar.gz
tar -xzvf /tmp/libjpeg.tar.gz cd jpeg-8a ./configure
sudo make install
cd ../ sudo rm -rf jpeg-8a
download and move prebuilt binary for osx to /usr/local/bin sudo mv ~/Desktop/jhead /usr/local/bin sudo chmod +x /usr/local/bin/jhead
spent a few hours last night running through the examples included with pyglet. very cool stuff!
should be other links mentioned elsewhere should pool them here
/c/downloads/python/pyglet-1.1.3/examples python media_player.py /media/CHARLES/outgoing/MVI_8486.AVI
that is a good first test to make sure AVBin is installed locally (have added to media/system/startup-live.sh)
pyglet.media.riff.RIFFFormatException: Unsupported RIFF form "AVI "
make sure avbin has been installed on the system
#2009.04.06 11:45:36 work@140-182-132-176:/c/virtuals/pyglet/pyglet-1.1.3/examples pythonw image_display.py /c/media/projects/IMG_8116_l.JPG
to:ianb@colorstudy.org? I just ran across this issue when trying to use pyglet in a virtual environment on Mac OS X. The message from pyglet was: pyglet.window.carbon.CarbonException: Window manager is not available. Ensure you run "pythonw", not "python"
which lead me to a more recent thread: | http://groups.google.com/group/python-virtualenv/browse_thread/thread/83fa4a12d22a30c8/744e19c194f1618a
which has a fix at: | http://github.com/gldnspud/virtualenv-pythonw-osx/tree/master
I haven't tried the fix yet, but I thought I might send it on to see if it is something that should be included with virtualenv. It's not so much about supporting older versions of python, just being able to use pythonw from a virtualenv.
-Charles
On May 16 2008, 3:12 pm, Ian Bicking <i...@colorstudy.com> wrote: > dmp wrote: > > > On Wed, Apr 16, 2008 at 2:27 PM, Ian Bicking <i...@colorstudy.com > > <mailto:i...@colorstudy.com>> wrote: > > > dmp wrote: > > > Using virtualenv 1.0 I created a virtual environment, installed > > an app > > > that tries to open a GUI dialog, and keep getting the following > > message: > > > > This program needs access to the screen. Please run with 'pythonw', > > > not 'python', and only when you are logged in on the main display of > > > your Mac. > > > > Is there a fix for this yet? I (naively) tried copying the pythonw > > > executable to the virtualenv bin directory but that didn't work. A > > > google search turned up only one useful hit -- from a couple > > months ago > > > where Robert Kern indicated he had a patch that would fix this. Is > > > there a plan to get that into virtualenv at all? > > > I don't see that patch, do you know where it is? > > > I can't believe I didn't at least provide the link to the archived > > message from Robert. Here it is: > > http://www.mail-archive.com/distutils-...@python.org/msg04223.html > > > I'm not sure he ever finished / submitted it. I can ask him tomorrow > > about it though. > > Was there a followup for this? The email describes a fairly complicated > solution, so I'm not sure what to do about it. Supporting older > versions of Python isn't a huge concern in every situation, I think, > because the idea of virtualenv is isolation so that everything doesn't > have to be run on the same set of libraries or Python version. So if > things work okay on Python 2.4 that would be good enough for me. A > warning for users would be nice, but I'm not really sure what's going on > here. > > -- > Ian Bicking : i...@colorstudy.com :http://blog.ianbicking.org
avbin is used by default in pyglet some discussion about the use of gstreamer in pyglet | http://code.google.com/p/pyglet/wiki/MediaOnLinux | http://www.mechanicalcat.net/richard/log/Python/Say_hello_to_pyglet
gstreamer interface reported to be complex.
downloaded source, docs and avbin to USB attempting install for linux
/media/CHARLES/downloads/python/avbin-linux-x86-32-7 sudo bash install.sh
/media/CHARLES/downloads/python/pyglet-1.1.3 sudo python setup.py install
bruce uses pyglet to display slides via open gl... this works full screen