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

Python 3.5/3.6 #1

Closed
TheodoreGalanos opened this issue Nov 3, 2017 · 3 comments
Closed

Python 3.5/3.6 #1

TheodoreGalanos opened this issue Nov 3, 2017 · 3 comments

Comments

@TheodoreGalanos
Copy link

Hi,

First of all thanks for this amazing plugin!

I was wondering if you plan support for python 3 version anytime soon? It would open a lot of possibilities to certain areas.

Kind regards,
Theodore.

@pilcru
Copy link
Owner

pilcru commented Nov 3, 2017

Unfortunately, no.

IronPython stopped development at 2.7.7, the version shipping with Rhino is currently 2.7.5, and that's the only interpreter that will let you run import Rhino. So anything that works with the Rhino Python libraries needs to be Python 2 or be able to translate on the fly between Python 2 and 3. RPyC, the remote computing library behind GhPythonRemote, does not and will not support this.

Things do not look much better with Rhino 6, since it is still using IronPython to interface with their .NET framework code.

If you absolutely need to call out to Python 3 from GH, you can have a look at GH CPython, but then you cannot import Rhino libraries in these scripts.

Out of curiosity, what libraries did you want to use that are Python 3 only?

@pilcru pilcru closed this as completed Nov 3, 2017
@TheodoreGalanos
Copy link
Author

Hi Pierre,

Thanks for the update, sounds good.

The main thing I am testing currently is tensorflow, which is only python3 for Windows.

In my case, doing machine learning, I don't really need (at least not yet) many Rhino specific libraries since I'm not currently developing components but only importing python libraries after all the GH definition has done its work in order to train models on my data.

I can still do vanilla ML with this and it can still be used to create ML components with scikit-learn for example. So it's cool. I won't be doing much DL inside GH anyways!

Kind regards,
Theodore.

@gonzalocasas
Copy link

+1 to this, despite being a "Not a chance" closed issue.

Right now, the library that I would like to use on python 3 is the async/await support. I know there's a backport for 2.7, but python 2.x is a dead end as it's officially End of Life and won't be supported anymore after 2020. It feels so wrong to not be able to use python 3 in 2017 😢

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