The custom tesserocr-2.5.2 wheel was compiled on a specific machine against DLL versions that do not match a fresh conda-forge installation. This caused persistent ImportError: DLL load failed regardless of PATH or LoadLibraryExW approach. conda-forge's tesserocr package is compiled against the exact same conda-forge tesseract/leptonica binaries, so all DLL dependencies are automatically satisfied within the conda environment — no manual DLL path manipulation needed. Changes: - environment.yml: add tesserocr + tesseract as conda-forge packages, remove leptonica pin (no longer needed), remove custom wheel from pip - install.bat: replace wheel force-reinstall with pip uninstall cleanup - src/*.py: simplify DLL fix to os.add_dll_directory only Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
38 lines
773 B
YAML
38 lines
773 B
YAML
name: botty
|
|
channels:
|
|
- conda-forge
|
|
dependencies:
|
|
- python=3.10
|
|
- pywin32
|
|
- pip
|
|
- tesserocr # conda-forge build — compiled against conda-forge tesseract/leptonica,
|
|
# so all DLL deps are resolved automatically within the env
|
|
- tesseract # version chosen by conda to match tesserocr
|
|
- pkg-config
|
|
- rapidfuzz=2.15.1
|
|
- pip:
|
|
- pyinstaller
|
|
- opencv-python==4.5.5.64
|
|
- transitions
|
|
- mss==7.0.1
|
|
- numpy==1.26.4
|
|
- mouse
|
|
- keyboard
|
|
- beautifultable
|
|
- pytweening
|
|
- requests
|
|
- coverage
|
|
- pytest
|
|
- pytest-env
|
|
- pytest-mock
|
|
- pyparsing
|
|
- graphviz
|
|
- psutil
|
|
- cryptography
|
|
- pillow
|
|
- discord.py
|
|
- parse
|
|
- typing_extensions
|
|
- colorama
|
|
- dataclasses-json
|