I noticed too. The logic does not seem to work for every platform. That's why I would like to change something there and make it work more easily cross platform.
Rob Op zaterdag 14 maart 2015 12:02:12 UTC+1 schreef Brandon Keith Biggs: > > The > pyglet.options['search_local_libs'] > doesn't seem to work. I'm not sure if I'm using it right, but putting lib/ > and placing the dll in that folder doesn't work at all. Perhaps I need to > try with libs/... > It would just be way better if we could specify the dir somewhere in our > scripts. > I would love it if I could just tell the script where the avbin_libs > folder is and it would just load the proper dll. > Thanks, > > Brandon Keith Biggs <http://www.brandonkeithbiggs.com/> > On 3/14/2015 11:49 AM, Rob wrote: > > I saw some logic in pyglet.lib where you enable > pyglet.options['search_local_libs']. Then it would look for the directory > of your executable or a libs dir in there. I am acutally thinking of > extending it in 1.3 to allow some kind of lib directory structure for > multiple platforms. Similar to what I supplied in the packaged avbin. > > Rob > > Op vrijdag 13 maart 2015 23:08:02 UTC+1 schreef Brandon Keith Biggs: > > Hello, > Is it possible to tell pyglet where AvBin is stored that is cross-platform? > I was thinking something along adding the dlls to the temp path when ever > pyglet is run. > But can I do this right from pyglet? > thanks, > > Brandon Keith Biggs <http://www.brandonkeithbiggs.com/> > On 3/10/2015 5:55 PM, Rob wrote: > > I noticed some issues in pyglet.media related to event handling. Trying to > get to the bottom of it, but that is taking time. > > Rob > > Op maandag 9 maart 2015 05:56:14 UTC+1 schreef claudio canepa: > > Testing examples/soundspace/soundspace.py in win7 32 bits, python27, > pyglet 1.2.2 gives the same traceback. > > I suspect unfinished work in the pyglet transition from 1.1.x to 1.2 : > 1. it works in 1.1.4 > 2. going back in time with hg shows soundspace.py with the same error > 3. Found the commit > """ > changeset: 2279:e44587309dbe > user: Alex.Holkner > date: Tue Sep 23 12:44:18 2008 +0000 > files: examples/soundspace/soundspace.py pyglet/media/__init__.py > pyglet/media/drivers/openal/__init__.py > description: > Add listener and player group to 1.2 media api. Start to fix up soundspace > example -- no sound yet. > """ > > And there isn't a further mention in the hg log about soundspace except > for a trivial commit that changes execute bit on the script > > Oh, this is a known bug: > http://code.google.com/p/pyglet/issues/detail?id=584 > > > On Sun, Mar 8, 2015 at 3:52 PM, claudio canepa <ccan...@gmail.com> wrote: > > soundspace.py may have other audio related issues: in win xp, python27, > pyglet 1.2.2, avbin.dll versions 5, 11 and the one included by Rob in the > all-in-one avbin I get > > D:\cocos_pristine\pyglet-1.2.2\examples\soundspace>py -2.7 soundspace.py > Traceback (most recent call last): > File "soundspace.py", line 594, in <module> > listener = pyglet.media.get_audio_driver().get_listener() > File "D:\cocos_pristine\pyglet-1.2.2\pyglet\media\__init__.py", line 1311, > in > get_listener > raise NotImplementedError('abstract') > NotImplementedError: abstract > > This with the dll in system32, and for reference the cocos sample > tetrico plays without problems with all the three versions > > Also, removing the dll from system32 and placing it at the same dir > where the starting script lives works ok (without code changes, ie not > using pyglet.options['search_local_libs'] = True). > > I will test on win7 32bits and report later. > > > On Sun, Mar 8, 2015 at 8:21 AM, Brandon Keith Biggs <brandonk...@gmail.com > > wrote: > > Hello Rob, > This is fantastic! > I can't get it to work though. I am running the soundspace.py example in > the examples. I copy the two windows dlls into my soundspace dir (I don't > know if I use the 64 cause I am on a 64 bit windows, or the 32 because I am > using a 32 bit of python, so I did both). > With just copying the dlls into the dir, I do > python soundspace.py > and nothing happens. I need to force-close the command prompt. > I tried putting it into a bin folder and it said it didn't find it. I > tried using one at a time and I still got errors. I tried renaming the 64 > to just avbin.dll, but got a windows error. > *Note* I did all the examples with and without the line of code you said > to place in the file. > > I then went into my site-packages and copied the 2 dlls into the media > folder. I ran the program and I got the no avbin error. Then I added the > line you said to add and still got the error. > > I then went into my python27 folder and copied both the dlls and ran it. I > got the same result as I did with the dlls being copied into the same dir > as the .py file. It ran, but there was nothing and I had to force-close the > command prompt. > So I think there may be something wrong with the soundspace.py example. > > Also, what does the license say? That any program that uses AvBin must be > open-source? > > Thank you, > > Brandon Keith Biggs <http://www.brandonkeithbiggs.com/> > On 3/8/2015 11:06 AM, Rob wrote: > > Hi, > > I created a redistributable package at > https://bitbucket.org/pyglet/pyglet/downloads/avbin_10_pyglet.tar.gz > > @Nathan: I included the license file and also pointed to it in the > readme. Would that be ok? > > @Brandon: Please see the readme inside and let me know if this works for > you. > > Rob > > Op zaterdag 7 maart 2015 21:21:43 UTC+1 schreef Nathan: > > AVbin consists of a single library file per platform. Feel free to > repackage them however you want, as long as you abide by the license it is > under. > > AVbin still needs help. See > https://groups.google.com/forum/#!topic/pyglet-users/HxJVKUPcwgE > > Now that Pyglet seems to have been resurrected, perhaps someone would > like to take the reins for Pyglet from me (see above link for more details). > > I would be happy to add committers. I would be even happier to transfer > control of the entire project. I'm really no longer involved except for as > a distant observer wishing you guys well and cheering you on. > > ~ Nathan > > On Sat, Mar 7, 2015 at 9:48 AM, Brandon Keith Biggs <brandonk...@gmail.com > > wrote: > > Hello, > If you could do that, it would really be amazing! > Right now it is AVbin keeping me from changing the back-end of my game > library to pyglet. Once I can get the cross-platform AVbin package, I can > update my distributions! > Thank you, > > Brandon Keith Biggs <http://www.brandonkeithbiggs.com/> > On 3/7/2015 5:28 PM, Rob wrote: > > Hi, > > I am not sure if it works for every platform, but usually putting the > library in the same directory as the module importing it makes it being > found. So then you do not need to put it in os specific places. As I can > see from the source code it tries the default first. So putting it in > pyglet/media should work. I did not try yet. > > I am in favor of creating a 'dist' friendly package of avbin. I am > currently working on pyglet.media, so maybe I'll try to pry the files out > of the installers (or build them myself). > > Rob > > Op zaterdag 7 maart 2015 13:59:51 UTC+1 schreef Brandon Keith Biggs: > > Hello, > Most of my stuff is zipped with CX_Freeze or pyinstaller, so I can include > it in one of those scripts. > I just don't know where to download or put the binaries. > Thanks, > > Brandon Keith Biggs <http://www.brandonkeithbiggs.com/> > On 3/7/2015 12:09 PM, Rob wrote: > > It would be nice if AVbin would provide a package containing the libraries > for each platform, instead of just platform installers. That would be kind > of a 'dist' package. Maybe even add a nice script to install based on the > platform? > > Rob > > Op zaterdag 7 maart 2015 09:10:26 UTC+1 schreef Brandon Keith Biggs: > > Hello, > I am looking at using pyglet as my primary development environment for > games. I have a question though: > Is there a folder I can include in every development system that has the > correct AVbin binary for each OS? > For example, if I have a pyinstaller.spec file, it will check the os, then > copy the proper AVbin file into the dist so I have something like: > > dist/AVbin.dll > dist/game.exe > > Then I just rename my dist file and give it to people for that os. > Is this possible? > thanks, > > -- > Brandon Keith Biggs <http://www.brandonkeithbiggs.com/> > > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pyglet-users...@googlegroups.com. > To post to this group, send email to > > ... -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To post to this group, send email to pyglet-users@googlegroups.com. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.