Import error #244
Unanswered
GengXia0406
asked this question in
Q&A
Replies: 5 comments 10 replies
|
Hi Geng. Sorry about the import issue. Are you able to import this into python without the notebook, e.g., |
3 replies
|
Hi Geng,
Could you please add details of your OS and computer that you are running?
<< OSError:
/home/gxia/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/discrete_distribution/c_lib/
c_lib.cpython-36m-x86_64-linux-gnu.so: undefined symbol: __svml_idiv4
The above error implies, "Short Vector Math Library" (libsvml.a) could not
be found.
Did you install qmcpy using pip or using the code from github?
…On Fri, Apr 9, 2021 at 12:27 PM Michael McCourt ***@***.***> wrote:
Hi Gang. Sorry about the import issue. Are you able to import this into
python without the notebook, e.g., python -c "from qmcpy.integrand import
*"?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#244 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJTRVFZ4NOX5VNQAJ37FWLTH42INANCNFSM42UFY22Q>
.
--
-Jags
|
1 reply
|
Thank you, We were looking at easier solutions for you to get started.
You could get quickly started using this google Colab notebook while we
debug the issue.
Please make a copy of yourself.
https://colab.research.google.com/drive/1Nh6OhZ5w6trTFjyauIf0YAXD5JReyKpM?usp=sharing
To debug the error, please provide more details as below.
As per this log:
> OSError:
/home/gxia/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/discrete_distribution/c_lib/
c_lib.cpython-36m-x86_64-linux-gnu.so: undefined symbol: __svml_idiv4
It looks like the OS is Linux. Maybe the libsvml (or some other dynamic)
library is incompatible.
I see you installed qmcpy using: "pip install qmcpy"
Did you get any error or warning while doing it?
Could you please run these cmds to get your OS details for us to reproduce
the error?
> cat /etc/os-release
> lsb_release -a
> hostnamectl
> uname -a
Another alternative is to use docker, if you must run it on your local
computer.
Please see if you could run these cmds:
…> docker pull alegresor/qmcpy
> docker run --rm -it --name=qmcpy alegresor/qmcpy /bin/bash
On Fri, Apr 9, 2021 at 4:57 PM GengXia-NREL ***@***.***> wrote:
1.
how did you find out about QMCPy
I just google it. Recently, i want to use QMC for my research and i
google to see it if there is a python package available.
2.
what project are you working on where you would like to use it
I am an atmospheric science researcher and I want to use QMC for my
parameter sensitivity experiments.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#244 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJTRVAYK2N6EMTJMCKIT4DTH5Z4TANCNFSM42UFY22Q>
.
--
-Jags
|
1 reply
|
Hi GengXia,
Were you able to use this colab notebook?
You could get quickly started using this google Colab notebook while we
debug the issue.
Please make a copy of yourself.
https://colab.research.google.com/drive/1Nh6OhZ5w6trTFjyauIf0YAXD5JReyKpM?usp=sharing
It looks like your computer is using a different C compiler than what we
used so far.
QMCpy library has some code in C that gets compiled when you do pip install.
This seems to be producing very different results.
I will send you some more cmds to understand the type of compiler that you
are using.
On Mon, Apr 12, 2021 at 11:38 AM Jagadeeswaran Rathinavel <
***@***.***> wrote:
… Thank you, We were looking at easier solutions for you to get started.
You could get quickly started using this google Colab notebook while we
debug the issue.
Please make a copy of yourself.
https://colab.research.google.com/drive/1Nh6OhZ5w6trTFjyauIf0YAXD5JReyKpM?usp=sharing
To debug the error, please provide more details as below.
As per this log:
>> OSError:
/home/gxia/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/discrete_distribution/c_lib/
c_lib.cpython-36m-x86_64-linux-gnu.so: undefined symbol: __svml_idiv4
It looks like the OS is Linux. Maybe the libsvml (or some other dynamic)
library is incompatible.
I see you installed qmcpy using: "pip install qmcpy"
Did you get any error or warning while doing it?
Could you please run these cmds to get your OS details for us to reproduce
the error?
>> cat /etc/os-release
>> lsb_release -a
>> hostnamectl
>> uname -a
Another alternative is to use docker, if you must run it on your local
computer.
Please see if you could run these cmds:
>> docker pull alegresor/qmcpy
>> docker run --rm -it --name=qmcpy alegresor/qmcpy /bin/bash
On Fri, Apr 9, 2021 at 4:57 PM GengXia-NREL ***@***.***>
wrote:
>
> 1.
>
> how did you find out about QMCPy
> I just google it. Recently, i want to use QMC for my research and i
> google to see it if there is a python package available.
> 2.
>
> what project are you working on where you would like to use it
> I am an atmospheric science researcher and I want to use QMC for my
> parameter sensitivity experiments.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#244 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAJTRVAYK2N6EMTJMCKIT4DTH5Z4TANCNFSM42UFY22Q>
> .
>
--
-Jags
--
-Jags
|
4 replies
|
Great, you could start using the qmcpy while we debug.
Is google-colab good enough for your experiments?
If not and you still want to run this locally. Could you please
install docker using these instructions?
https://docs.docker.com/engine/install/centos/
Then please try:
…> docker pull alegresor/qmcpy
> docker run --rm -it --name=qmcpy alegresor/qmcpy /bin/bash
On Tue, Apr 13, 2021 at 12:59 AM GengXia-NREL ***@***.***> wrote:
Hi Jagadeesr
I am able to use the colab notebook. Thanks again for looking into this issue.
Best regards
Geng Xia
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
--
-Jags
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi there
I successfully installed QMC but was having trouble importing it into Notebook. Below shows the error that I received. I would appreciate if anyone can provide any suggestions.
Thanks in advance
Best regards
Geng Xia
Postdoctoral Associate| National Wind Technology Center
National Renewable Energy Laboratory (NREL)
OSError Traceback (most recent call last)
in
22 import glob
23 import pathlib
---> 24 from qmcpy.integrand import *
~/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/init.py in
----> 1 from .discrete_distribution import *
2 from .true_measure import *
3 from .integrand import *
4 from .stopping_criterion import *
5
~/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/discrete_distribution/init.py in
2 from .iid_std_gaussian import IIDStdGaussian
3 from .lattice import Lattice
----> 4 from .sobol import Sobol, DigitalNet
5 from .halton import Halton
6 from .korobov import Korobov
~/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/discrete_distribution/sobol/init.py in
----> 1 from .sobol import Sobol, DigitalNet
~/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/discrete_distribution/sobol/sobol.py in
1 from .._discrete_distribution import DiscreteDistribution
2 from ...util import ParameterError, ParameterWarning
----> 3 from ..c_lib import c_lib
4 import ctypes
5 from os.path import dirname, abspath, isfile
~/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/discrete_distribution/c_lib/init.py in
----> 1 from .load_c_lib import c_lib
~/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/discrete_distribution/c_lib/load_c_lib.py in
3 from glob import glob
4
----> 5 c_lib = CDLL(glob(dirname(abspath(file))+'/c_lib*')[0], mode=RTLD_GLOBAL)
~/.conda-envs/playground/lib/python3.6/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error)
346
347 if handle is None:
--> 348 self._handle = _dlopen(self._name, mode)
349 else:
350 self._handle = handle
OSError: /home/gxia/.conda-envs/playground/lib/python3.6/site-packages/qmcpy/discrete_distribution/c_lib/c_lib.cpython-36m-x86_64-linux-gnu.so: undefined symbol: __svml_idiv4
All reactions