Cannot install through PyPy #26

Closed
suminb opened this Issue Jan 27, 2013 · 3 comments

Comments

Projects
None yet
3 participants
@suminb

suminb commented Jan 27, 2013

I tried to install the latest commit (7d51e44) with PyPy, but I ran into a problem.

$ sudo pypy setup.py install
Traceback (most recent call last):
  File "app_main.py", line 51, in run_toplevel
  File "setup.py", line 20, in <module>
    from sure import version
  File "/private/tmp/sure/sure/__init__.py", line 39, in <module>
    from sure.magic import is_cpython, patchable_builtin
  File "/private/tmp/sure/sure/magic.py", line 41, in <module>
    ('ob_type', ctypes.POINTER(PyObject)),
  File "/opt/local/lib/pypy/lib_pypy/_ctypes/structure.py", line 137, in struct_setattr
    self.__dict__.get('_anonymous_', None))
  File "/opt/local/lib/pypy/lib_pypy/_ctypes/structure.py", line 72, in names_and_fields
    self.__dict__.update(fields)
TypeError: cannot add non-string keys to dict of a type
@suminb

This comment has been minimized.

Show comment
Hide comment
@suminb

suminb Jan 27, 2013

It appears it's because sure only supports CPython.

suminb commented Jan 27, 2013

It appears it's because sure only supports CPython.

@clarete

This comment has been minimized.

Show comment
Hide comment
@clarete

clarete Jan 28, 2013

Collaborator

It should be functional but disabling the monkey patch we apply using the C api. There's a check for that that must be returning True erroneously.

https://github.com/gabrielfalcao/sure/blob/master/sure/magic.py#L23

Collaborator

clarete commented Jan 28, 2013

It should be functional but disabling the monkey patch we apply using the C api. There's a check for that that must be returning True erroneously.

https://github.com/gabrielfalcao/sure/blob/master/sure/magic.py#L23

@gabrielfalcao

This comment has been minimized.

Show comment
Hide comment
Owner

gabrielfalcao commented Jan 29, 2013

closed by ec872af

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment