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

will work also inside virtualenv #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wgoetz
Copy link

@wgoetz wgoetz commented Jun 13, 2022

The absolute python3 path will lead to ModuleNotFoundError when used inside a virtualenv.

Setup virtualenv:
➜ ~ python3 -mvenv virtualenv/darktable
➜ ~ source virtualenv/darktable/bin/activate
(darktable) ➜ ~ pip install scipy six pillow imageio colour-science packaging

Run tests:
(darktable) ➜ integration git:(5b47e86) ✗ ./run.sh
Test 0000-nop
Image mire1.cr2
CPU & GPU version differ by 65133 pixels
CPU vs. GPU report :
----------------------------------
Max dE : 19.23852
Avg dE : 0.02056
Std dE : 0.17950
...

Using ubuntu20.04: Python 3.8.10

(darktable) ➜ ~ pip freeze
colour-science==0.4.1
imageio==2.19.3
numpy==1.22.4
packaging==21.3
Pillow==9.1.1
pyparsing==3.0.9
scipy==1.8.1
six==1.16.0
typing-extensions==4.2.0

(darktable) ➜ ~ which python3
/home/goetz/virtualenv/darktable/bin/python3

The absolute python3 path will lead to ModuleNotFoundError when used inside a virtualenv.

Setup virtualenv:
➜  ~ python3 -mvenv virtualenv/darktable
➜  ~ source virtualenv/darktable/bin/activate
(darktable) ➜  ~ pip install scipy six pillow imageio colour-science packaging

Run tests:
(darktable) ➜  integration git:(5b47e86) ✗ ./run.sh 
Test 0000-nop
      Image mire1.cr2
      CPU & GPU version differ by 65133 pixels
      CPU vs. GPU report :
      ----------------------------------
      Max dE                   : 19.23852
      Avg dE                   : 0.02056
      Std dE                   : 0.17950
...

Using ubuntu20.04: Python 3.8.10

(darktable) ➜  ~ pip freeze
colour-science==0.4.1
imageio==2.19.3
numpy==1.22.4
packaging==21.3
Pillow==9.1.1
pyparsing==3.0.9
scipy==1.8.1
six==1.16.0
typing-extensions==4.2.0

(darktable) ➜  ~ which python3
/home/goetz/virtualenv/darktable/bin/python3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant