question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The file cannot be found by running after packaging with pyinstaller

See original GitHub issue

I don’t know if there are any friends like me. After packing with pyinstaller, I couldn’t find the file. The specific error report is as follows:

Traceback (most recent call last):
  File "main.py", line 363, in main
  File "captcha/easy_ocr.py", line 46, in easy_ocr
  File "easyocr/easyocr.py", line 199, in __init__
  File "easyocr/easyocr.py", line 256, in setLanguageList
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/v7/4z00fvss71n435b2g4xvymjr0000gn/T/_MEIUYXJ9t/easyocr/character/ch_sim_char.txt'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

12reactions
maxpaynestorycommented, Oct 1, 2021

–collect-all easyocr has solved my problem

pyinstaller -F desktop_app.py --collect-all easyocr
1reaction
neo125874commented, Aug 12, 2021

@yqchilde found the problem, just put the whole easyocr lib to dist folder; it just cause of the pyinstaller didn’t move the import module & anything you need in the project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Program Exe is not running after packaging it with ...
It doesn't show any errors, it just opens command prompt and closes it immediately and doesn't run the program. However the program runs...
Read more >
When Things Go Wrong — PyInstaller 5.7.0 documentation
When you run the bundled app and it terminates with an ImportError, that is the time to examine the warning file. Then see...
Read more >
Pyinstaller: Module not found when running .exe when ...
I am using Windows10, Python 3.8 and PyInstaller 3.6. Having read that Pyinstaller is not supported under 3.8, I also reproduced the problem...
Read more >
Packaging PyQt5 applications for Windows, with PyInstaller ...
There is not much fun in creating your own desktop applications if ... You can now run the following command to run the...
Read more >
Problems with Pyinstaller & and Common Fixes - YouTube
uite error prone, and many people have run into alot of constant errors and problems while using Pyinstaller. This Video was created for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found