-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hi,
I tried installing the package with pip install pyatomdb and got the error below. The installation still fails with different versions of Python. I have all C++ tools for Visual Studio installed. There is a similar issue here that is still open from 2022, does the package still not work with Windows?
``
Building wheels for collected packages: pyatomdb
Building wheel for pyatomdb (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pyatomdb (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
C:\Users\doruk\AppData\Local\Temp\pip-build-env-qu26ht0k\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: project.license as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-310\pyatomdb
copying pyatomdb\apec.py -> build\lib.win-amd64-cpython-310\pyatomdb
copying pyatomdb\atomdb.py -> build\lib.win-amd64-cpython-310\pyatomdb
copying pyatomdb\atomic.py -> build\lib.win-amd64-cpython-310\pyatomdb
copying pyatomdb\const.py -> build\lib.win-amd64-cpython-310\pyatomdb
copying pyatomdb\spectrum.py -> build\lib.win-amd64-cpython-310\pyatomdb
copying pyatomdb\spectrum_dev.py -> build\lib.win-amd64-cpython-310\pyatomdb
copying pyatomdb\util.py -> build\lib.win-amd64-cpython-310\pyatomdb
copying pyatomdb\__init__.py -> build\lib.win-amd64-cpython-310\pyatomdb
creating build\lib.win-amd64-cpython-310\tests
copying tests\test1.py -> build\lib.win-amd64-cpython-310\tests
copying tests\__init__.py -> build\lib.win-amd64-cpython-310\tests
running egg_info
writing pyatomdb.egg-info\PKG-INFO
writing dependency_links to pyatomdb.egg-info\dependency_links.txt
writing requirements to pyatomdb.egg-info\requires.txt
writing top-level names to pyatomdb.egg-info\top_level.txt
reading manifest file 'pyatomdb.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs\_*'
adding license file 'COPYING.txt'
writing manifest file 'pyatomdb.egg-info\SOURCES.txt'
running build_ext
building 'linear_approx' extension
creating build\temp.win-amd64-cpython-310\Release
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMAJOR_VERSION=1 -DMINOR_VERSION=0 -IC:\Users\doruk\AppData\Local\Programs\Python\Python310\include -IC:\Users\doruk\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tclinear_approx.c /Fobuild\temp.win-amd64-cpython-310\Release\linear_approx.obj
linear_approx.c
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\doruk\AppData\Local\Programs\Python\Python310\libs /LIBPATH:C:\Users\doruk\AppData\Local\Programs\Python\Python310 /LIBPATH:C:\Users\doruk\AppData\Local\Programs\Python\Python310\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_linear_approx build\temp.win-amd64-cpython-310\Release\linear_approx.obj /OUT:build\lib.win-amd64-cpython-310\linear_approx.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-310\Release\linear_approx.cp310-win_amd64.lib
LINK : error LNK2001: unresolved external symbol PyInit_linear_approx
build\temp.win-amd64-cpython-310\Release\linear_approx.cp310-win_amd64.lib : fatal error LNK1120: 1 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyatomdb
Failed to build pyatomdb
ERROR: Could not build wheels for pyatomdb, which is required to install pyproject.toml-based projects
[notice] A new release of pip available: 22.3.1 -> 25.2
[notice] To update, run: python.exe -m pip install --upgrade pip
``