You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting below error while installing openbabel using pip. please help.
C:\Users\X265065>pip install openbabel
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
Collecting openbabel
Using cached openbabel-3.1.1.1.tar.gz (82 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: openbabel
Building wheel for openbabel (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running bdist_wheel
running build
running build_ext
Warning: invalid version number '3.1.1.1'.
Guessing Open Babel location:
- include_dirs: ['C:\Program Files\Python311\include', 'C:\Program Files\Python311\Include', '/usr/local/include/openbabel3']
- library_dirs: ['C:\Program Files\Python311\libs', 'C:\Program Files\Python311', 'C:\Program Files\Python311\PCbuild\amd64', '/usr/local/lib']
building 'openbabel._openbabel' extension
swigging openbabel\openbabel-python.i to openbabel\openbabel-python_wrap.cpp
swig.exe -python -c++ -small -O -templatereduce -naturalvar "-IC:\Program Files\Python311\include" "-IC:\Program Files\Python311\Include" -I/usr/local/include/openbabel3 -o openbabel\openbabel-python_wrap.cpp openbabel\openbabel-python.i
openbabel\openbabel-python.i(246) : Error: Unable to find 'openbabel\babelconfig.h'
C:\Program Files\Python311\include\openbabel\typer.h(66) : Error: CPP #error "OB_EXTERN". Use the -cpperraswarn option to continue swig processing.
Error: SWIG failed. Is Open Babel installed?
You may need to manually specify the location of Open Babel include and library directories. For example:
python setup.py build_ext -I/usr/local/include/openbabel3 -L/usr/local/lib
python setup.py install
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for openbabel
Running setup.py clean for openbabel
Failed to build openbabel
ERROR: Could not build wheels for openbabel, which is required to install pyproject.toml-based projects
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
The text was updated successfully, but these errors were encountered:
I am getting below error while installing openbabel using pip. please help.
C:\Users\X265065>pip install openbabel
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
Collecting openbabel
Using cached openbabel-3.1.1.1.tar.gz (82 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: openbabel
Building wheel for openbabel (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running bdist_wheel
running build
running build_ext
Warning: invalid version number '3.1.1.1'.
Guessing Open Babel location:
- include_dirs: ['C:\Program Files\Python311\include', 'C:\Program Files\Python311\Include', '/usr/local/include/openbabel3']
- library_dirs: ['C:\Program Files\Python311\libs', 'C:\Program Files\Python311', 'C:\Program Files\Python311\PCbuild\amd64', '/usr/local/lib']
building 'openbabel._openbabel' extension
swigging openbabel\openbabel-python.i to openbabel\openbabel-python_wrap.cpp
swig.exe -python -c++ -small -O -templatereduce -naturalvar "-IC:\Program Files\Python311\include" "-IC:\Program Files\Python311\Include" -I/usr/local/include/openbabel3 -o openbabel\openbabel-python_wrap.cpp openbabel\openbabel-python.i
openbabel\openbabel-python.i(246) : Error: Unable to find 'openbabel\babelconfig.h'
C:\Program Files\Python311\include\openbabel\typer.h(66) : Error: CPP #error "OB_EXTERN". Use the -cpperraswarn option to continue swig processing.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for openbabel
Running setup.py clean for openbabel
Failed to build openbabel
ERROR: Could not build wheels for openbabel, which is required to install pyproject.toml-based projects
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
WARNING: Skipping C:\Users\X265065\AppData\Roaming\Python\Python311\site-packages\pillow-10.2.0.dist-info due to invalid metadata entry 'name'
The text was updated successfully, but these errors were encountered: