Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
pyglet on Mac OS Mountain Lion?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 48 of 48 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steve Willis  
View profile  
 More options Oct 25 2012, 8:27 pm
From: Steve Willis <steve.wil...@gmail.com>
Date: Thu, 25 Oct 2012 17:27:54 -0700 (PDT)
Local: Thurs, Oct 25 2012 8:27 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

Thanks for your help. --update does not appear to be a legal option:

hg clone: invalid arguments

When I simply issue

hg clone --update https://code.google.com/p/pyglet/

...does it not fetch the latest and greatest? Keep in mind that I did not
have a copy of pyglet at all prior to issuing this command, and it
certainly did fetch *some* version.

Also, just a sanity check, am I correct that someone recently committed a
change that should be downloadable? I'm referring to this post from the
15th,
https://groups.google.com/forum/?fromgroups=#!topic/pyglet-users/JSxc...,
but when I view the changes listed here,
http://code.google.com/p/pyglet/source/list, I don't see any updates since
September.

I appreciate your patience.

Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George Wright  
View profile  
 More options Nov 1 2012, 3:29 am
From: George Wright <georg...@bigpond.net.au>
Date: Thu, 1 Nov 2012 00:29:56 -0700 (PDT)
Local: Thurs, Nov 1 2012 3:29 am
Subject: Re: pyglet on Mac OS Mountain Lion?

I have a brand new MacBook Pro with 10.8.2 System python as it cones from
the shop - off the shelf.
I've been waiting for an announcement like this from Nathan before
installing pyglet. On my older 10.6 machine pyglet stopped working after
years of being fine and I couldn't get it going again.
Can I be confident if I install from the pyglet.org site
the  pyglet-1.1.4.dmg off the shelf - then it will work without problems?
I would prefer not to have to install another version of python.
I would prefer to wait until problems are sorted than just trying it and
getting into a mess like I did before.
I'm not very good at fixing things when broken....
I see later posts since Nathan's below reporting problems.
Am I expecting too much?
Regards
George Wright


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Willis  
View profile  
 More options Nov 1 2012, 12:16 pm
From: Steve Willis <steve.wil...@gmail.com>
Date: Thu, 1 Nov 2012 09:16:47 -0700 (PDT)
Local: Thurs, Nov 1 2012 12:16 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

I would suggest downloading and trying it. That said, as I posted before,
it does not seem to be working for me. There was mention of committing a
fix for OSX Mountain Lion in earlier discussions. I have not been able to
determine if that fix made it to the Mercurial repository. If it did,
either I am not savvy enough to clone the correct revision (completely
plausible), or the committed fix doesn't work on my system. I feel somewhat
confident in conveying the current (as of last week) .dmg release does not
work on OSX 10.8, which isn't a surprise from the comments about it in the
mailing list.

I have never run pyglet before, so take my own (in)experience with a grain
of salt. My system Python is:

Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)

> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]

I have had non-Apple Python installations on this system and upgraded the
operating system many times since mid-2007, so I can't speak to how pyglet
would perform on an "off the shelf" machine.

If you try it out, please reply with your experience.

Best regards,

Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Nov 1 2012, 4:01 pm
From: Nathan <nathan.sto...@gmail.com>
Date: Thu, 1 Nov 2012 14:01:07 -0600
Local: Thurs, Nov 1 2012 4:01 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

On Thu, Nov 1, 2012 at 1:29 AM, George Wright <georg...@bigpond.net.au>wrote:

> I have a brand new MacBook Pro with 10.8.2 System python as it cones from
> the shop - off the shelf.
> I've been waiting for an announcement like this from Nathan before
> installing pyglet. On my older 10.6 machine pyglet stopped working after
> years of being fine and I couldn't get it going again.
> Can I be confident if I install from the pyglet.org site
> the  pyglet-1.1.4.dmg off the shelf - then it will work without problems?

No, not 1.1.4.  Yes, the latest version of 1.2dev from the repository works
for me on 10.8.2 system python.

The next alpha/beta release of 1.2x ought to work for 10.8.2 off-the-shelf.

When's the next packaged release, guys?

~ Nathan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Nov 1 2012, 4:04 pm
From: Nathan <nathan.sto...@gmail.com>
Date: Thu, 1 Nov 2012 14:04:12 -0600
Local: Thurs, Nov 1 2012 4:04 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

On Thu, Nov 1, 2012 at 10:16 AM, Steve Willis <steve.wil...@gmail.com>wrote:

> I would suggest downloading and trying it. That said, as I posted before,
> it does not seem to be working for me. There was mention of committing a
> fix for OSX Mountain Lion in earlier discussions. I have not been able to
> determine if that fix made it to the Mercurial repository. If it did,
> either I am not savvy enough to clone the correct revision (completely
> plausible), or the committed fix doesn't work on my system. I feel somewhat
> confident in conveying the current (as of last week)
> [snip]

Steve

 The following commands run in the terminal ought to get you the latest
pyglet 1.2dev:

(First install mercurial from http://mercurial.selenic.com/ )
hg clone https://pyglet.googlecode.com/hg/ pyglet
cd pyglet
hg pull
hg update
sudo python setup.py install

~ Nathan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Olivier Dormond  
View profile  
 More options Nov 1 2012, 5:25 pm
From: Olivier Dormond <olivier.dorm...@gmail.com>
Date: Thu, 1 Nov 2012 22:25:11 +0100
Local: Thurs, Nov 1 2012 5:25 pm
Subject: Re: pyglet on Mac OS Mountain Lion?
Hi all,

I've been bitten by that annoying "no window" bug and despite the previous
indication that this should be fixed now I've not managed to get it solved.
Nathan last post pushed me to try again and it didn't work once more. However,
I've taken more time to investigate and have finally fixed it ! \o/

So for anybody out there still desperately trying to get that fixed,
here is what
I did in addition to Nathan's instruction to get the latest release:

rm -fr ~/Library/Saved\ Application\ State/org.python.*

That's it.

There is actually two savedState that were removed by that operation:
- org.python.PythonLauncher.savedState
- org.python.python.savedState

I don't know if the removal of both is mandatory to fix the problem
but it worked
and they did not reappear for now.

Cheers,

Odie

2012/11/1 Nathan <nathan.sto...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Nov 2 2012, 12:17 am
From: Nathan <nathan.sto...@gmail.com>
Date: Thu, 1 Nov 2012 22:17:47 -0600
Local: Fri, Nov 2 2012 12:17 am
Subject: Re: pyglet on Mac OS Mountain Lion?

Interesting.  I've never even heard of those files!

~ Nathan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stonewall Ballard  
View profile  
 More options Nov 2 2012, 5:52 pm
From: Stonewall Ballard <sb.l...@sb.org>
Date: Fri, 2 Nov 2012 17:52:25 -0400
Local: Fri, Nov 2 2012 5:52 pm
Subject: Re: pyglet on Mac OS Mountain Lion?
I found that I had to delete org.python.python.savedState each time before running the tests in order to get the windows to show up. This explains why it ran correctly only the first time I installed pyglet.

If I delete the saved state, then run the "window" test by itself, it works and does not generate new saved state. "window" will run repeatedly. If I run the "app" test by itself first, it generates the saved state, and prevents the "window" test from running subsequently, until the saved state is deleted.

In particular, it's the file "data.data" within the saved state that's causing the problem. If I remove only that file, the window test works.

The tests "app", "font", "text", and "image" all generate the "data.data" file. The others do not.

I don't know why this is happening, but I hope that this info will clarify things.

I'm running 10.8.2 with the stock python on a Macbook Pro Retina.

 - Stoney

On Nov 1, 2012, at 5:25 PM, Olivier Dormond <olivier.dorm...@gmail.com> wrote:

--
Stonewall Ballard
sto...@sb.org           http://stoney.sb.org/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stonewall Ballard  
View profile  
 More options Nov 3 2012, 11:19 am
From: Stonewall Ballard <sb.l...@sb.org>
Date: Sat, 3 Nov 2012 11:19:22 -0400
Local: Sat, Nov 3 2012 11:19 am
Subject: Re: pyglet on Mac OS Mountain Lion?
I found a simple work-around for this. Empty the org.python.python.savedState folder, get info on it, then turn on the lock flag. The Python app will no longer be able to save state.

 - Stoney

On Nov 2, 2012, at 5:52 PM, Stonewall Ballard <sb.l...@sb.org> wrote:

> I found that I had to delete org.python.python.savedState each time before running the tests in order to get the windows to show up. This explains why it ran correctly only the first time I installed pyglet.

> If I delete the saved state, then run the "window" test by itself, it works and does not generate new saved state. "window" will run repeatedly. If I run the "app" test by itself first, it generates the saved state, and prevents the "window" test from running subsequently, until the saved state is deleted.

> In particular, it's the file "data.data" within the saved state that's causing the problem. If I remove only that file, the window test works.

> The tests "app", "font", "text", and "image" all generate the "data.data" file. The others do not.

> I don't know why this is happening, but I hope that this info will clarify things.

> I'm running 10.8.2 with the stock python on a Macbook Pro Retina.

> - Stoney

--
Stonewall Ballard
sto...@sb.org           http://stoney.sb.org/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Schackart  
View profile  
 More options Nov 5 2012, 3:04 am
From: Adam Schackart <plainflavo...@gmail.com>
Date: Mon, 5 Nov 2012 00:04:50 -0800 (PST)
Local: Mon, Nov 5 2012 3:04 am
Subject: Re: pyglet on Mac OS Mountain Lion?

perhaps i should have compiled some dylibs and played around with them
before making such a glib assumption

i am eating my words here, and they are delicious


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pepijn  
View profile  
 More options Dec 6 2012, 6:39 pm
From: pepijn <pep...@boltcreative.com>
Date: Thu, 6 Dec 2012 15:39:28 -0800 (PST)
Local: Thurs, Dec 6 2012 6:39 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

Hey Nathan/all,

Thanks for outlining these steps. Unfortunately i'm still getting the same
quick time errors as Steve Willis above. I had previously installed Pyglet
1.1.4 through pyglet.org... Maybe i should've uninstalled that one before i
followed your steps. Not sure how to uninstall though. I looked through
their documentation but they only tell you how to install. Anyone any ideas?

Also, can i use the stock python that comes with os x 10.8?

Thanks for all the help here in any case!

Pepijn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Willis  
View profile  
 More options Dec 6 2012, 6:54 pm
From: Steve Willis <steve.wil...@gmail.com>
Date: Thu, 6 Dec 2012 15:54:57 -0800 (PST)
Local: Thurs, Dec 6 2012 6:54 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

Pepjin,

I don't believe I had any "quick time" issues. Stonewall Ballard's replies
above worked for the issue I did have, though this limits my ability to
deploy a production Pyglet application with other Mac users. The issue
appears to have something to do with OSX saving the state for windows
automatically, which then allows the operating system to restore the
window's geometry and last opened documents the next time a particular
application is launched. This behavior isn't specific to Python...if you
browse your "~/Library/Saved Application State" directory, you will see
many such entries for a variety of applications. In this case, the
offending one that must be deleted is org.python.python.savedState.
However, as Stonewall Ballard noted above, you must actually lock this file
somehow to prevent it from being recreated each time Pyglet runs.

Thanks to all who helped me with this issue. I am now running a pure-Python
OpenGL application, and am very impressed with Pyglet. I don't have any
additional information on this issue, but would be happy to lend my time
and Macs to tracking down the cause.

Best regards,

Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pepijn Gooiker  
View profile  
 More options Dec 6 2012, 7:10 pm
From: Pepijn Gooiker <pep...@boltcreative.com>
Date: Thu, 6 Dec 2012 18:10:41 -0600
Local: Thurs, Dec 6 2012 7:10 pm
Subject: RE: pyglet on Mac OS Mountain Lion?

Thanks Steve for clearing that up. I checked the saved state folder in Library but didn't see the state for org.python.python.savedState.

Btw, I was referring to the 'quicktime' output that you pasted above.

When i tried to build my application i receive something very similar:

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cty pes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/System/Library/Frameworks/QuickTime.framework/QuickTime, 6): no suitable image found.  Did find:
        /System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o, but wrong architecture
        /System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o, but wrong architecture

