Comments (4)
@lucas-brunel , looks like your gcc installation is broken
gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
Maybe reinstall gcc as suggested here
from smt.
Thanks @relf for your help, you were right about my gcc installation.
I reinstalled gcc with the following:
sudo dnf reinstall gcc
and tried installing smt
again and got a different error:
...
copying smt/applications/mfk.py -> build/lib.linux-x86_64-cpython-311/smt/applications
copying smt/applications/ego.py -> build/lib.linux-x86_64-cpython-311/smt/applications
copying smt/applications/application.py -> build/lib.linux-x86_64-cpython-311/smt/applications
copying smt/applications/__init__.py -> build/lib.linux-x86_64-cpython-311/smt/applications
running build_ext
building 'smt.surrogate_models.rbfclib' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/smt
creating build/temp.linux-x86_64-cpython-311/smt/src
creating build/temp.linux-x86_64-cpython-311/smt/src/rbf
gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ismt/src/rbf -I/tmp/pip-build-env-ion07yua/overlay/lib64/python3.11/site-packages/numpy/core/include -I/usr/include/python3.11 -c smt/src/rbf/rbf.cpp -o build/temp.linux-x86_64-cpython-311/smt/src/rbf/rbf.o -std=c++11
gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ismt/src/rbf -I/tmp/pip-build-env-ion07yua/overlay/lib64/python3.11/site-packages/numpy/core/include -I/usr/include/python3.11 -c smt/src/rbf/rbfclib.cpp -o build/temp.linux-x86_64-cpython-311/smt/src/rbf/rbfclib.o -std=c++11
smt/src/rbf/rbfclib.cpp:35:10: fatal error: Python.h: No such file or directory
35 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for smt
Failed to build smt
ERROR: Could not build wheels for smt, which is required to install pyproject.toml-based projects
I solved this problem by installing python3-devel
as explained here (there are instructions for other linux distributions).
sudo dnf install python3-devel
Thanks again for your help!
from smt.
Hi. Just to be sure, what command did you run to install smt? It seems you've had problems during the compilation of cpp extensions. Maybe check the installation of MSVC. Otherwise, if you use conda, windows binaries are available.
from smt.
Hi!
I've encountered a similar issue on Fedora 37 (linux). The installation fails with the same error on both python 3.9.16 and 3.11.2 and both pip 22.2.2 and 23.0.1.
The installation worked on my windows machine with python 3.9.16.
I got the following error:
(env) [lucasb@fedora-lucas review]$ pip install smt
Collecting smt
Using cached smt-1.3.0.tar.gz (256 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting scikit-learn
Using cached scikit_learn-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.6 MB)
Collecting pyDOE2
Using cached pyDOE2-1.3.0-py3-none-any.whl
Collecting scipy
Using cached scipy-1.10.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.5 MB)
Collecting numpy
Using cached numpy-1.24.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Collecting joblib>=1.1.1
Using cached joblib-1.2.0-py3-none-any.whl (297 kB)
Collecting threadpoolctl>=2.0.0
Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Building wheels for collected packages: smt
Building wheel for smt (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for smt (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [96 lines of output]
/tmp/pip-build-env-hploap75/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
/tmp/pip-build-env-hploap75/overlay/lib/python3.9/site-packages/setuptools/config/setupcfg.py:516: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/smt
copying smt/__init__.py -> build/lib.linux-x86_64-cpython-39/smt
creating build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/surrogate_model.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/rmts.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/rmtc.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/rmtb.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/rbf.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/qp.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/mgp.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/ls.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/krg_based.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/krg.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/kplsk.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/kpls.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/idw.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/genn.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/gekpls.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
copying smt/surrogate_models/__init__.py -> build/lib.linux-x86_64-cpython-39/smt/surrogate_models
creating build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/wing_weight.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/welded_beam.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/water_flow_lfidelity.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/water_flow.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/torsion_vibration.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/tensor_product.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/sphere.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/rosenbrock.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/robot_arm.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/reduced_problem.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/problem.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/ndim_step_function.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/ndim_rosenbrock.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/ndim_robot_arm.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/ndim_cantilever_beam.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/lp_norm.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/cantilever_beam.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/branin.py -> build/lib.linux-x86_64-cpython-39/smt/problems
copying smt/problems/__init__.py -> build/lib.linux-x86_64-cpython-39/smt/problems
creating build/lib.linux-x86_64-cpython-39/smt/sampling_methods
copying smt/sampling_methods/sampling_method.py -> build/lib.linux-x86_64-cpython-39/smt/sampling_methods
copying smt/sampling_methods/random.py -> build/lib.linux-x86_64-cpython-39/smt/sampling_methods
copying smt/sampling_methods/lhs.py -> build/lib.linux-x86_64-cpython-39/smt/sampling_methods
copying smt/sampling_methods/full_factorial.py -> build/lib.linux-x86_64-cpython-39/smt/sampling_methods
copying smt/sampling_methods/__init__.py -> build/lib.linux-x86_64-cpython-39/smt/sampling_methods
creating build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/sm_test_case.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/silence.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/printer.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/options_dictionary.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/misc.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/linear_solvers.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/line_search.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/kriging_utils.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/checks.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/caching.py -> build/lib.linux-x86_64-cpython-39/smt/utils
copying smt/utils/__init__.py -> build/lib.linux-x86_64-cpython-39/smt/utils
creating build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
copying smt/utils/neural_net/optimizer.py -> build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
copying smt/utils/neural_net/model.py -> build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
copying smt/utils/neural_net/metrics.py -> build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
copying smt/utils/neural_net/loss.py -> build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
copying smt/utils/neural_net/fwd_prop.py -> build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
copying smt/utils/neural_net/data.py -> build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
copying smt/utils/neural_net/bwd_prop.py -> build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
copying smt/utils/neural_net/activation.py -> build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
copying smt/utils/neural_net/__init__.py -> build/lib.linux-x86_64-cpython-39/smt/utils/neural_net
creating build/lib.linux-x86_64-cpython-39/smt/applications
copying smt/applications/vfm.py -> build/lib.linux-x86_64-cpython-39/smt/applications
copying smt/applications/moe.py -> build/lib.linux-x86_64-cpython-39/smt/applications
copying smt/applications/mixed_integer.py -> build/lib.linux-x86_64-cpython-39/smt/applications
copying smt/applications/mfkplsk.py -> build/lib.linux-x86_64-cpython-39/smt/applications
copying smt/applications/mfkpls.py -> build/lib.linux-x86_64-cpython-39/smt/applications
copying smt/applications/mfk.py -> build/lib.linux-x86_64-cpython-39/smt/applications
copying smt/applications/ego.py -> build/lib.linux-x86_64-cpython-39/smt/applications
copying smt/applications/application.py -> build/lib.linux-x86_64-cpython-39/smt/applications
copying smt/applications/__init__.py -> build/lib.linux-x86_64-cpython-39/smt/applications
running build_ext
building 'smt.surrogate_models.rbfclib' extension
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/smt
creating build/temp.linux-x86_64-cpython-39/smt/src
creating build/temp.linux-x86_64-cpython-39/smt/src/rbf
gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ismt/src/rbf -I/tmp/pip-build-env-hploap75/overlay/lib64/python3.9/site-packages/numpy/core/include -I/home/lucasb/Documents/PHD/these-lucas-brunel/Code/review/env/include -I/usr/include/python3.9 -c smt/src/rbf/rbf.cpp -o build/temp.linux-x86_64-cpython-39/smt/src/rbf/rbf.o -std=c++11
gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for smt
Failed to build smt
ERROR: Could not build wheels for smt, which is required to install pyproject.toml-based projects
Let me know if I can give you any complementary info.
from smt.
Related Issues (20)
- Hessian computation/Compatibility with dual numbers HOT 4
- SIGBUS (Misaligned Address Error) HOT 1
- negative axis 1 index
- Training two samples take ~480 seconds HOT 3
- OOB access in RMTB HOT 1
- SGP Gradients unsupported HOT 1
- Relevance of the warning `R is too ill conditioned...` HOT 3
- ConfigSpace vs Numpy 2.0 compatibility HOT 1
- Document parameters to improve accuracy of SGP
- Recommendation for surrogate optimization
- Multi-Fidelity Models with Variable Design Spaces
- KeyError: 'C' HOT 2
- Question About KeyError: 'design_space' HOT 1
- How to package a trained Surrogate model into an FMU?
- ConfigSpace error with Python 3.12 - TypeError: Expected float, got numpy.float64 HOT 2
- Documentation hyperlink failing HOT 1
- RMTS issue with scipy < 1.12 HOT 1
- KPLSK is badly implemented
- Error with the prediction of variance derivatives in GPX HOT 1
- Wrong code in [7] to plot the Rosenbrock function ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smt.