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

[Bug] Cannot open the app - opencv2/imgcodecs.hpp: No such file or directory #213

Open
GovenorKratos opened this issue May 22, 2024 · 1 comment

Comments

@GovenorKratos
Copy link

GovenorKratos commented May 22, 2024

Describe the bug
I followed the setup guide in this repo. I am a noob when it comes to Python, and this is my first time using Conda.

To Reproduce
Steps to reproduce the behavior:
Follow the guide, by copying and pasting each command. Then jump into the conda environment and run "python app.py".

Expected behavior
The app was meant to open, but instead I get fatal error: opencv2/imgcodecs.hpp: No such file or directory

Desktop (please complete the following information):

  • OS: Linux - Fedora 40 GNOME
  • Python version - 3.10

Additional context
I am a noob when it comes to this sort of stuff. If I haven't added correct information or anything is missing, feel free to tell me.

@GovenorKratos
Copy link
Author

** The full output - This is everything I got from the ouput on the terminal**: (Sorry about the formatting)

Compiling and loading c extensions from "/home/redacted/stablediffusion-infinity/PyPatchMatch".
rm -rf build/obj libpatchmatch.so
Package opencv4 was not found in the pkg-config search path.
Perhaps you should add the directory containing opencv4.pc' to the PKG_CONFIG_PATH environment variable Package 'opencv4', required by 'virtual:world', not found mkdir: created directory 'build/obj' mkdir: created directory 'build/obj/csrc/' [dep] csrc/inpaint.cpp ... Package opencv4 was not found in the pkg-config search path. Perhaps you should add the directory containing opencv4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'opencv4', required by 'virtual:world', not found
[dep] csrc/masked_image.cpp ...
Package opencv4 was not found in the pkg-config search path.
Perhaps you should add the directory containing opencv4.pc' to the PKG_CONFIG_PATH environment variable Package 'opencv4', required by 'virtual:world', not found [dep] csrc/nnf.cpp ... Package opencv4 was not found in the pkg-config search path. Perhaps you should add the directory containing opencv4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'opencv4', required by 'virtual:world', not found
[dep] csrc/pyinterface.cpp ...
Package opencv4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'opencv4', required by 'virtual:world', not found
[CC] csrc/inpaint.cpp ...
csrc/inpaint.cpp:3:10: fatal error: opencv2/imgcodecs.hpp: No such file or directory
3 | #include <opencv2/imgcodecs.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:33: build/obj/csrc/inpaint.o] Error 1
patch_match compiling failed, will fall back to edge_pad
No module named 'fpie' so PhotometricCorrection is disabled
Traceback (most recent call last):
File "/home/redacted/stablediffusion-infinity/app.py", line 1123, in
setup_button.click(
TypeError: EventListener._setup..event_trigger() got an unexpected keyword argument '_js'
(sd-inf) Redacted@Redacted:~/stablediffusion-infinity$ pip install opencv4
ERROR: Could not find a version that satisfies the requirement opencv4 (from versions: none)
ERROR: No matching distribution found for opencv4

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

1 participant