Skip to content
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

geos_c.dll missing #71

Closed
Borg93 opened this issue Sep 21, 2021 · 2 comments
Closed

geos_c.dll missing #71

Borg93 opened this issue Sep 21, 2021 · 2 comments

Comments

@Borg93
Copy link

Borg93 commented Sep 21, 2021

from hulearn.preprocessing import InteractivePreprocessor
tfm = InteractivePreprocessor(json_desc=charts.data())

df.pipe(tfm.pandas_pipe).loc[lambda d: d['group'] != 0].sample(10)

gives error :


---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_28956/1501149949.py in <module>
----> 1 from hulearn.preprocessing import InteractivePreprocessor
      2 tfm = InteractivePreprocessor(json_desc=charts.data())
      3 
      4 df.pipe(tfm.pandas_pipe).loc[lambda d: d['group'] != 0].sample(10)

~\AppData\Roaming\Python\Python39\site-packages\hulearn\preprocessing\__init__.py in <module>
      1 from hulearn.preprocessing.pipetransformer import PipeTransformer
----> 2 from hulearn.preprocessing.interactivepreprocessor import InteractivePreprocessor
      3 
      4 __all__ = ["PipeTransformer", "InteractivePreprocessor"]

~\AppData\Roaming\Python\Python39\site-packages\hulearn\preprocessing\interactivepreprocessor.py in <module>
      4 import numpy as np
      5 import pandas as pd
----> 6 from shapely.geometry import Point
      7 from shapely.geometry.polygon import Polygon
      8 

~\AppData\Roaming\Python\Python39\site-packages\shapely\geometry\__init__.py in <module>
      2 """
      3 
----> 4 from .base import CAP_STYLE, JOIN_STYLE
      5 from .geo import box, shape, asShape, mapping
      6 from .point import Point, asPoint

~\AppData\Roaming\Python\Python39\site-packages\shapely\geometry\base.py in <module>
     17 
     18 from shapely.affinity import affine_transform
---> 19 from shapely.coords import CoordinateSequence
     20 from shapely.errors import WKBReadingError, WKTReadingError
     21 from shapely.geos import WKBWriter, WKTWriter

~\AppData\Roaming\Python\Python39\site-packages\shapely\coords.py in <module>
      6 from ctypes import byref, c_double, c_uint
      7 
----> 8 from shapely.geos import lgeos
      9 from shapely.topology import Validating
     10 

~\AppData\Roaming\Python\Python39\site-packages\shapely\geos.py in <module>
    147     if os.getenv('CONDA_PREFIX', ''):
    148         # conda package.
--> 149         _lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
    150     else:
    151         try:

~\Anaconda3\envs\human-learn\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error, winmode)
    380 
    381         if handle is None:
--> 382             self._handle = _dlopen(self._name, mode)
    383         else:
    384             self._handle = handle

FileNotFoundError: Could not find module 'C:\Users\BORG7803\Anaconda3\envs\human-learn\Library\bin\geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax.
@koaning
Copy link
Owner

koaning commented Sep 21, 2021

Can you varify if this issue is isolated to shapely? It might be that the dependency is incompatible with Windows.

@Borg93
Copy link
Author

Borg93 commented Sep 22, 2021

@koaning Ye it seems like it worked by updating shapely..

@Borg93 Borg93 closed this as completed Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants