-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
With MacOS and PyPy installation fails: AttributeError: 'LooseVersion' object has no attribute 'version' #26536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@bhy Thanks for the report. PyPy is not included in our CI or distributed binaries for PyPy. (not tested / officially supported). May be worth raising this on the PyPy issue tracker. Closing this as we don't make any guarantees about PyPy. |
@simonjayhawkins we still accept patches for PyPy compatibility. This may be on us, but that's not clear yet. @bhy is that never defined for pypy? If so, do you know why? cc @robbuckley just as an FYI. |
@TomAugspurger : ok. i'll reopen for now. |
a quick fix could be to change the indicated line from
to
Also changing this line: Line 14 in 7629a18
to:
Note the additonal 's'. This shouldnt break CPython (caveat: no tests done yet!). I have no easy way to test this on PyPy, but Im happy to submit a patch and test on CPython if that helps. |
yeah, that seems like an option @robbuckley. But let's wait to hear more from @bhy to better understand what's going wrong with PyPy here before we change anything. |
@TomAugspurger I never saw it defined across the versions of PyPy I tried with (6.0 and 7.1). I'm not familiar with PyPy development, but their document mentions (http://doc.pypy.org/en/latest/cpython_differences.html):
|
Thanks. Given that I think that @robbuckley's proposal is reasonable. @bhy can you test it out locally, and perhaps submit a PR? |
…et, such as with PyPy (pandas-dev#26536)
I've made a PR, but I cant easily test it on PyPy - @bhy can you do that please? |
On MacOS 10.14, PyPy3.6-7.1.1 installation fails:
A workaround is to install with:
MACOSX_DEPLOYMENT_TARGET=10.14.4 pip3 install pandas
The cause for this is that in pandas
setup.py
,get_config_var('MACOSX_DEPLOYMENT_TARGET')
will returnNone
on PyPy, while a version number like10.9
is expected. (See https://github.com/pandas-dev/pandas/blob/master/setup.py#L453).The text was updated successfully, but these errors were encountered: