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

'pyfli' has no attribute 'FLIOpen' on ubuntu server 16 python3 #2

Open
codejoy opened this issue Feb 18, 2020 · 3 comments
Open

'pyfli' has no attribute 'FLIOpen' on ubuntu server 16 python3 #2

codejoy opened this issue Feb 18, 2020 · 3 comments

Comments

@codejoy
Copy link

codejoy commented Feb 18, 2020

I am doing what I thought was correct to install and setup the python wrappers for the finger lakes.
I did gcc install, python header install and kernel header install also i additionally made sure numpy was installed. It required me to install python3 . So I created a virtualenv in python3, and did a sudo pip3 install of numpy. Then I did the instructions for building and installing the python wrapper. I see no errors (some warnings) here and there but no errors.
So a simple app fails with the 'pyfli' has no attribute 'FLIOpen':

import numpy as np
from pyfits import PrimaryHDU
import pyfli as fli

from sys import argv, exit, stdout
from time import sleep

dev = fli.FLIOpen ('/dev/fliusb0', 'usb', 'camera')

ret = fli.setImageArea (dev, 0, 0, 512, 512)
dev = fli.FLIClose (dev)

About the only thing I have changed was inside the .py files they had a:
#!/usr/bin/env python

that I removed, because with that in there it kept trying to use my systems python2 I think?

@codejoy
Copy link
Author

codejoy commented Feb 18, 2020

Ugh, ignore me I believe I was on ubuntu and had to install the libusb . Seems now to just complain that no such file or directory exists which makes sense since it is not plugged into the guider cam at all.

@charris
Copy link
Owner

charris commented Feb 18, 2020

Thanks for the feedback, I hope you find the software useful. I don't maintain it anymore, I'm long retired and no longer have the camera, but am still open to applying fixes.

I'm curious if Finger Lakes has updated their software, it has been a long time.

@codejoy
Copy link
Author

codejoy commented Feb 18, 2020

Thanks for the feedback, I hope you find the software useful. I don't maintain it anymore, I'm long retired and no longer have the camera, but am still open to applying fixes.

I'm curious if Finger Lakes has updated their software, it has been a long time.

Thanks for the reply! I suspect a lot of people (Especially observatories still use this software, I know we do for sure). Is there a more modern and maintained alternative I wonder? As far as Finger Lakes, it seems to be updated and working with ubuntu server 16, but I had no dice getting it to compile under ubuntu server 18. Though this isn't my strong suite and I might of just did something foolish.

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

No branches or pull requests

2 participants