Not functional under python 3.6
cbuhl opened this issue · comments
Hi there,
I'm trying to use your software under python 3.6, but it is really not refactored to work. The print statements I've come across so far do not have ()'s, so it doesn't run.
Also, the issue previous issue with the import errors stem from this, I think.
I'm running it from a mac, if it matters, but I don't think it makes a difference.
I'm really hoping to use it, however!
I can confirm that it works with python 2.7.
I can confirm that the platform / OS does not make a difference. I'm working on two different systems in an attempt to resolve the problem to no avail. I was originally trying to get the zernikeapp working when I first encountered the same error (using Python3 as I can't seem to get PyQt5 installed for Python 2.7).
Thanks for the information. I do not know Python that well, but from what I can tell so far, the issues are as you said: mostly related to the print function and the differences for local/global referencing of package imports (different in 2.7 as compared to 3.6).
I am also developing under OSX but also under Win10 and have found the same general behavior on both platforms.
I also noted a few problems with newer versions of numpy and matplot lib, though at the moment I can't recall what they were. I'll post back here when I can reproduce the errors..
I tried:
mkdir /tmp/github/
cd /tmp/github/
git clone https://github.com/Sterncat/opticspy.git
pip install -e opticspy
It works in python3.5
However,
pip install opticspy
It reports:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-c4f9d50221f9> in <module>()
1 get_ipython().run_line_magic('matplotlib', 'inline')
----> 2 import opticspy
~/anaconda3_501/lib/python3.6/site-packages/opticspy/__init__.py in <module>()
10 """
11 from __future__ import division as __division__
---> 12 import aperture, interferometer_seidel,interferometer_zenike
13 import seidel, seidel2, zernike, test, tools, diffraction, jones, gauss
14 import phaseunwrap, lens, asphere, mplot3d, zernike_rec
ModuleNotFoundError: No module named 'aperture'
Maybe it is not update in PyPI?
Can you build an anaconda package please? @Sterncat
Thank you
Oh, I see.
This works
pip install git+git://github.com/Sterncat/opticspy.git@master