oh sorry I took too long to write, and you fixed it in the meantime! thanks!!
On 14 jun, 02:06, Thomas Woelz <[email protected]> wrote: > Yes, i'm positive... I don't have any other cocos version installed, > it goes in my program's source files. > I'm running it on Ubuntu 10.04 (Lucid Lynx) > > Here is the full traceback: > Traceback (most recent call last): > File "market.py", line 85, in <module> > from cocos.director import director > File "res/cocos/__init__.py", line 100, in <module> > import_all() > File "res/cocos/__init__.py", line 85, in import_all > import actions > File "res/cocos/actions/__init__.py", line 36, in <module> > from basegrid_actions import * > File "res/cocos/actions/basegrid_actions.py", line 63, in <module> > from cocos.grid import Grid3D, TiledGrid3D > File "res/cocos/grid.py", line 42, in <module> > from director import director > File "res/cocos/director.py", line 163, in <module> > import cocos, cocos.audio > File "res/cocos/audio/__init__.py", line 7, in <module> > import pygame.mixer > File "res/cocos/audio/pygame/__init__.py", line 73, in <module> > from cocos.audio.pygame.base import * > File "res/cocos/audio/pygame/base.py", line 28, in <module> > from cocos.audio import SDL > File "res/cocos/audio/SDL/__init__.py", line 30, in <module> > import dll as SDL_dll > File "res/cocos/audio/SDL/dll.py", line 253, in <module> > _dll = SDL_DLL('SDL', 'SDL_Linked_Version', '1.2') > File "res/cocos/audio/SDL/dll.py", line 58, in __init__ > self._load_library_nix() > File "res/cocos/audio/SDL/dll.py", line 91, in _load_library_nix > if library is None and version is not None: > NameError: global name 'version' is not defined > > Seems like it expects at that line that there is a global variable > named "version" and its not defined anywhere. > You don't run into that problem probably because this is only run in > "nix" (_load_library_nix) and this line won't ever run in Windows. > > I added a version=None in the beginning of my _load_library_nix method > (line 89 in cocos/audio/SDL/dll.py) and the error message is gone, but > its a hack and I haven't analyzed the implications of this hack. > > Thomas > > On 14 jun, 00:08, claudio canepa <[email protected]> wrote: > > > On Mon, Jun 14, 2010 at 1:27 AM, Thomas Woelz < > > > > Thanks, > > > I see it committed at r931 , and I can confirm that in my platform (winxp) I > > don't need SDL to run cocos apps. > > > Can you double check that your app is really importing from the most recent > > checkout ? (assuming you have more than one cocos in your system) > > > -- > > claudio -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
