quartiq / rayopt

Python optics and lens design, raytracing
GNU Lesser General Public License v3.0
254 stars 50 forks source link

pip install error #20

Closed haynesyy closed 6 years ago

haynesyy commented 6 years ago

trying to install rayopt via pip on Windows, with Python 3.6.

keep coming up with this error: ValueError: 'rayopt/simplex_accel.pyx' doesn't match any files

Any tips?

himbeles commented 6 years ago

Same issue here with macOS 10.13 and Python 3.6.3

jordens commented 6 years ago

Please supply context: Python distribution, what command are you actually running, what is the actual output, what packages do you have installed.

jordens commented 6 years ago

I can't reproduce it here with Python 3.6 on Linux, Conda, Cython 0.26.

jordens commented 6 years ago

I'll have to guess. You tried to install it via PyPi (the README does not not mention that option at all). That didn't work because those tarballs were broken.

himbeles commented 6 years ago

Sorry for the incomplete information. I tried to install via pip: pip3 install rayopt

Python install was done using homebrew on the Mac (no conda). Python 0.27.1

jordens commented 6 years ago

This should be fixed now. But generally, doing pip install -e git+https://github.com/jordens/rayopt.git#egg=rayopt or using conda is better.

jordens commented 6 years ago

And there is no Python 0.27.1 ;)

haynesyy commented 6 years ago

Sorry mate, it's at home, I am at work at the moment. Will give your suggestions a go this evening and give you a buzz back with context if it still doesn't work.

haynesyy commented 6 years ago

OK. I have installed Anaconda, to try going that route... this is my cmd:

(C:\Users\tom\Anaconda3) C:\Users\tom\Documents>conda install -c https://conda.anaconda.org/jordens/channel/ci rayopt Fetching package metadata ............... Solving package specifications: .

UnsatisfiableError: The following specifications were found to be in conflict:

confused.com...!

haynesyy commented 6 years ago

You know what, don't even worry about it. I did a pip install on my other machine and it worked fine.... i'm going away now....

jordens commented 6 years ago

As I said above, I fixed the PyPi source package. The Conda packages need to depend on a specific Python version.

himbeles commented 6 years ago

Sorry, I meant Cython 0.27.1

himbeles commented 6 years ago

Installing the egg from git works! Thanks!