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

ModuleNotFoundError: No module named 'skbuild' with 4.6.0.66 and not 4.5.5.64 #674

Closed
Christian-B opened this issue Jun 8, 2022 · 5 comments
Assignees

Comments

@Christian-B
Copy link

Christian-B commented Jun 8, 2022

We use github action to test our code

We install in the very latest off all tools including pip
python -m pip install --upgrade setuptools wheel
python -m pip install pip

This worked (and still) fine with opencv-python 4.5.5.64

it failes
File "/tmp/easy_install-otpfl9qw/opencv-python-4.6.0.66/setup.py", line 10, in
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ModuleNotFoundError: No module named 'skbuild'

Only changing our requirements to
opencv-python < 4.6.0.66

and the exact same workflow works.

Our github action
"runs-on: ubuntu-20.04"

@rahulporuri
Copy link

rahulporuri commented Jun 8, 2022

We're seeing something similar. Here's some more information -

2022-06-08T10:51:36.4873246Z   [ 69%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/loadsave.cpp.o
2022-06-08T10:51:36.4873849Z   In file included from /tmp/pip-install-epicha04/opencv-python_544c6f2d08d342a59ef82ed7155281aa/opencv/modules/imgcodecs/src/grfmts.hpp:54,
2022-06-08T10:51:36.4874347Z                    from /tmp/pip-install-epicha04/opencv-python_544c6f2d08d342a59ef82ed7155281aa/opencv/modules/imgcodecs/src/loadsave.cpp:47:
2022-06-08T10:51:36.4874902Z   /tmp/pip-install-epicha04/opencv-python_544c6f2d08d342a59ef82ed7155281aa/opencv/modules/imgcodecs/src/grfmt_jpeg2000_openjpeg.hpp:13:10: fatal error: openjpeg.h: No such file or directory
2022-06-08T10:51:36.4875167Z      13 | #include <openjpeg.h>
2022-06-08T10:51:36.4875261Z         |          ^~~~~~~~~~~~
2022-06-08T10:51:36.4875370Z   compilation terminated.
2022-06-08T10:51:36.4875670Z   make[2]: *** [modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/build.make:76: modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/loadsave.cpp.o] Error 1
2022-06-08T10:51:36.4875911Z   make[1]: *** [CMakeFiles/Makefile2:1624: modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/all] Error 2
2022-06-08T10:51:36.4876014Z   make: *** [Makefile:166: all] Error 2
2022-06-08T10:51:36.4876438Z     File "/tmp/pip-build-env-t3su3dgr/overlay/lib/python3.6/site-packages/skbuild/setuptools_wrap.py", line 645, in setup
2022-06-08T10:51:36.4876619Z       cmkr.make(make_args, install_target=cmake_install_target, env=env)
2022-06-08T10:51:36.4876996Z     File "/tmp/pip-build-env-t3su3dgr/overlay/lib/python3.6/site-packages/skbuild/cmaker.py", line 680, in make
2022-06-08T10:51:36.4877239Z       self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
2022-06-08T10:51:36.4877623Z     File "/tmp/pip-build-env-t3su3dgr/overlay/lib/python3.6/site-packages/skbuild/cmaker.py", line 719, in make_impl
2022-06-08T10:51:36.4877757Z       os.path.abspath(CMAKE_BUILD_DIR()),

Note also that we're only seeing this on Linux but not on Ubuntu.

@asenyaev asenyaev self-assigned this Jun 8, 2022
@asenyaev
Copy link
Contributor

asenyaev commented Jun 8, 2022

@Christian-B @rahulporuri thank you for the issue!

The 4.6.0.66 version is the latest which has been released today. Looks like your installations were on the some time period when the release repository was created, but Linux x86_64 was is not pushed. It causes to build a package from source instead of using a pre-built wheel.

The pre-built wheel is already on PyPi. Could you try again to install it?

By the way, if you need to install opencv-python==4.6.0.66 package from source, you should have scikit-build>=0.13.2 in case of #637.

@Christian-B
Copy link
Author

Respect!
Uncapped and now works on both github actions and Jenkins (which had also failed)

ok to close on my part

@rahulporuri
Copy link

same here, our CI is happy now. Thanks @asenyaev , this can be closed.

@asenyaev
Copy link
Contributor

asenyaev commented Jun 8, 2022

Thanks for the feedback! Closing this issue.

@asenyaev asenyaev closed this as completed Jun 8, 2022
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

3 participants