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

python3 support? #2

Open
JaroslavHron opened this issue Mar 17, 2018 · 8 comments
Open

python3 support? #2

JaroslavHron opened this issue Mar 17, 2018 · 8 comments

Comments

@JaroslavHron
Copy link

Does the ga4py interface supports python3?

Just trying to install it with python3 gives following obvious error:

python3.6 -s setup.py --no-user-cfg build
  File "setup.py", line 14
    print "numpy is required"
                            ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int "numpy is required")?
@jeffdaily
Copy link
Member

ga4py was written against python 2. Thank you for raising this issue. I have made a first attempt at py3 compatibility in the feature/py3 branch. It seems to have fixed issues with setup.py and the ga4py.ga module, however the ga4py.gain module still has issues. In case you were after just straight GA python bindings and not the gain module, I wanted to make this feature branch available to use sooner than later. Please keep this thread going with additional problems you might be facing with using python 3 and ga4py. Thanks.

@cjroberts
Copy link

Hello, I have just tried using the python 3 branch as our package cf-python is moving to python 3 and we are considering using ga4py to parallelise it. We were wondering if python 3 will be supported with ga4py? I have compiled ga and ga4py in a conda environment, which worked with python 2, but with python 3 I get a segmentation fault when trying to import the ga4py module.

@JaroslavHron
Copy link
Author

I can report that the branch feature/py3 works for us with python 3.6.5 in simple applications.
No problems so far, but we did'n do a through tests.

@mkhoshle
Copy link

@jeffdaily Does GA4py provide support for Python3?

@jeffdaily
Copy link
Member

I no longer maintain ga4py. At the time it was developed, it had only been tested against py2. It sounds like @JaroslavHron has a possible solution.

@mkhoshle
Copy link

I no longer maintain ga4py. At the time it was developed, it had only been tested against py2. It sounds like @JaroslavHron has a possible solution.

Thanks for the clarification.

@mkhoshle
Copy link

mkhoshle commented Nov 11, 2019

@JaroslavHron We need to test GA4py on our library which has dependency on many new libraries that only support python 3. Does GA4py support python3?

@cunconbkhp
Copy link

Hello, i want to install ga4py on window. Do i have to install ga before install ga4py. When i tried py setup.py =, i had the error of ga-config missing. Thanks you in advance!

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

5 participants