Skip to content

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

@codejoy

Description

@codejoy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions