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

Updated to Python 3.6 #52

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

mathematicalmichael
Copy link

tests pass, only matplotlib warnings remain. Backwards compatible with Python 2.7.
Most of the fixes had to do with the default type being Float instead of Int.

@mathematicalmichael
Copy link
Author

mathematicalmichael commented Jan 16, 2019

Follow-Up PR potential commits:
Re Travis CI... Is it as simple as adding - 3.6 into line 7 of .travis.yml?
Also, I had to pip install PyQt5 - should this be added to setup.py?
Documentation updates?

@jordanrhall
Copy link

Thanks, Michael! I've been using this for a few weeks now. I can confirm that the "basic" tutorial (the one with the wing function) is running perfectly for me on a Windows machine running python 3.6. I also converted some of my own personal research notebooks that were using the old active subspace library to py3.6 using this package, and again, those ran perfectly on Windows. I can also confirm that one of my notebooks runs on Mac, py3.6 as well. If I'm not mistaken, that means we have success in py3.6 for Windows, Mac, and Linux.

@mathematicalmichael
Copy link
Author

@paulcon is there anything I'm missing from this PR that is preventing it from merge?

@shahrozkhan66
Copy link

@jordanrhall and @mathematicalmichael would mind if I ask what could be the reason I am getting this error AttributeError: module 'active_subspaces' has no attribute 'utils'.
I am pretty new to python and I have tried many things but I couldn't solve this error. I would really appreciate if any help regarding this.
Bundle of Thanks!

@mathematicalmichael
Copy link
Author

@shahrozkhan66 how are you installing it and what code are you running to produce that output?

@jordanrhall
Copy link

jordanrhall commented Apr 2, 2019 via email

@mathematicalmichael
Copy link
Author

mathematicalmichael commented Apr 2, 2019

ah, in that case, running python setup.py install in the directory you cloned from github (either this master - which is incompatible with python 3), or the repo this pull request stems from (which is python 2 and 3 compatible). once you run that inside the folder, all the modules will be available no matter where you are.

Try running your code in the environment that spawns up here: Binder

@mtezzele
Copy link
Contributor

Is there anybody able to merge this PR? It would be of great interest the python 3 compatibility.

@mathematicalmichael
Copy link
Author

Yeah I’m not sure what the story is. This is backwards compatible with Python 2, which is reaching end of life in a couple months anyway. Fortunately you can still use it, just clone my fork and install from source. Been a while since I’ve done this so let me know if anything needs addressing.

Jordan Hall and others added 2 commits November 18, 2019 15:55
Test on 3.7 and 3.8, quotes unnecessary
@mathematicalmichael
Copy link
Author

looks like scipy 2.0 (default install) no longer supports some of the modules imported by this library. Another PR is open for fixing this by version-locking scipy to 1.2.2 and will be added on to here soon.

@mathematicalmichael
Copy link
Author

updating installation steps. conda on python 3.8 installs matplotlib 3.0, which appears to be an issue.

trying a few things, including switching to `nosetests` syntax
switch to pytest
remove pytest install in hopes that pip catches it.
scipy doesn't work for 2.0
pytest and agg backend
back to nosetests
back to nosetests
looks like not having conda install pip was an issue (the pip that was being called was the "wrong one")
Let's try to do this _without_ conda. Travis has its own system python versions cached anyway, so it should expedite tests a bit too.
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

Successfully merging this pull request may close these issues.

5 participants