Skip to content
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

Incompatibility with python3 #37

Closed
ghost opened this issue Jul 21, 2014 · 13 comments
Closed

Incompatibility with python3 #37

ghost opened this issue Jul 21, 2014 · 13 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2014

Hi there,
I tried to install astroML via pip, but it failed due to the new print syntax of python3 with respect to python2.

@jakevdp
Copy link
Member

jakevdp commented Jul 21, 2014

Yes, astroML is currently not compatible with Python 3. We've talked about how to make it compatible, but it will be a significant amount of work to make sure that all ~200 figures are still correctly created under the new Python version. If anyone has ideas on how to approach that, I'm all ears.

@jakevdp
Copy link
Member

jakevdp commented Jul 21, 2014

Note: the Python 2 dependency is explicitly listed in both the README file and in the setup.py file

@jakevdp
Copy link
Member

jakevdp commented Jul 21, 2014

Also, I should add that it's a lot deeper than simply changing print foo to print(foo). There are some subtle changes between 2.x and 3.x which will also come into play.

@ghost
Copy link
Author

ghost commented Jul 21, 2014

Yep, sorry I didn't check the readme file before writing.
Sorry again and thanks for the great work

@jakevdp
Copy link
Member

jakevdp commented Jul 21, 2014

Actually, I'm kind of surprised that pip even tried the installation, when the setup metadata explicitly says it's only compatible with Python 2. Oh well...

@ghost
Copy link
Author

ghost commented Jul 21, 2014

That is probably just a bug in the macports version of pip3, it's not the first time it failed with python2 only packages

@jakevdp
Copy link
Member

jakevdp commented Oct 19, 2014

I just pushed changes to master adding Python 3 compatibility. I plan to do a new release soon so that it can be installed from pip. Thanks!

@ghost
Copy link
Author

ghost commented Oct 21, 2014

Great news! Thanks to you for the hard work

@stonebig
Copy link
Contributor

stonebig commented Nov 1, 2014

I also wait for the new version on Pypi, so I can replay
http://nbviewer.ipython.org/github/jakevdp/ESAC-stats-2014/blob/master/notebooks/03.1-Scikit-Learn-Intro.ipynb
ok, I did create a temporary package from github

@jakevdp
Copy link
Member

jakevdp commented Nov 2, 2014

I'll try to do the release this week

@smeingast
Copy link

Hey
Any news on an estimate when astroML will be compatible to Python 3.x?

thanks

edit: nevermind. This has apparently been fixed already, just installed successfully 😊

@jakevdp
Copy link
Member

jakevdp commented Dec 17, 2014

Sorry – I've been slow on the new release. I'll try to make it happen soon!

@jakevdp
Copy link
Member

jakevdp commented Jan 28, 2015

This is now fixed in the 0.3 release. Thanks!

@jakevdp jakevdp closed this as completed Jan 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants