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

Can't find the training_data in the Temp\\_MEI167922 folder[Bug] #102

Open
huochequan opened this issue Sep 14, 2023 · 2 comments
Open

Can't find the training_data in the Temp\\_MEI167922 folder[Bug] #102

huochequan opened this issue Sep 14, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@huochequan
Copy link

Describe the bug
A clear and concise description of what the bug is.
Can't find the training_data in the Temp\_MEI167922 folder

To Reproduce
Steps to reproduce the behavior:
PyInstaller: 4.3
Python: 3.9.5
Platform: Windows-10-10.0.22621-SP0

Expected behavior
A clear and concise description of what you expected to happen.
File "amazoncaptcha\solver.py", line 68, in init
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'C:\Users\Matt\AppData\Local\Temp\_MEI167922\amazoncaptcha\training_data'

Desktop (please complete the following information):

  • OS: Windows11
  • Browser: Chrome

Additional context
Add any other context about the problem here.
在pycharm运行的时候,是可以正常识别验证码的。
但用了pyinstaller 打包了exe文件,运行的时候临时文件夹找不到amazoncaptcha文件夹。

打包代码:pyinstaller -F "D:\Code\picshot\Picshot_amazon.py"

运行代码:
import amazoncaptcha
solution = amazoncaptcha.AmazonCaptcha(captcha.png).solve(keep_logs=True)

@huochequan huochequan added the bug Something isn't working label Sep 14, 2023
Copy link

stale bot commented Dec 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 15, 2023
@khushhalLatif
Copy link

Just try running like that
pyinstaller --collect-data "amazoncaptcha" script.py

@stale stale bot removed the wontfix This will not be worked on label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants