Comments (8)
what is your cython version?
cython --version
from optical-flow-filter.
from optical-flow-filter.
I upgraded my machine to Cython 0.28.2 and now I'm having trouble compiling the Python wrappers. When I run ptyhon setup.py build
I get get following error:
Traceback (most recent call last):
File "setup.py", line 80, in <module>
extList = cythonize(createExtension(mod[0], mod[1]), compiler_directives=cython_directives)
File "/usr/local/lib/python2.7/dist-packages/Cython/Build/Dependencies.py", line 897, in cythonize
aliases=aliases)
File "/usr/local/lib/python2.7/dist-packages/Cython/Build/Dependencies.py", line 719, in create_extension_list
elif isinstance(patterns, basestring) or not isinstance(patterns, collections.Iterable):
File "/usr/lib/python2.7/abc.py", line 144, in __instancecheck__
return cls.__subclasscheck__(subtype)
File "/usr/lib/python2.7/abc.py", line 180, in __subclasscheck__
if issubclass(subclass, scls):
File "/usr/lib/python2.7/abc.py", line 180, in __subclasscheck__
if issubclass(subclass, scls):
File "/usr/lib/python2.7/abc.py", line 161, in __subclasscheck__
ok = cls.__subclasshook__(subclass)
File "/usr/local/lib/python2.7/dist-packages/backports_abc.py", line 66, in __subclasshook__
mro = C.__mro__
AttributeError: class Extension has no attribute '__mro__'
I will check what's happening and fix it.
from optical-flow-filter.
from optical-flow-filter.
This is a problem with Cython 0.28.2. I tried downgrading to version 0.23.5 and the build process completes successfully. This is a known issue: cython/cython#1507
You can downgrade Cython as follows:
Uninstall current version:
sudo pip uninstall cython
or
sudo apt remove python-cython
depending on how you installed it.
Then you can install the proper version as follows
sudo pip install cython==0.23.5
from optical-flow-filter.
I downgraded Cython, but still it is showing the same error after sudo python setup.py install.
Also the same warnings are coming after running command python setup.py build
. One more thing, when i executed the command sudo pip uninstall cython
it was showing following error;
sudo: pip: command not found
so that is why i used pip uninstall cython
and thus it got uninstalled. Same happened for `sudo pip cython==0.23.5 and i fixed it in the same way.
from optical-flow-filter.
Could you confirm the new Cython version? From the comment above, you didn't have pip
installed in your machine. As mentioned above, using Cython 0.23.5 works fine.
from optical-flow-filter.
Sorry for the late reply Jaden, but the issue is solved now, one of my senior solved it. Thanks for your time and help!!!
from optical-flow-filter.
Related Issues (10)
- Add functionality for predicting images given rotational optical flow HOT 1
- A problem during installation in python modules. HOT 2
- A real time optical flow algorithm implemented on GPU is it CPU compatible? HOT 2
- How to calculate the backward flow? HOT 2
- Add Windows compatibility. HOT 1
- Optical flow always equals zero? HOT 8
- Question about paper's equation (17). HOT 5
- error: libflowfilter_gpu.so HOT 2
- where is the "flow magnitude" frame? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optical-flow-filter.