Import SGC python 3 crash

Bug #1405785 reported by Floriusin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Simple Game Code
Fix Released
Critical
Unassigned

Bug Description

I have Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:24:06) [MSC v.1600 32 bit (Intel)] on win32.

I tried to run your helloworld.py and I get this:

Traceback (most recent call last):
  File "G:\***\sgc-0.2.1-py3\example\helloworld.py", line 1, in <module>
    import sgc
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
  File "C:\Python34_32\lib\site-packages\simplegc-0.2.1-py3.4.egg\sgc\__init__.py", line 19, in <module>
    from . import surface
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
  File "C:\Python34_32\lib\site-packages\simplegc-0.2.1-py3.4.egg\sgc\surface.py", line 13, in <module>
    from .widgets import _locals
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
  File "C:\Python34_32\lib\site-packages\simplegc-0.2.1-py3.4.egg\sgc\widgets\_locals.py", line 254, in <module>
    class Font(metaclass=FontMetaclass):
ValueError: '_fonts' in __slots__ conflicts with class variable

I tried to run test.py and I get this:

Traceback (most recent call last):
  File "G:\***\sgc-0.2.1-py3\example\test.py", line 30, in <module>
    import sgc
  File "..\sgc\__init__.py", line 19, in <module>
    from . import surface
  File "..\sgc\surface.py", line 13, in <module>
    from .widgets import _locals
  File "..\sgc\widgets\_locals.py", line 254, in <module>
    class Font(metaclass=FontMetaclass):
ValueError: '_fonts' in __slots__ conflicts with class variable

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

I've deleted the __slots__ lines that are causing this error, and reuploaded the code. Can you check if that is working now?

Changed in simplegc:
status: New → Fix Committed
importance: Undecided → Critical
Revision history for this message
Floriusin (brnopcman) wrote :

It works fine thanks.

Sam Bull (dreamsorcerer)
Changed in simplegc:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.