STARnet icon indicating copy to clipboard operation
STARnet copied to clipboard

pyflow issue

Open Sornpraram opened this issue 5 years ago • 2 comments

I have install pyflow successfully But still get this error "AttributeError: module 'pyflow' has no attribute 'coarse2fine_flow'"

As your instruction After I run this command "python setup.py build_ext -i" success I can't run "cp pyflow*.so .." I got this error "cp: cannot stat 'pyflow*.so': No such file or directory"

Sornpraram avatar Jun 16 '20 14:06 Sornpraram

I also encountered this problem. Although I have tried pip install pyflow or install pyflow from github, it doesn't work. So how can solve this problem?

Kawamiya avatar Jul 18 '20 10:07 Kawamiya

One reason you may see that AttributeError is when you've only imported the namespace (as in, the directory named "pyflow") rather than imported the installed package.

I resolved this with

pip install Cython
pip install -e ./pyflow

You can confirm this has resolved it by opening a Python console and importing pyflow, then try tab completion on the package name

>>> import pyflow
>>> pyflow.
pyflow.coarse2fine_flow(

(via)

lmmx avatar Mar 15 '21 12:03 lmmx