amazoncaptcha icon indicating copy to clipboard operation
amazoncaptcha copied to clipboard

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

Open huochequan opened this issue 2 years ago • 2 comments

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 avatar Sep 14 '23 08:09 huochequan

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[bot] avatar Dec 15 '23 06:12 stale[bot]

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

khushhalLatif avatar Feb 01 '24 18:02 khushhalLatif