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

problem with running example #20

Open
piero10 opened this issue Oct 19, 2022 · 1 comment
Open

problem with running example #20

piero10 opened this issue Oct 19, 2022 · 1 comment

Comments

@piero10
Copy link

piero10 commented Oct 19, 2022

sorry I do not know how to fix it((((
I made:
pip install mlopt (in python36)
I also tried to build package on my laptop, tried on windows and ubuntu etc, always I get the same error, it hapends with import mlopt


ImportError Traceback (most recent call last)
C:\anaconda3\envs\mlopt36\lib\site-packages\scikits\umfpack_umfpack.py in swig_import_helper()
17 try:
---> 18 fp, pathname, description = imp.find_module('__umfpack', [dirname(file)])
19 except ImportError:

C:\anaconda3\envs\mlopt36\lib\imp.py in find_module(name, path)
296 else:
--> 297 raise ImportError(_ERR_MSG.format(name), name=name)
298

ImportError: No module named '__umfpack'

During handling of the above exception, another exception occurred:

ModuleNotFoundError Traceback (most recent call last)
in
11
12 #from mlopt.sampling import uniform_sphere_sample
---> 13 import mlopt
14 import pandas as pd
15 import cvxpy as cp

C:\anaconda3\envs\mlopt36\lib\site-packages\mlopt_init_.py in
----> 1 from mlopt.optimizer import Optimizer
2 from mlopt.settings import PYTORCH, OPTIMAL_TREE, XGBOOST
3 from mlopt.learners import installed_learners
4
5

C:\anaconda3\envs\mlopt36\lib\site-packages\mlopt\optimizer.py in
1 import pandas as pd
----> 2 from mlopt.problem import Problem
3 import mlopt.settings as stg
4 from mlopt.learners import LEARNER_MAP, installed_learners
5 from mlopt.sampling import Sampler

C:\anaconda3\envs\mlopt36\lib\site-packages\mlopt\problem.py in
4 from mlopt.strategy import Strategy
5 import mlopt.settings as stg
----> 6 from mlopt.kkt import KKTSolver
7 import mlopt.utils as u
8 import mlopt.error as e

C:\anaconda3\envs\mlopt36\lib\site-packages\mlopt\kkt.py in
13 from scipy.sparse.linalg import spsolve
14 from scipy.sparse.linalg import factorized
---> 15 from scikits.umfpack import UmfpackWarning
16 import time
17 import warnings

C:\anaconda3\envs\mlopt36\lib\site-packages\scikits\umfpack_init_.py in
10 from future import division, print_function, absolute_import
11
---> 12 from .umfpack import *
13 from .interface import *
14

C:\anaconda3\envs\mlopt36\lib\site-packages\scikits\umfpack\umfpack.py in
128 import scipy.sparse as sp
129
--> 130 from . import _umfpack as _um
131
132 assumeSortedIndices = False

C:\anaconda3\envs\mlopt36\lib\site-packages\scikits\umfpack_umfpack.py in
26 fp.close()
27 return _mod
---> 28 __umfpack = swig_import_helper()
29 del swig_import_helper
30 else:

C:\anaconda3\envs\mlopt36\lib\site-packages\scikits\umfpack_umfpack.py in swig_import_helper()
18 fp, pathname, description = imp.find_module('__umfpack', [dirname(file)])
19 except ImportError:
---> 20 import __umfpack
21 return __umfpack
22 if fp is not None:

ModuleNotFoundError: No module named '__umfpack'

@dr1x1tit
Copy link

Have you solved this problem? I met the same trouble.

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