Discuss Scratch

Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

I am using a code to convert a video to strings for a project and this uses python.
The only problem is that it keeps throwing in the
"ImportError: OpenCV loader: missing configuration file: . Check OpenCV installation."
Error.
Anyway to fix this?
I'm using replit and here's the code:
https://replit.com/@Knightbot63/100-Pen-BK-Whopper-Song-Converter?v=1

Last edited by Knightbot63 (March 2, 2023 15:02:14)

PPPDUD
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

I'm experiencing a 404 error.
Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

PPPDUD wrote:

(#2)
I'm experiencing a 404 error.
URLs are weird on Scratch, replace the %40 with an “@” no parenthesis
PPPDUD
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

Knightbot63 wrote:

PPPDUD wrote:

(#2)
I'm experiencing a 404 error.
URLs are weird on Scratch, replace the %40 with an “@” no parenthesis
Oh. Perhaps you could ask someone on PyHelp for assistance?
Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

PPPDUD wrote:

(#4)
Oh. Perhaps you could ask someone on PyHelp for assistance?
alr. But I think it's more of a technical issue then a python script issue?
bigspeedfpv
Scratcher
500+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

Knightbot63 wrote:

I am using a code to convert a video to strings for a project and this uses python.
The only problem is that it keeps throwing in the
"ImportError: OpenCV loader: missing configuration file: . Check OpenCV installation."
Error.
Anyway to fix this?
I'm using replit and here's the code:
https://replit.com/@Knightbot63/100-Pen-BK-Whopper-Song-Converter?v=1
literally just means you dont have opencv installed
Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

bigspeedfpv wrote:

(#6)
literally just means you dont have opencv installed
It has been installed
Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

More detail:
showierdata9978
Scratcher
100+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

You need to create a config file (In this case, opencv wants you to create config.py)

Last edited by showierdata9978 (March 3, 2023 15:33:44)

Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

showierdata9978 wrote:

You need to create a config file (In this case, opencv wants you to create config.py)
What should be included?
Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

bump
Sid72020123
Scratcher
500+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

You need to install the “headless” part of the library to make it work!

Put these lines above your code:
import os
os.system("pip uninstall opencv-python && pip install opencv-python-headless")

Last edited by Sid72020123 (March 6, 2023 15:11:32)

Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

Sid72020123 wrote:

(#12)
You need to install the “headless” part of the library to make it work!

Put these lines above your code:
import os
os.system("pip uninstall opencv-python && pip install opencv-python-headless")
I'll try that.

Edit, that's weird, it didn't work.

Last edited by Knightbot63 (March 6, 2023 15:15:27)

Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

bump
showierdata9978
Scratcher
100+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

Knightbot63 wrote:

showierdata9978 wrote:

You need to create a config file (In this case, opencv wants you to create config.py)
What should be included?
IDK, Im just looking at error messages, as i have never used opencv.
Sid72020123
Scratcher
500+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

Actually due to Replit's recent update, you can use opencv-python on replit!

I just check the replit forums and many people have the same issue. The Team is trying to fix it…
Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

Sid72020123 wrote:

(#16)
Actually due to Replit's recent update, you can use opencv-python on replit!

I just check the replit forums and many people have the same issue. The Team is trying to fix it…
Alright!
Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

bump…
Knightbot63
Scratcher
1000+ posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

bump…

I assume if I want to get the frames then I may have to do it on my computer unless replit has cv2 fixed.
programORdie
Scratcher
28 posts

"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]

Got the same problem …

Powered by DjangoBB