Hello,
I am a student who would like to use Bingo to do a symbolic regression on some data. I have been trying to install Bingo using the github source code as instructed on the installation documentation on https://nasa.github.io/bingo/installation.html
git clone --recurse-submodules https://github.com/nasa/bingo.git
cd bingo
pip install -r requirements.txt
./.build_bingocpp.sh
pytest tests
Everything seemed to work without errors until the testing stage, at which point nearly every test terminated with an error. I was hoping that someone might recognize the issues that I am facing with installing the library and be able to provide some guidance.
(SurrMethods) C:\Users\snimbkar\bingo>pytest tests
================================================= test session starts =================================================
platform win32 -- Python 3.9.21, pytest-8.4.1, pluggy-1.6.0
rootdir: C:\Users\snimbkar\bingo
configfile: pyproject.toml
plugins: anyio-4.9.0, jaxtyping-0.2.36, cov-6.2.1, mock-3.14.1, timeout-2.4.0, typeguard-2.13.3
collected 21 items / 71 errors
======================================================= ERRORS ========================================================
_________________________ ERROR collecting tests/integration/agraph/test_agraph_eval_simp.py __________________________
ImportError while importing test module 'C:\Users\snimbkar\bingo\tests\integration\agraph\test_agraph_eval_simp.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
..\AppData\Local\anaconda3\envs\SurrMethods\lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests\integration\agraph\test_agraph_eval_simp.py:8: in <module>
from bingo.symbolic_regression.agraph.operator_definitions \
E ModuleNotFoundError: No module named 'bingo'
___________________ ERROR collecting tests/integration/agraph/test_agraph_mutation_and_crossover.py ___________________
ImportError while importing test module 'C:\Users\snimbkar\bingo\tests\integration\agraph\test_agraph_mutation_and_crossover.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
..\AppData\Local\anaconda3\envs\SurrMethods\lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests\integration\agraph\test_agraph_mutation_and_crossover.py:7: in <module>
from bingo.symbolic_regression.agraph.operator_definitions import *
E ModuleNotFoundError: No module named 'bingo'
(SurrMethods) C:\Users\snimbkar\bingo>pytest tests
================================================= test session starts =================================================
platform win32 -- Python 3.9.21, pytest-8.4.1, pluggy-1.6.0
rootdir: C:\Users\snimbkar\bingo
configfile: pyproject.toml
plugins: anyio-4.9.0, jaxtyping-0.2.36, cov-6.2.1, mock-3.14.1, timeout-2.4.0, typeguard-2.13.3
collected 21 items / 71 errors
======================================================= ERRORS ========================================================
_________________________ ERROR collecting tests/integration/agraph/test_agraph_eval_simp.py __________________________
ImportError while importing test module 'C:\Users\snimbkar\bingo\tests\integration\agraph\test_agraph_eval_simp.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
..\AppData\Local\anaconda3\envs\SurrMethods\lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests\integration\agraph\test_agraph_eval_simp.py:8: in <module>
from bingo.symbolic_regression.agraph.operator_definitions \
E ModuleNotFoundError: No module named 'bingo'
___________________ ERROR collecting tests/integration/agraph/test_agraph_mutation_and_crossover.py ___________________
ImportError while importing test module 'C:\Users\snimbkar\bingo\tests\integration\agraph\test_agraph_mutation_and_crossover.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
..\AppData\Local\anaconda3\envs\SurrMethods\lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests\integration\agraph\test_agraph_mutation_and_crossover.py:7: in <module>
from bingo.symbolic_regression.agraph.operator_definitions import *
E ModuleNotFoundError: No module named 'bingo'
I am aware that the site mentioned that pip install wouldn't work, but for good measure, I also attempted pip install bingo-nasa (which resulted in a cmake error)
CMake Error at CMakeLists.txt:6 (project):
Generator
NMake Makefiles
does not support platform specification, but platform
x64
was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bingo-nasa
Failed to build bingo-nasa
ERROR: Failed to build installable wheels for some pyproject.toml based projects (bingo-nasa)
I have tried it on a different computer with cmake from Microsoft Visual Studios Installed. Before I spend a lot of time troubleshooting in this direction, I wanted to seek external suggestions on installation error resolutions for this library.
Briefly, when installed using GitHub source code instructions, there are no errors until the test stage, where nearly every test fails. Calling upon bingo in jupyter notebook returns a "no such module" error.
A pip install in editable mode (pip install -e . executed in the bingo directory) yielded issues using a C++ compiler to install the source code on my computer.
Thank you.
Hello,
I am a student who would like to use Bingo to do a symbolic regression on some data. I have been trying to install Bingo using the github source code as instructed on the installation documentation on https://nasa.github.io/bingo/installation.html
git clone --recurse-submodules https://github.com/nasa/bingo.git
cd bingo
pip install -r requirements.txt
./.build_bingocpp.sh
pytest tests
Everything seemed to work without errors until the testing stage, at which point nearly every test terminated with an error. I was hoping that someone might recognize the issues that I am facing with installing the library and be able to provide some guidance.
I am aware that the site mentioned that pip install wouldn't work, but for good measure, I also attempted pip install bingo-nasa (which resulted in a cmake error)
I have tried it on a different computer with cmake from Microsoft Visual Studios Installed. Before I spend a lot of time troubleshooting in this direction, I wanted to seek external suggestions on installation error resolutions for this library.
Briefly, when installed using GitHub source code instructions, there are no errors until the test stage, where nearly every test fails. Calling upon bingo in jupyter notebook returns a "no such module" error.
A pip install in editable mode (pip install -e . executed in the bingo directory) yielded issues using a C++ compiler to install the source code on my computer.
Thank you.