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

Error import theano in SUSE #6666

Open
L619 opened this issue Dec 11, 2018 · 2 comments
Open

Error import theano in SUSE #6666

L619 opened this issue Dec 11, 2018 · 2 comments

Comments

@L619
Copy link

L619 commented Dec 11, 2018

I install theano without error(only use naked python,without conda), but when I use the command "import theano", there is an error as following. Could you please fix it? Thank you.
My linux system is:
NAME="SLES"
VERSION="12-SP2"
VERSION_ID="12.2"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2"

The python version is 3.6.7

import theano
You can find the C code in this temporary file: /tmp/theano_compilation_error_w72urbne
library inux/7/include-fixed/limits.h:194, is not found.
library inux/7/include-fixed/syslimits.h:7, is not found.
library inux/7/include-fixed/limits.h:34, is not found.
library inux/7/include-fixed/limits.h:194, is not found.
library inux/7/include-fixed/syslimits.h:7, is not found.
library inux/7/include-fixed/limits.h:34, is not found.
Traceback (most recent call last):
File "/opt/python3/lib/python3.6/site-packages/theano/gof/lazylinker_c.py", line 81, in
actual_version, force_compile, _need_reload))
ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None. Extra debug information: force_compile=False, _need_reload=True

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/python3/lib/python3.6/site-packages/theano/gof/lazylinker_c.py", line 105, in
actual_version, force_compile, _need_reload))
ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None. Extra debug information: force_compile=False, _need_reload=True

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/opt/python3/lib/python3.6/site-packages/theano/init.py", line 110, in
from theano.compile import (
File "/opt/python3/lib/python3.6/site-packages/theano/compile/init.py", line 12, in
from theano.compile.mode import *
File "/opt/python3/lib/python3.6/site-packages/theano/compile/mode.py", line 11, in
import theano.gof.vm
File "/opt/python3/lib/python3.6/site-packages/theano/gof/vm.py", line 674, in
from . import lazylinker_c
File "/opt/python3/lib/python3.6/site-packages/theano/gof/lazylinker_c.py", line 140, in
preargs=args)
File "/opt/python3/lib/python3.6/site-packages/theano/gof/cmodule.py", line 2388, in compile_str
(status, compile_stderr.replace('\n', '. ')))
Exception: Compilation failed (return status=1): In file included from /opt/python3/include/python3.6m/pyport.h:194:0,. from /opt/python3/include/python3.6m/Python.h:53,. from /root/.theano/compiledir_Linux-4.4--default-x86_64-with-SuSE-12-x86_64-x86_64-3.6.7-64/lazylinker_ext/mod.cpp:1:. /usr/include/c++/7/math.h:65:12: error: ‘constexpr bool std::isinf(double)’ conflicts with a previous declaration. using std::isinf;. ^~~~~. In file included from /usr/include/features.h:347:0,. from /usr/include/limits.h:27,. from /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/limits.h:194,. from /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/syslimits.h:7,. from /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/limits.h:34,. from /opt/python3/include/python3.6m/Python.h:11,. from /root/.theano/compiledir_Linux-4.4--default-x86_64-with-SuSE-12-x86_64-x86_64-3.6.7-64/lazylinker_ext/mod.cpp:1:. /usr/include/bits/mathcalls.h:202:1: note: previous declaration ‘int isinf(double)’. __MATHDECL_1 (int,isinf,, (Mdouble __value)) attribute ((const));. ^. In file included from /opt/python3/include/python3.6m/pyport.h:194:0,. from /opt/python3/include/python3.6m/Python.h:53,. from /root/.theano/compiledir_Linux-4.4--default-x86_64-with-SuSE-12-x86_64-x86_64-3.6.7-64/lazylinker_ext/mod.cpp:1:. /usr/include/c++/7/math.h:66:12: error: ‘constexpr bool std::isnan(double)’ conflicts with a previous declaration. using std::isnan;. ^~~~~. In file included from /usr/include/features.h:347:0,. from /usr/include/limits.h:27,. from /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/limits.h:194,. from /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/syslimits.h:7,. from /usr/lib64/gcc/x86_64-suse-linux/7/include-fixed/limits.h:34,. from /opt/python3/include/python3.6m/Python.h:11,. from /root/.theano/compiledir_Linux-4.4--default-x86_64-with-SuSE-12-x86_64-x86_64-3.6.7-64/lazylinker_ext/mod.cpp:1:. /usr/include/bits/mathcalls.h:235:1: note: previous declaration ‘int isnan(double)’. __MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));. ^.

@abergeron
Copy link
Member

abergeron commented Dec 12, 2018 via email

@L619
Copy link
Author

L619 commented Dec 13, 2018

@abergeron , sorry, I can't see the program. What is the program ? Thank you. "Can you test if you are able to compile this program"

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