benchbot icon indicating copy to clipboard operation
benchbot copied to clipboard

Benchbot PIL (with ImageTk) install script fix not working inside conda env

Open david2611 opened this issue 2 years ago • 1 comments

Most recent install of BenchBot within conda environment could not get past the check for PIL (with ImageTK) without manual intervention.

Current command within install script is sudo apt install -y python3-pil python3-pil.imagetk but this does not effect PIL being installed within conda environment even when environment is active.

Result would be allowing the fix command to run then install is restarted but the check still fails as PIL is not available when running import of ImageTk within conda python environment.

Had to stop installation script, perform my own conda install of PIL (conda install pillow) to get past install blocker.

Printed issue made it clear what was wrong but this is still an unideal user experience. Tagging as enhancement to be worked on.

david2611 avatar Jan 18 '23 23:01 david2611

Issue we run into here is the fix will install in the system Python area and only work using the system Python environment or virtual environments that link in system packages (e.g. using --system-site-packages with venv).

Obviously Conda very much doesn't want you linking into what's on the system :stuck_out_tongue:

Open for a better fix here, but it's pretty hard with these packages that need to tie into the system to work (e.g. I don't think pip install instead of apt install will work).

btalb avatar Feb 17 '23 02:02 btalb