Image-Py / imagepy

Image process framework based on plugin like imagej, it is esay to glue with scipy.ndimage, scikit-image, opencv, simpleitk, mayavi...and any libraries based on numpy
http://imagepy.org
BSD 4-Clause "Original" or "Old" License
1.3k stars 330 forks source link

error when windows anaconda run imagepy #107

Open LiangYongAI opened 4 years ago

LiangYongAI commented 4 years ago

I create an evn named imagepy and pip install all reqired package according to requirement.txt.

(imagepy) F:\github\imagepy>python -m imagepy Traceback (most recent call last): File "d:\Anaconda3\envs\imagepy\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "d:\Anaconda3\envs\imagepy\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "F:\github\imagepy\imagepy__main.py", line 3, in from imagepy.core.app import loader, ImagePy File "F:\github\imagepy\imagepy\core\app\init.py", line 1, in from .imagepy import ImagePy File "F:\github\imagepy\imagepy\core\app\imagepy.py", line 6, in from sciwx.canvas import CanvasNoteBook File "F:\github\imagepy\sciwx\canvas\init.py", line 2, in from .mcanvas import MCanvas, ICanvas, VCanvas File "F:\github\imagepy\sciwx\canvas\mcanvas.py", line 4, in from .canvas import Canvas File "F:\github\imagepy\sciwx\canvas\canvas.py", line 5, in from sciapp.object import Image, Shape, mark2shp, Layer, json2shp File "F:\github\imagepy\sciapp\object\init.py", line 1, in from .shape import * File "F:\github\imagepy\sciapp\object\shape.py", line 4, in import shapely.geometry as geom File "d:\Anaconda3\envs\imagepy\lib\site-packages\shapely\geometry\init.py", line 4, in from .base import CAP_STYLE, JOIN_STYLE File "d:\Anaconda3\envs\imagepy\lib\site-packages\shapely\geometry\base.py", line 18, in from shapely.coords import CoordinateSequence File "d:\Anaconda3\envs\imagepy\lib\site-packages\shapely\coords.py", line 8, in from shapely.geos import lgeos File "d:\Anaconda3\envs\imagepy\lib\site-packages\shapely\geos.py", line 145, in _lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll')) File "d:\Anaconda3\envs\imagepy\lib\ctypes\init.py", line 348, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块。

LiangYongAI commented 4 years ago

@yxdragon can you take a look?

qyh405 commented 4 years ago

it seems the geos package can't be installed. You may try to install this package independently and then return to condo to install imagepy. My experience is that when I install imagepy with condo, it says that the pystackreg can't be installed and conda stoped to install imagery. I copy the pystackreg from the Pre-compiled package of imagpy (https://github.com/Image-Py/imagepy/releases) into the imagepy install direction. Then reinsitall imagepy again. Now the conda doesn't check pystackreg and successfully install imagery.

yxdragon commented 4 years ago

It is the matter of shapely, try the binary whl?

HITWenQLi commented 4 years ago

缺少geosc.dll模块,在https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely,下载对应版本的Shapely的whl文件,重装即可。 Missing geos c. dll, Download the corresponding version of shapely's whl file and reinstall it in https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely.