WithSecureLabs / captcha22

CAPTCHA22 is a toolset for building, and training, CAPTCHA cracking models using neural networks.
https://labs.f-secure.com/blog/releasing-the-captcha-cracken/
MIT License
327 stars 40 forks source link

Some problem #3

Closed vladverbiy closed 4 years ago

vladverbiy commented 4 years ago

1

TinusGreen commented 4 years ago

Hi vladverbiy,

This seems to be an issue with the virtual environments.

See here: https://github.com/pypa/pipenv/issues/3824 and https://github.com/pypa/virtualenv/issues/228

The virtualenv creates its own copies of the captcha22 packages which is why it can't find the main sitepackages that it needs.

Sitepackages are inherently used in captcha22. This is used to find and import all relevant captcha22 scripts into the primary script. Also since the virtualenv copies the scripts to a random location each time, it is not possible to hard code a solution.

Could you please try to run the script without a virtualenv or attempt the fixes mentioned in the above issues?