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

could not build python package by setuptools #128

Open
JULY5590 opened this issue Dec 6, 2023 · 1 comment
Open

could not build python package by setuptools #128

JULY5590 opened this issue Dec 6, 2023 · 1 comment

Comments

@JULY5590
Copy link

JULY5590 commented Dec 6, 2023

while building gpufit in windows11 in VS2019 ,it report :
4>Traceback (most recent call last):
4> File "F:\gpufit\gpufit_build\Release\pyCpufit\setup.py", line 10, in
4> import pycpufit.version as vs
4> File "F:\gpufit\gpufit_build\Release\pyCpufit\pycpufit_init_.py", line 1, in
4> from cpufit import *
4>ModuleNotFoundError: No module named 'cpufit'
4>D:\VS2019\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: “F:\gpufit\gpufit_...

this is the only error report. other project building completed well.

@sudb92
Copy link

sudb92 commented Dec 29, 2023

Commenting out the 'from cpufit import *' in Cpufit/python/pycpufit/init.py helped me build it without error. When running example programs replace the line 'import cpufit as cf' with 'import pycpufit.cpufit as cf'. YMMV.

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