-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fail at import stasm #1
Comments
Does the version from pip (Python 2.7 64-bit) match your system architecture? Could you try installing from source? I can't understand that error message, but the |
Yes, I tried it on win 7 x64. I run cmd as administrator second time, but same result. I tried on VirtualBox with Ubuntu 14.04 |
It looks like I've reproduced the problem running Python 2.7 on my machine. Thanks for pointing it out to me. I should be able to fix it sometime in the next couple days. |
What version of OpenCV are you using? The binaries available on PyPI were built using 3.0; if you're using a different version try downloading the source code and building it that way ( |
opencv-python==2.4.9
Where I should put opencv? Is it somewhere in python libs(opencv-python==2.4.9)? or I should download opencv separately?
|
Okay, The prebuilt binaries on PyPI will not work with older versions of OpenCV; I've updated the project info slightly to reflect this. This means you can do one of two things: install 3.0 or build PyStasm yourself. If you take the first approach, you can also try downloading the 64-bit Windows binaries if you don't want to build OpenCV yourself. Everything should go in the If you take the second approach, you'll need the OpenCV headers and libs in your compiler's include/linker paths. If you build OpenCV from source, copy the headers from It's unfortunate that OpenCV isn't available through PyPI and needs to be set up on its own. This makes issues with matching versions and such a whole lot harder to work around. Anyway, if you still encounter any issues let me know. |
I downloaded 64-bit Windows binaries and put them in By the way And I get :
Also I tried to uninstall opencv after that:
Seems uninstall was successfull, but And
|
Hmm, it's strange but I saw |
Also I downloaded prebuild binaries from http://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.0.0/ and copied but seems stasm needs *.dll's
|
Hmm. Okay, as a last resort, try taking the OpenCV 3.0 dlls and copying them to the same directory as |
I place all dll's in
|
That's frustrating. Can you take a look at which top-level DLLs |
Don't fully understand output but here some of them: It wants 3 opencv dll's(some of them link to other opencv dll's):
in subtree we have yellow (?) for theese entries for each opencv dll, something like:
By the way I was mistaken I'm on win 10, not on win 7 if it matters. |
in log window I have error, so it seems not everything ok.
Seem problem in |
One step further, after I download Visual C++ Redistributable for Visual Studio 2015 I get:
Maybe you can link all libs statically to *.pyd file? and after But my script still not working: I get
|
I am getting the Assertion Failed error too. Anybody fixed this yet? |
Same problem, Win 10 python 3.5 OpenCV 3.1
EDIT: Attempting to build and it wants 'opencv_core310.lib' which is not present in the OpenCV 3.1 build (it is there in the 3.0 build though). Any ideas? |
Same thing here, Win 10, Python 2.7 OpenCV 3.1
Anybody have any idea how to install and get this project to run on Windows? |
d:\pystasm\src\stasm.h(33) : fatal error C1083: Cannot open include file: 'opencv2/opencv.hpp': No such file or directory |
Looks like pystasm is not actively developed so I suggest to switch to dlib python api: Also you check this: |
I successfully run
pip install PyStasm
but failed at
import stasm
The text was updated successfully, but these errors were encountered: