LJMUAstroecology / flirpy

Python library to interact with FLIR camera cores
Other
191 stars 54 forks source link

Installing flirpy inside conda, split_seqs command is not recognized #27

Closed GZuin closed 3 years ago

GZuin commented 4 years ago

Attempted to install flirpy inside of a conda environment on both Windows 10 and Ubuntu 18.04. In both cases, after installing through pip, no command split_seqs is found.

I can safely import flirpy inside of python, but after reading the split_seq example, I'm not sure what to do to split a seq file into images through python.

jveitchmichaelis commented 4 years ago

This seems to be an issue with installing via pip. Possibly poetry related? If you install using python setup.py install, it should place the script on your path (I just tested this in a new conda env on my Ubuntu machine). For now you can just copy the code in scripts and it'll work.

On Windows this is a pain because of the way that Windows interprets files. It will find it, but won't execute properly (this is on the todo list), so you should also just copy the code and run it from somewhere.

jveitchmichaelis commented 4 years ago

So this is a poetry issue...

https://github.com/python-poetry/poetry/issues/241 https://github.com/python-poetry/poetry-core/pull/40

It seems like there is a lot of confusion in poetry over what a script should be - whether it's some "build" script or a user script that gets installed along with a package. Support has now been added, but right now it seems like there is no obvious way to do this until that PR gets closed.

jveitchmichaelis commented 3 years ago

@GZuin I need to push a new version shortly anyway, so I'll do it through Twine just as a precaution