Please excuse any 'noob' comments/observations. I'm pretty new to pyglet and it was always running fine on 10.7.

Thanks,
Pepijn

________________________________________
From: pyglet-users@googlegroups.com [pyglet-users@googlegroups.com] On Behalf Of Steve Willis [steve.wil...@gmail.com]
Sent: Thursday, December 06, 2012 3:54 PM
To: pyglet-users@googlegroups.com
Subject: Re: pyglet on Mac OS Mountain Lion?

Pepjin,

I don't believe I had any "quick time" issues. Stonewall Ballard's replies above worked for the issue I did have, though this limits my ability to deploy a production Pyglet application with other Mac users. The issue appears to have something to do with OSX saving the state for windows automatically, which then allows the operating system to restore the window's geometry and last opened documents the next time a particular application is launched. This behavior isn't specific to Python...if you browse your "~/Library/Saved Application State" directory, you will see many such entries for a variety of applications. In this case, the offending one that must be deleted is org.python.python.savedState. However, as Stonewall Ballard noted above, you must actually lock this file somehow to prevent it from being recreated each time Pyglet runs.

Thanks to all who helped me with this issue. I am now running a pure-Python OpenGL application, and am very impressed with Pyglet. I don't have any additional information on this issue, but would be happy to lend my time and Macs to tracking down the cause.

Best regards,

Steve

On Thursday, December 6, 2012 4:39:28 PM UTC-7, pepijn wrote:

Hey Nathan/all,

Thanks for outlining these steps. Unfortunately i'm still getting the same quick time errors as Steve Willis above. I had previously installed Pyglet 1.1.4 through pyglet.org... Maybe i should've uninstalled that one before i followed your steps. Not sure how to uninstall though. I looked through their documentation but they only tell you how to install. Anyone any ideas?

Also, can i use the stock python that comes with os x 10.8?

Thanks for all the help here in any case!

Pepijn

On Thursday, November 1, 2012 1:04:15 PM UTC-7, Nathan wrote:
On Thu, Nov 1, 2012 at 10:16 AM, Steve Willis <steve....@gmail.com> wrote:

I would suggest downloading and trying it. That said, as I posted before, it does not seem to be working for me. There was mention of committing a fix for OSX Mountain Lion in earlier discussions. I have not been able to determine if that fix made it to the Mercurial repository. If it did, either I am not savvy enough to clone the correct revision (completely plausible), or the committed fix doesn't work on my system. I feel somewhat confident in conveying the current (as of last week)
[snip]
Steve

 The following commands run in the terminal ought to get you the latest pyglet 1.2dev:

(First install mercurial from http://mercurial.selenic.com/ )
hg clone https://pyglet.googlecode.com/hg/ pyglet
cd pyglet
hg pull
hg update
sudo python setup.py install

~ Nathan

--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pyglet-users/-/jKhZZizkFNUJ.
To post to this group, send email to pyglet-users@googlegroups.com.
To unsubscribe from this group, send email to pyglet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Dec 7 2012, 12:58 pm
From: Nathan <nathan.sto...@gmail.com>
Date: Fri, 7 Dec 2012 10:58:41 -0700
Local: Fri, Dec 7 2012 12:58 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

On Thu, Dec 6, 2012 at 4:39 PM, pepijn <pep...@boltcreative.com> wrote:
> Hey Nathan/all,

> Thanks for outlining these steps. Unfortunately i'm still getting the same
> quick time errors as Steve Willis above. I had previously installed Pyglet
> 1.1.4 through pyglet.org... Maybe i should've uninstalled that one before i
> followed your steps. Not sure how to uninstall though. I looked through
> their documentation but they only tell you how to install. Anyone any ideas?

Lets check to see if everything got upgraded like you expected.  Try
running python, and then running the following commands:

import pyglet
print(pyglet.version)
print(pyglet.media.have_avbin)
print(pyglet.media.avbin.get_version())

For example, on one of my machines it looks like this:

$ python
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import pyglet
>>> print(pyglet.version)
1.2alpha1
>>> print(pyglet.media.have_avbin)
True
>>> print(pyglet.media.avbin.get_version())

11

> Also, can i use the stock python that comes with os x 10.8?

You can if you install the development version of pyglet from the mercurial
repository.

> Thanks for all the help here in any case!

I hope this helps.  :-)

~ Nathan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Willis  
View profile  
 More options Dec 7 2012, 1:28 pm
From: Steve Willis <steve.wil...@gmail.com>
Date: Fri, 7 Dec 2012 10:28:42 -0800 (PST)
Local: Fri, Dec 7 2012 1:28 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

I am using the latest development Pyglet from the mercurial repository on
OSX 10.8 without issue, aside from the need to suppress the Application
State file as described previously. I haven't run any tests outside of my
own project, but it seems to be very stable thus far.

Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Dec 7 2012, 1:49 pm
From: Nathan <nathan.sto...@gmail.com>
Date: Fri, 7 Dec 2012 11:49:39 -0700
Local: Fri, Dec 7 2012 1:49 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

On Fri, Dec 7, 2012 at 11:28 AM, Steve Willis <steve.wil...@gmail.com>wrote:

> I am using the latest development Pyglet from the mercurial repository on
> OSX 10.8 without issue, aside from the need to suppress the Application
> State file as described previously. I haven't run any tests outside of my
> own project, but it seems to be very stable thus far.

> Steve

That is so weird that you have to suppress the creation of the "~/Library/Saved
Application State/org.python.python.savedState" directory.  That directory
exists on all my 10.8 installations, but has never caused a problem.

Does the problem occur even if you do a basic "hello world" pyglet app?

~ Nathan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Willis  
View profile  
 More options Dec 7 2012, 2:20 pm
From: Steve Willis <steve.wil...@gmail.com>
Date: Fri, 7 Dec 2012 11:20:48 -0800 (PST)
Local: Fri, Dec 7 2012 2:20 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

Yes. In fact, I am very new to Pyglet, and initially encountered this issue
when trying the first "Hello, World" example in the Pyglet documentation.
The development version runs without error and the Python process is
running, but no window appears. After suppressing the creation of the
org.python.python.savedState file, everything has gone smoothly.

A little research tells me that this file, and the many others like it, are
part of the feature which can be configured with the "Close windows when
quitting an application" checkbox found in System Preferences | General. In
my case, checking this box did not solve the problem by itself, but the
file is related to this feature allowing for OSX to restore the window
state and open documents within for compliant applications.

I have also observed that this file is not created immediately in all
cases. Before suppressing the creation of the file by locking permissions
on the Application State folder (disabling this feature for all other
applications as well), I tried manually deleting it while developing a
simple test application. In some cases, it was several minutes before the
file was created. In some cases I could even launch my application again
after its creation, but not consistently. The only method that has proved
reliable is to avoid creating the file in the first place.

One final tidbit: I also tried simply checking for the existence of this
file and deleting it when found as the first task in my Python script. This
did not work. As a result, I suspect that the file is created at the time
Pyglet is initialized on import, and not necessarily at the time a window
is actually displayed.

Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phillip Nguyen  
View profile  
 More options Dec 7 2012, 3:50 pm
From: Phillip Nguyen <evil.phil...@gmail.com>
Date: Fri, 7 Dec 2012 14:50:34 -0600
Local: Fri, Dec 7 2012 3:50 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

Wow, thanks!  With this information I found the ApplePersistenceIgnoreState key, and I've committed a fix that should prevent the org.python.python.savedState file from ever being created or used.  This fixes the problem of new windows not being displayed after finishLaunching got called.  It also explains why the problem was only showing up with certain builds of python and not pypy.  There is an Xcode build setting that can be checked to prevent automatic state restoration for the application and I'm guessing the python from python.org doesn't have this set.

When you run a pyglet program from the terminal, there is a warning message saying that it won't be saving or restoring state.  But I think I can live with that.

--phillip

On Dec 7, 2012, at 1:20 PM, Steve Willis <steve.wil...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pepijn Gooiker  
View profile  
 More options Dec 7 2012, 5:54 pm
From: Pepijn Gooiker <pep...@boltcreative.com>
Date: Fri, 7 Dec 2012 16:54:42 -0600
Local: Fri, Dec 7 2012 5:54 pm
Subject: RE: pyglet on Mac OS Mountain Lion?
Hey Nathan,

This is the output when i run said commands:

Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import pyglet
>>> print(pyglet.version)

1.2alpha1

>>> print(pyglet.media.have_avbin)

2012-12-07 14:52:34.051 Python[414:f07] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/b6/wjplmbk94bd501nx2n40vzbr0000gn/T/org.python.python.savedSta te
Unexpected error loading library /usr/local/lib/libavbin.dylib: dlopen(/usr/local/lib/libavbin.dylib, 6): no suitable image found.  Did find:
        /usr/local/lib/libavbin.dylib: no matching architecture in universal wrapper
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pyglet/__init__.py", line 338, in __getattr__
    __import__(import_name)
  File "pyglet/media/__init__.py", line 1469, in <module>
    import avbin
  File "pyglet/media/avbin.py", line 64, in <module>
    darwin='/usr/local/lib/libavbin.dylib')
  File "pyglet/lib.py", line 111, in load_library
    lib = ctypes.cdll.LoadLibrary(name)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__i nit__.py", line 443, in LoadLibrary
    return self._dlltype(name)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__i nit__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/usr/local/lib/libavbin.dylib, 6): no suitable image found.  Did find:
        /usr/local/lib/libavbin.dylib: no matching architecture in universal wrapper

>>> print(pyglet.media.avbin.get_version())

Unexpected error loading library /usr/local/lib/libavbin.dylib: dlopen(/usr/local/lib/libavbin.dylib, 6): no suitable image found.  Did find:
        /usr/local/lib/libavbin.dylib: no matching architecture in universal wrapper
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pyglet/__init__.py", line 338, in __getattr__
    __import__(import_name)
  File "pyglet/media/__init__.py", line 1469, in <module>
    import avbin
  File "pyglet/media/avbin.py", line 64, in <module>
    darwin='/usr/local/lib/libavbin.dylib')
  File "pyglet/lib.py", line 111, in load_library
    lib = ctypes.cdll.LoadLibrary(name)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__i nit__.py", line 443, in LoadLibrary
    return self._dlltype(name)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__i nit__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/usr/local/lib/libavbin.dylib, 6): no suitable image found.  Did find:
        /usr/local/lib/libavbin.dylib: no matching architecture in universal wrapper


Any idea what's happening?

Thanks
Pepijn

________________________________________
From: pyglet-users@googlegroups.com [pyglet-users@googlegroups.com] On Behalf Of Nathan [nathan.sto...@gmail.com]
Sent: Friday, December 07, 2012 9:58 AM
To: pyglet-users@googlegroups.com
Subject: Re: pyglet on Mac OS Mountain Lion?

On Thu, Dec 6, 2012 at 4:39 PM, pepijn <pep...@boltcreative.com<mailto:pep...@boltcreative.com>> wrote:
Hey Nathan/all,

Thanks for outlining these steps. Unfortunately i'm still getting the same quick time errors as Steve Willis above. I had previously installed Pyglet 1.1.4 through pyglet.org... Maybe i should've uninstalled that one before i followed your steps. Not sure how to uninstall though. I looked through their documentation but they only tell you how to install. Anyone any ideas?

Lets check to see if everything got upgraded like you expected.  Try running python, and then running the following commands:

import pyglet
print(pyglet.version)
print(pyglet.media.have_avbin)
print(pyglet.media.avbin.get_version())

For example, on one of my machines it looks like this:

$ python
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import pyglet
>>> print(pyglet.version)
1.2alpha1
>>> print(pyglet.media.have_avbin)
True
>>> print(pyglet.media.avbin.get_version())

11

Also, can i use the stock python that comes with os x 10.8?

You can if you install the development version of pyglet from the mercurial repository.

Thanks for all the help here in any case!

I hope this helps.  :-)

~ Nathan

--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To post to this group, send email to pyglet-users@googlegroups.com.
To unsubscribe from this group, send email to pyglet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pepijn  
View profile  
 More options Dec 7 2012, 7:05 pm
From: pepijn <pep...@boltcreative.com>
Date: Fri, 7 Dec 2012 16:05:52 -0800 (PST)
Local: Fri, Dec 7 2012 7:05 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

Looks like we were able to solve it here.

We reinstalled pyglet 1.1.2 but only after switching to 32bit mode for (the
os x 'stock') python.

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes",
shell=True

BTW I'm still getting the same error when printing the state of av/bin. But
our projects build so for now that's good enough.

Thanks again for the help!

Pepijn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Dec 8 2012, 1:26 am
From: Nathan <nathan.sto...@gmail.com>
Date: Fri, 7 Dec 2012 23:26:24 -0700
Local: Sat, Dec 8 2012 1:26 am
Subject: Re: pyglet on Mac OS Mountain Lion?

Awesome!  Thanks for fixing that, Phillip.

~ Nathan

On Fri, Dec 7, 2012 at 1:50 PM, Phillip Nguyen <evil.phil...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Schmidt  
View profile  
 More options May 30, 2:02 am
From: Andrew Schmidt <scatterf...@gmail.com>
Date: Wed, 29 May 2013 23:02:53 -0700 (PDT)
Local: Thurs, May 30 2013 2:02 am
Subject: Re: pyglet on Mac OS Mountain Lion?

Did we get an actual solution to this? I have this exact problem, running
the 1.2alpha1 version.

Everything else about pyglet looks lovely, and I'm eager to get started :D


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options May 30, 7:58 pm
From: Nathan <nathan.sto...@gmail.com>
Date: Thu, 30 May 2013 17:58:45 -0600
Local: Thurs, May 30 2013 7:58 pm
Subject: Re: pyglet on Mac OS Mountain Lion?

Ya, that was fixed.  You have to check out pyglet from the repository using
mercurial and install it from there.

~ Nathan

On Thu, May 30, 2013 at 12:02 AM, Andrew Schmidt <scatterf...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »