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

Can't import K-means-constrained #13

Closed
Soumaya787 opened this issue Jun 10, 2021 · 1 comment
Closed

Can't import K-means-constrained #13

Soumaya787 opened this issue Jun 10, 2021 · 1 comment

Comments

@Soumaya787
Copy link

Hello,
When I try to import the package, I get the following error :

 from k_means_constrained import KMeansConstrained
  File "C:\Users\Public\Anaconda3\lib\site-packages\k_means_constrained\__init__.py", line 4, in <module>
    from .k_means_constrained_ import KMeansConstrained
  File "C:\Users\Public\Anaconda3\lib\site-packages\k_means_constrained\k_means_constrained_.py", line 29, in <module>
    from k_means_constrained.mincostflow_vectorized import SimpleMinCostFlowVectorized
  File "C:\Users\Public\Anaconda3\lib\site-packages\k_means_constrained\mincostflow_vectorized.py", line 4, in <module>
    from ortools.graph.pywrapgraph import SimpleMinCostFlow
  File "C:\Users\Public\Anaconda3\lib\site-packages\ortools\graph\pywrapgraph.py", line 13, in <module>
    from . import _pywrapgraph
ImportError: DLL load failed while importing _pywrapgraph: Le module spécifié est introuvable.

These are the versions of the required packages:

Name: k-means-constrained
Version: 0.6.0 

Name: numpy
Version: 1.20.3

Name: scipy
Version: 1.6.3

Name: ortools
Version: 9.0.9048

Thanks in advance

@joshlk
Copy link
Owner

joshlk commented Jul 4, 2021

Hi @Soumaya787,

I can't reproduce your error. What operating system are you using?

The error also looks like it is originating from ortools and not k-means-constrained. Try reinstalling in a fresh environment to see if you still get the error. If the error persists it might be worth doing a bug report with ortools.

Josh

@joshlk joshlk closed this as completed Jul 20, 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