You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've installed galpy in a python3.6 environment and a simple "from galpy.orbit import Orbit" led to a whole stack of warnings which prevented galpy from working. This turns out to be due to the redefinition of warnings.showwarnings in the galpy/util/init.py code. I slight modified the _warning function as follows:
This fixes the problem that in python 3.6 the showwarning function expects 6 arguments instead of 4. On the last line formatwarning expects 4 or 5 arguments in python 3.6.
The text was updated successfully, but these errors were encountered:
Thanks, yes, I've known about this issue (#308) and it was already fixed in the branch fixwarnings, which has now been merged into master. Should work now if you install from master, please let me know if that resolves the issue.
I've installed galpy in a python3.6 environment and a simple "from galpy.orbit import Orbit" led to a whole stack of warnings which prevented galpy from working. This turns out to be due to the redefinition of warnings.showwarnings in the galpy/util/init.py code. I slight modified the _warning function as follows:
This fixes the problem that in python 3.6 the showwarning function expects 6 arguments instead of 4. On the last line formatwarning expects 4 or 5 arguments in python 3.6.
The text was updated successfully, but these errors were encountered: