-
Notifications
You must be signed in to change notification settings - Fork 14
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
Example from the README fails: No module named 'dwave.samplers.greedy.descent' #31
Comments
Hi @yurivict you need to install the package first. This can be done with
to install from pypi. Or, if you want to build locally and intend to run the code from the top-level directory of the repo.
Or, finally if you want to build locally and want to run from a different directory
|
The package is installed:
|
If your current working directory is the repo root, then Python will try to use the local version rather than the one in site-packages. I would try navigating to a different directory if you want to use the version in site-packages. |
No, my work directory isn't repo root. |
How did you install the package? |
This was done within the FreeBSD ports framework. |
Try running
I am not 100% sure that just |
This way build fails:
|
And what about
preferably after updating pip and setuptools
|
I am trying to create the FreeBSD port for dwave-samplers. pip is never involved in port's build process. setuptools is already installed from the package. |
I have not been able to reproduce locally. The only clue I have is that it looks like the |
Yes, it looks like directories are messed up. I also tried to build w/out distutils - using build/installer modules. build/installer install the package with the same problem. This looks to me like a bug in the project. |
I suppose that is possible. But the only places such paths are specified are here which is the standard Python/Cython build pattern. Also, running
puts everything in the correct place on my local system. I am using setuptools 58.1.0, Cython 0.29.28 for what it's worth. |
Have you, by chance, added an
if that's the case, you may be running into pypa/setuptools#3343. I was able to get an error similar to yours by adding that file. |
No, I didn't add any files. I use setuptools-63.1.0, cython-0.29.32. Your setuptools and cython packages are outdated. |
Updating both does not change the behavior - still works fine locally. |
Correcting paths fixes the problem. |
Version: 1.0.0.dev1
The text was updated successfully, but these errors were encountered: