kmonsoor / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Pyglet does not run in 10.10 because it sees 10.10 as less in version than 10.6 #765

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Have you tried Pyglet 1.2 alpha1 or the repository code? Yes

What steps will reproduce the problem?
1. Run OS X 10.10.0
2. Install Pyglet 1.2 alpha
3. Use Pyglet

Paste in the traceback or error message:

Traceback (most recent call last):
  File "main.py", line 6, in <module>
    from pyglet import image
  File "/Users/max/.pyenv/versions/2.7/lib/python2.7/site-packages/pyglet/__init__.py", line 203, in <module>
    _choose_darwin_platform()  # can be overridden by an environment variable below
  File "/Users/max/.pyenv/versions/2.7/lib/python2.7/site-packages/pyglet/__init__.py", line 199, in _choose_darwin_platform
    raise Exception('pyglet is not compatible with 64-bit Python for versions of Mac OS X prior to 10.6.')
Exception: pygl

Paste in the output of `python -m pyglet.info`:

Traceback (most recent call last):
  File "/Users/max/.pyenv/versions/2.7/lib/python2.7/runpy.py", line 151, in _run_module_as_main
    mod_name, loader, code, fname = _get_module_details(mod_name)
  File "/Users/max/.pyenv/versions/2.7/lib/python2.7/runpy.py", line 101, in _get_module_details
    loader = get_loader(mod_name)
  File "/Users/max/.pyenv/versions/2.7/lib/python2.7/pkgutil.py", line 456, in get_loader
    return find_loader(fullname)
  File "/Users/max/.pyenv/versions/2.7/lib/python2.7/pkgutil.py", line 466, in find_loader
    for importer in iter_importers(fullname):
  File "/Users/max/.pyenv/versions/2.7/lib/python2.7/pkgutil.py", line 422, in iter_importers
    __import__(pkg)
  File "/Users/max/.pyenv/versions/2.7/lib/python2.7/site-packages/pyglet/__init__.py", line 203, in <module>
    _choose_darwin_platform()  # can be overridden by an environment variable below
  File "/Users/max/.pyenv/versions/2.7/lib/python2.7/site-packages/pyglet/__init__.py", line 199, in _choose_darwin_platform
    raise Exception('pyglet is not compatible with 64-bit Python for versions of Mac OS X prior to 10.6.')
Exception: pyglet is not compatible with 64-bit Python for versions of Mac OS X 
prior to 10.6.

Any additional info (platform/language/hardware) that may be relevant?

It's a simple fix in 
/Users/max/.pyenv/versions/2.7/lib/python2.7/site-packages/pyglet/__init__.py 
— osx_version string "10.10.0" is less than "10.6"... but it shouldn't be.

Original issue reported on code.google.com by tekk.nol...@gmail.com on 5 Nov 2014 at 1:44

GoogleCodeExporter commented 9 years ago
Actually it looks like this is fixed in trunk. My bad.

Original comment by tekk.nol...@gmail.com on 5 Nov 2014 at 1:53