Discuss Scratch
- Discussion Forums
 - » Advanced Topics
 - » "ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]
        
         
- 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
                        
                            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?]
(#2)URLs are weird on Scratch, replace the %40 with an “@” no parenthesis
I'm experiencing a 404 error.
- PPPDUD
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]
Oh. Perhaps you could ask someone on PyHelp for assistance?(#2)URLs are weird on Scratch, replace the %40 with an “@” no parenthesis
I'm experiencing a 404 error.
- Knightbot63
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]
(#4)alr. But I think it's more of a technical issue then a python script issue?
Oh. Perhaps you could ask someone on PyHelp for assistance?
- bigspeedfpv
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ 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.literally just means you dont have opencv installed
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
- Knightbot63
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
"ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?]
- 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?]
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:
                        
                            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?]
(#12)I'll try that.
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")
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?]
IDK, Im just looking at error messages, as i have never used opencv.You need to create a config file (In this case, opencv wants you to create config.py)What should be included?
- 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…
                        
                        
                    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?]
(#16)Alright!
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?]
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.
                        
                        
                    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 …
                        
                        
                    - Discussion Forums
 - » Advanced Topics
 - 
            » "ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." [How to Fix?] 
         






