Х эрщфхэ єърчрээ щ ьюфєы

Х эрщфхэ єърчрээ щ ьюфєы

Comments

Copy link Quote reply

mrgloom commented Nov 20, 2015

I successfully run pip install PyStasm

but failed at import stasm

This comment has been minimized.

Copy link Quote reply

mjszczep commented Nov 20, 2015

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 DLL load failed suggests that it installed the wrong version for your system.

This comment has been minimized.

Copy link Quote reply

mrgloom commented Nov 20, 2015

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 pip install PyStasm don’t work and sudo pip install PyStasm is ok.

This comment has been minimized.

Copy link Quote reply

mjszczep commented Nov 20, 2015

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.

This comment has been minimized.

Copy link Quote reply

mjszczep commented Nov 22, 2015

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 ( $ python setup.py install ). Let me know what the result of that is.

This comment has been minimized.

Copy link Quote reply

mrgloom commented Nov 22, 2015

Where I should put opencv? Is it somewhere in python libs(opencv-python==2.4.9)? or I should download opencv separately?

This comment has been minimized.

Copy link Quote reply

Читайте также:  Как зарегистрироваться в яндекс паспорте

mjszczep commented Nov 22, 2015

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 Libsite-packages directory of your Python installation (getting rid of the older OpenCV files), with the exception of opencv_ffmpeg300_64.dll , which goes in the installation’s root directory. This should be the simplest solution.

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 opencvuildinstallinclude to your compiler’s include directory and the libs from opencvuildinstallx64vc9lib to your compiler’s lib directory. Then with OpenCV installed you should be able to successfully run python setup.py install .

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.

This comment has been minimized.

Copy link Quote reply

mrgloom commented Nov 23, 2015

I downloaded 64-bit Windows binaries and put them in C:Python27Libsite-packages ,delete all *249*.dll opencv files

By the way opencv_ffmpeg249_64.dll file was in C:Python27Libsite-packages and C:Python27 dirs.

Also I tried to uninstall opencv after that:

Seems uninstall was successfull, but import cv2 still don’t work.

And import stasm too:

Читайте также:  Где лучше покупать одежду в москве

This comment has been minimized.

Copy link Quote reply

mrgloom commented Nov 23, 2015

Hmm, it’s strange but I saw opencv-python==2.4.9.1 and also perform pip uninstall opencv-python , it’s deleted, but situation not changed globally.

This comment has been minimized.

Copy link Quote reply

mrgloom commented Nov 23, 2015

Also I downloaded prebuild binaries from http://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.0.0/ and copied cv2.pyd from C:UsersuserDownloadsopencvuildpython2.7×64 to C:Python27Libsite-packages , it’s statically linked so it’s don’t need *.dll’s

but seems stasm needs *.dll’s

This comment has been minimized.

Copy link Quote reply

mjszczep commented Nov 24, 2015

Hmm. Okay, as a last resort, try taking the OpenCV 3.0 dlls and copying them to the same directory as _stasm.pyd (should be something like site-packagesPyStasm-0.3.1-py2.7-win-amd64.eggstasm ). The ones you need should only be opencv_core300.dll , opencv_imgcodecs300.dll , opencv_imgproc300.dll , opencv_ml300.dll , opencv_objdetect300.dll , and opencv_videoio300.dll , although it might be easier to copy them all just to be safe. stasm should be able to locate them in that directory as at least a workaround while I look for some better way to handle it in the meantime.

This comment has been minimized.

Copy link Quote reply

mrgloom commented Nov 24, 2015

I place all dll’s in C:Python27Libsite-packagesstasm and it still don’t work.

This comment has been minimized.

Copy link Quote reply

mjszczep commented Nov 24, 2015

That’s frustrating. Can you take a look at which top-level DLLs _stasm.pyd can’t find using Dependency Walker?

This comment has been minimized.

Copy link Quote reply

mrgloom commented Nov 24, 2015

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:

Читайте также:  Ведьмак 3 дикая охота оценки

By the way I was mistaken I’m on win 10, not on win 7 if it matters.

This comment has been minimized.

Copy link Quote reply

mjszczep commented Nov 24, 2015

This what the output of Dependency Walker looks like on my machine where import stasm succeeds:

Are there any discrepancies between this and what you get?

This comment has been minimized.

Copy link Quote reply

mrgloom commented Nov 26, 2015

in log window I have error, so it seems not everything ok.

Seem problem in MSVCP140.DLL,CONCRT140.DLL,VCRUNTIME140.DLL (i have yellow (?) in front of them)

This comment has been minimized.

Copy link Quote reply

mrgloom commented Nov 30, 2015

One step further, after I download Visual C++ Redistributable for Visual Studio 2015
http://stackoverflow.com/questions/32998902/msvcp140-dll-missing

Maybe you can link all libs statically to *.pyd file?

But my script still not working:

This comment has been minimized.

Copy link Quote reply

aninditkarmakar commented Mar 25, 2016

I am getting the Assertion Failed error too. Anybody fixed this yet?

This comment has been minimized.

Copy link Quote reply

affanshahid commented Apr 29, 2016 •

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?

This comment has been minimized.

Copy link Quote reply

Ezekiel-Kruglick commented Aug 19, 2016

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?

Ссылка на основную публикацию
Установка mac os transmac
В сети сейчас полно копипастов, по сути одной и той же статьи, про установку MacOS X на хакинтош примерно с...
Тест для определения цвета волос
Пожалуйста, не копируйте понравившиеся вам статьи незаконно. Мы предлагаем вам разместить активную ссылку на наш сайт в случае, если вы...
Тест графики видеокарты 3dmark
Наиболее известная программа тестирования производительности, ставшая де-факто стандартом и точкой отсчета в измерениях игровых возможностей видеокарт. Основную популярность программе обеспечило...
Установка op com на windows 10
Всем привет! Очень многие вектроводы заказывают с Китая OP-COM и сталкиваются с проблемами установки драйверов самого OP-COM на различных системах...
Adblock detector