Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPyPy from shapely.geos import causes "TypeError: unsupported operand type(s) for +: 'list' and 'tuple'" #866
Comments
|
@cjmayo thanks for the report! I'll look into it. |
|
@cjmayo we haven't had PyPy in the CI build matrix due to past issues with it and a very small number of users, so I must rely on you for a confirmation. |
|
Thanks for the quick update. I've tested geoalchemy2 with https://github.com/Toblerity/Shapely/archive/9ca22240d3272df9598c30878c6f8562e50f1ec8.tar.gz and it is passing all tests with PyPy and Python 2.7, 3.{5-8}. |
|
Faced the same issue. Changing line 224 in geos.py as mentioned by @cjmayo works |
|
any chance on publishing this to pypi please? |
Expected behavior and actual behavior.
PyPy is able to import from shapely.geos.
Steps to reproduce the problem.
While running Travis tests on geoalchemy2.
https://travis-ci.org/github/geoalchemy/geoalchemy2/jobs/662462792#L760
I've tried PyPy and PyPy3.
Tests on Python 2.7, 3.{5,6,7,8} work fine.
Unfortunately I don't have PyPy installed locally to test further.
Shapely/shapely/geos.py
Line 224 in d8ff5de
Can this be changed to
new_func.argtypes = [c_void_p] + list(old_func.argtypes)Not that I know if that would work, or quite why it was needed.
Operating system
Linux Ubuntu Xenial (Travis)
Shapely version and provenance
1.70 installed from PyPI using pip.
https://files.pythonhosted.org/packages/44/ec/4eddbf9d17a917c51fb4ad159aa7137f506681e91ab559cf87d120e1d78d/Shapely-1.7.0.tar.gz
libgeos-3.7.1