displaycal-py3
displaycal-py3 copied to clipboard
Cannot install on Monterey M1Max
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LIBS environment variable.
Example: ./configure LIBS=β-L/usr/non-standard-path/python/libβ
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
It seems that you are creating the virtual env with Python 3.10 but running the install script with Python 2.7.
Try running the following:
python3.10 -m venv displaycal_venv
It seems that you are creating the virtual env with Python 3.10 but running the install script with Python 2.7.
Try running the following:
python3.10 -m venv displaycal_venv
Thank you for the reply. But at what step should I type that? I've tried to run this script before installing but have got the same error
Right after you run:
git clone https://github.com/eoyilmaz/displaycal-py3
Use the python3.10
and not python
to create the virtual environment:
python3.10 -m venv displaycal_venv
And after:
source ./displaycal_venv/bin/activate
Now, you can use python
instead of python3.10
.
Thank you again. Did everything as you wrote but still not there. lthough probably I have another problem now
The Log is below:
Last login: Thu Aug 4 16:56:04 on console
marioav@MAV16M1Mx ~ % git clone github.com/eoyilmaz/displaycal-py3
fatal: repository 'github.com/eoyilmaz/displaycal-py3' does not exist
marioav@MAV16M1Mx ~ % brew install pkg-config dbus glib gtk+3
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
berkeley-db@5 gcem lucky-commit pymupdf
cargo-crev git-delete-merged-branches mesheryctl sgr
cpp-httplib git-sync onlykey-agent smap
create-api [email protected] open62541 snapcast
enex2notion gum pint svt-av1
gaze ksh93 pkcs11-tools x86_64-linux-gnu-binutils
gcc@11 libeatmydata prr
==> New Casks
duckduckgo gittyup imhex iqmol livebook v2ray-unofficial yubihsm2-sdk
You have 7 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
Warning: pkg-config 0.29.2_3 is already installed and up-to-date.
To reinstall 0.29.2_3, run:
brew reinstall pkg-config
Warning: dbus 1.14.0 is already installed and up-to-date.
To reinstall 1.14.0, run:
brew reinstall dbus
Warning: glib 2.72.3 is already installed and up-to-date.
To reinstall 2.72.3, run:
brew reinstall glib
Warning: gtk+3 3.24.34 is already installed and up-to-date.
To reinstall 3.24.34, run:
brew reinstall gtk+3
marioav@MAV16M1Mx ~ % brew upgrade
==> Upgrading 7 outdated packages:
libtiff 4.4.0 -> 4.4.0_1
gdk-pixbuf 2.42.8 -> 2.42.8_1
harfbuzz 5.0.1 -> 5.1.0
sqlite 3.39.1 -> 3.39.2
xz 5.2.5 -> 5.2.5_1
ca-certificates 2022-04-26 -> 2022-07-19_1
[email protected] 3.9.13_1 -> 3.9.13_2
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.39.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:a8b1ae9f882330df5e521dd95856b442e19c163e55a4da23b3fc42915df7
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a8b1ae9f882330df5e521dd95856b442e19c163e55a4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jpeg-turbo/manifests/2.1.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jpeg-turbo/blobs/sha256:0fe5fd23465784fe56f97c29589a72eacc21f8fb75f8c84e69da7246
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:0fe5fd23465784fe56f97c29589a72eacc21f8fb75f8
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libtiff/manifests/4.4.0_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libtiff/blobs/sha256:15921731edaae9d13ca572f3e2b58e07ca6f90429cc5f1bdff56aaf061a
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:15921731edaae9d13ca572f3e2b58e07ca6f90429cc5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdk-pixbuf/manifests/2.42.8_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdk-pixbuf/blobs/sha256:adb33eafb55f4e85e8087c7ef6f00d289b4a7e7f39db833fa0333ef0
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:adb33eafb55f4e85e8087c7ef6f00d289b4a7e7f39db
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2022-07-19_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:9e0df163364a5ae07f3ee2cf39083cd74bcb38eeb5250b706e1
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:9e0df163364a5ae07f3ee2cf39083cd74bcb38eeb525
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xz/manifests/5.2.5_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xz/blobs/sha256:b2f0ff235854d96ba7e8ffce77bb21e0d1d179aca9ffdb8f7233b2d57e96b8dd
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:b2f0ff235854d96ba7e8ffce77bb21e0d1d179aca9ff
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.13_2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:90d717c629b7c67ff25922f298b65371f125b719dede8f7870ecc2e6
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:90d717c629b7c67ff25922f298b65371f125b719dede
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/manifests/5.1.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/blobs/sha256:711052dcdc95465124bb0165d602c406464c5c9cc523ac8504b5e6c64b
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:711052dcdc95465124bb0165d602c406464c5c9cc523
######################################################################## 100.0%
==> Upgrading sqlite
3.39.1 -> 3.39.2
==> Pouring sqlite--3.39.2.arm64_monterey.bottle.tar.gz
πΊ /opt/homebrew/Cellar/sqlite/3.39.2: 11 files, 4.4MB
==> Running `brew cleanup sqlite`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /opt/homebrew/Cellar/sqlite/3.39.1... (11 files, 4.4MB)
Removing: /Users/marioav/Library/Caches/Homebrew/sqlite--3.39.1... (2MB)
==> Upgrading libtiff
4.4.0 -> 4.4.0_1
==> Installing dependencies for libtiff: jpeg-turbo
==> Installing libtiff dependency: jpeg-turbo
==> Pouring jpeg-turbo--2.1.3.arm64_monterey.bottle.tar.gz
πΊ /opt/homebrew/Cellar/jpeg-turbo/2.1.3: 44 files, 2.5MB
==> Installing libtiff
==> Pouring libtiff--4.4.0_1.arm64_monterey.bottle.tar.gz
πΊ /opt/homebrew/Cellar/libtiff/4.4.0_1: 249 files, 4.8MB
==> Running `brew cleanup libtiff`...
Removing: /opt/homebrew/Cellar/libtiff/4.4.0... (249 files, 4.8MB)
==> Upgrading gdk-pixbuf
2.42.8 -> 2.42.8_1
==> Pouring gdk-pixbuf--2.42.8_1.arm64_monterey.bottle.tar.gz
==> /opt/homebrew/Cellar/gdk-pixbuf/2.42.8_1/bin/gdk-pixbuf-query-loaders --update-cache
πΊ /opt/homebrew/Cellar/gdk-pixbuf/2.42.8_1: 147 files, 4.0MB
==> Running `brew cleanup gdk-pixbuf`...
Removing: /opt/homebrew/Cellar/gdk-pixbuf/2.42.8... (147 files, 4.0MB)
==> Upgrading ca-certificates
2022-04-26 -> 2022-07-19_1
==> Pouring ca-certificates--2022-07-19_1.all.bottle.tar.gz
==> Regenerating CA certificate bundle from keychain, this may take a while...
πΊ /opt/homebrew/Cellar/ca-certificates/2022-07-19_1: 3 files, 222.6KB
==> Running `brew cleanup ca-certificates`...
Removing: /opt/homebrew/Cellar/ca-certificates/2022-04-26... (3 files, 215.6KB)
Removing: /Users/marioav/Library/Caches/Homebrew/ca-certificates--2022-04-26... (121.8KB)
==> Upgrading xz
5.2.5 -> 5.2.5_1
==> Pouring xz--5.2.5_1.arm64_monterey.bottle.tar.gz
πΊ /opt/homebrew/Cellar/xz/5.2.5_1: 95 files, 1.4MB
==> Running `brew cleanup xz`...
Removing: /opt/homebrew/Cellar/xz/5.2.5... (95 files, 1.4MB)
==> Upgrading [email protected]
3.9.13_1 -> 3.9.13_2
==> Pouring [email protected]_2.arm64_monterey.bottle.tar.gz
==> /opt/homebrew/Cellar/[email protected]/3.9.13_2/bin/python3 -m ensurepip
==> /opt/homebrew/Cellar/[email protected]/3.9.13_2/bin/python3 -m pip install -v --no-deps --no-index --upgrade --isolated --target=/op
πΊ /opt/homebrew/Cellar/[email protected]/3.9.13_2: 3,080 files, 57.4MB
==> Running `brew cleanup [email protected]`...
Removing: /opt/homebrew/Cellar/[email protected]/3.9.13_1... (3,088 files, 57.6MB)
==> Upgrading harfbuzz
5.0.1 -> 5.1.0
==> Pouring harfbuzz--5.1.0.arm64_monterey.bottle.tar.gz
πΊ /opt/homebrew/Cellar/harfbuzz/5.1.0: 68 files, 8.6MB
==> Running `brew cleanup harfbuzz`...
Removing: /opt/homebrew/Cellar/harfbuzz/5.0.1... (68 files, 8.6MB)
Removing: /Users/marioav/Library/Caches/Homebrew/harfbuzz--5.0.1... (2MB)
marioav@MAV16M1Mx ~ % git clone https://github.com/eoyilmaz/displaycal-py3
Cloning into 'displaycal-py3'...
remote: Enumerating objects: 38257, done.
remote: Counting objects: 100% (2632/2632), done.
remote: Compressing objects: 100% (785/785), done.
remote: Total 38257 (delta 1845), reused 2496 (delta 1767), pack-reused 35625
Receiving objects: 100% (38257/38257), 56.70 MiB | 21.86 MiB/s, done.
Resolving deltas: 100% (28598/28598), done.
marioav@MAV16M1Mx ~ % python3.10 -m venv displaycal_venv
marioav@MAV16M1Mx ~ % source ./displaycal_venv/bin/activate
(displaycal_venv) marioav@MAV16M1Mx ~ % pip install -r requirements.txt
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/Users/marioav/displaycal_venv/bin/python3.10 -m pip install --upgrade pip' command.
(displaycal_venv) marioav@MAV16M1Mx ~ % python -m build
/Users/marioav/displaycal_venv/bin/python: No module named build
(displaycal_venv) marioav@MAV16M1Mx ~ % pip install dist/DisplayCAL-3.9.*.whl
zsh: no matches found: dist/DisplayCAL-3.9.*.whl
(displaycal_venv) marioav@MAV16M1Mx ~ % pip install -r requirements.txt
python -m build
pip install dist/DisplayCAL-3.9.*.whl
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/Users/marioav/displaycal_venv/bin/python3.10 -m pip install --upgrade pip' command.
/Users/marioav/displaycal_venv/bin/python: No module named build
zsh: no matches found: dist/DisplayCAL-3.9.*.whl
(displaycal_venv) marioav@MAV16M1Mx ~ % displaycal
zsh: command not found: displaycal
(displaycal_venv) marioav@MAV16M1Mx ~ % cd ./displaycal-py3/
(displaycal_venv) marioav@MAV16M1Mx displaycal-py3 % pip install -r requirements.txt
Collecting build
Using cached build-0.8.0-py3-none-any.whl (17 kB)
Collecting certifi
Using cached certifi-2022.6.15-py3-none-any.whl (160 kB)
Collecting dbus-python
Using cached dbus-python-1.2.18.tar.gz (578 kB)
Preparing metadata (setup.py) ... done
Collecting distro
Using cached distro-1.7.0-py3-none-any.whl (20 kB)
Collecting numpy
Using cached numpy-1.23.1-cp310-cp310-macosx_11_0_arm64.whl (13.3 MB)
Collecting Pillow
Using cached Pillow-9.2.0-cp310-cp310-macosx_11_0_arm64.whl (2.8 MB)
Collecting PyChromecast
Using cached PyChromecast-12.1.4-py2.py3-none-any.whl (62 kB)
Collecting Send2Trash
Using cached Send2Trash-1.8.0-py3-none-any.whl (18 kB)
Collecting wxPython>=4.1.1
Downloading wxPython-4.2.0-cp310-cp310-macosx_10_10_universal2.whl (31.4 MB)
ββββββββββββββββββββββββββββββββββββββββ 31.4/31.4 MB 57.0 MB/s eta 0:00:00
Collecting zeroconf
Downloading zeroconf-0.39.0-py3-none-any.whl (106 kB)
ββββββββββββββββββββββββββββββββββββββββ 106.4/106.4 KB 4.7 MB/s eta 0:00:00
Collecting tomli>=1.0.0
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting pep517>=0.9.1
Downloading pep517-0.13.0-py3-none-any.whl (18 kB)
Collecting packaging>=19.0
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting casttube>=0.2.0
Using cached casttube-0.2.1-py3-none-any.whl (6.5 kB)
Collecting protobuf<4,>=3.19.1
Using cached protobuf-3.20.1-cp310-cp310-macosx_10_9_universal2.whl (962 kB)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting ifaddr>=0.1.7
Using cached ifaddr-0.2.0-py3-none-any.whl (12 kB)
Collecting async-timeout>=4.0.1
Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting requests
Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.11-py2.py3-none-any.whl (139 kB)
Collecting idna<4,>=2.5
Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting charset-normalizer<3,>=2
Using cached charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Using legacy 'setup.py install' for dbus-python, since package 'wheel' is not installed.
Installing collected packages: Send2Trash, ifaddr, dbus-python, urllib3, tomli, six, pyparsing, protobuf, Pillow, numpy, idna, distro, charset-normalizer, certifi, async-timeout, zeroconf, wxPython, requests, pep517, packaging, casttube, build, PyChromecast
Running setup.py install for dbus-python ... error
error: subprocess-exited-with-error
Γ Running setup.py install for dbus-python did not run successfully.
β exit code: 1
β°β> [165 lines of output]
running install
running build
creating /private/var/folders/ht/ss5bsjvj58s4zff80cwjdtp80000gn/T/pip-install-2l1l3meu/dbus-python_2c00cf3728db4d5bb9d448d153efc0bf/build
creating /private/var/folders/ht/ss5bsjvj58s4zff80cwjdtp80000gn/T/pip-install-2l1l3meu/dbus-python_2c00cf3728db4d5bb9d448d153efc0bf/build/temp.macosx-10.9-universal2-3.10
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /private/var/folders/ht/ss5bsjvj58s4zff80cwjdtp80000gn/T/pip-install-2l1l3meu/dbus-python_2c00cf3728db4d5bb9d448d153efc0bf/build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether UID '501' is supported by ustar format... yes
checking whether GID '20' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of gcc... gcc3
checking build system type... arm-apple-darwin21.6.0
checking host system type... arm-apple-darwin21.6.0
checking for native Windows host... no
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert arm-apple-darwin21.6.0 file names to arm-apple-darwin21.6.0 format... func_convert_file_noop
checking how to convert arm-apple-darwin21.6.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin21.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for inline... inline
checking for gawk... (cached) awk
checking for python... /Users/marioav/displaycal_venv/bin/python3.10
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python >= '2.7'... yes
checking for the distutils Python package... yes
checking for Python include path... <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
-I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10
checking for Python library path... <stdin>:4: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<stdin>:4: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<stdin>:3: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<stdin>:3: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<stdin>:2: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<stdin>:2: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
-L/Library/Frameworks/Python.framework/Versions/3.10/lib -lpython3.10
checking for Python site-packages path... <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
/Users/marioav/displaycal_venv/lib/python3.10/site-packages
checking python extra libraries... <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
-ldl -framework CoreFoundation
checking python extra linking flags... <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
-Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.10/Python
checking consistency of all components of python development environment... no
configure: error: in `/private/var/folders/ht/ss5bsjvj58s4zff80cwjdtp80000gn/T/pip-install-2l1l3meu/dbus-python_2c00cf3728db4d5bb9d448d153efc0bf/build/temp.macosx-10.9-universal2-3.10':
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LIBS environment variable.
Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
============================================================================
See `config.log' for more details
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/ht/ss5bsjvj58s4zff80cwjdtp80000gn/T/pip-install-2l1l3meu/dbus-python_2c00cf3728db4d5bb9d448d153efc0bf/setup.py", line 85, in <module>
setup(
File "/Users/marioav/displaycal_venv/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/marioav/displaycal_venv/lib/python3.10/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/command/install.py", line 568, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/ht/ss5bsjvj58s4zff80cwjdtp80000gn/T/pip-install-2l1l3meu/dbus-python_2c00cf3728db4d5bb9d448d153efc0bf/setup.py", line 56, in run
subprocess.check_call([
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/private/var/folders/ht/ss5bsjvj58s4zff80cwjdtp80000gn/T/pip-install-2l1l3meu/dbus-python_2c00cf3728db4d5bb9d448d153efc0bf/configure', '--disable-maintainer-mode', 'PYTHON=/Users/marioav/displaycal_venv/bin/python3.10', '--prefix=/private/var/folders/ht/ss5bsjvj58s4zff80cwjdtp80000gn/T/pip-install-2l1l3meu/dbus-python_2c00cf3728db4d5bb9d448d153efc0bf/build/temp.macosx-10.9-universal2-3.10/prefix']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
Γ Encountered error while trying to install package.
β°β> dbus-python
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/Users/marioav/displaycal_venv/bin/python3.10 -m pip install --upgrade pip' command.
(displaycal_venv) marioav@MAV16M1Mx displaycal-py3 % python -m build
/Users/marioav/displaycal_venv/bin/python: No module named build
(displaycal_venv) marioav@MAV16M1Mx displaycal-py3 % pip install dist/DisplayCAL-3.9.*.whl
zsh: no matches found: dist/DisplayCAL-3.9.*.whl
(displaycal_venv) marioav@MAV16M1Mx displaycal-py3 % displaycal
zsh: command not found: displaycal
(displaycal_venv) marioav@MAV16M1Mx displaycal-py3 % /Users/marioav/displaycal_venv/bin/python3.10 -m pip install --upgrade pip
Requirement already satisfied: pip in /Users/marioav/displaycal_venv/lib/python3.10/site-packages (22.0.4)
Collecting pip
Downloading pip-22.2.2-py3-none-any.whl (2.0 MB)
ββββββββββββββββββββββββββββββββββββββββ 2.0/2.0 MB 18.6 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.0.4
Uninstalling pip-22.0.4:
Successfully uninstalled pip-22.0.4
Successfully installed pip-22.2.2
(displaycal_venv) marioav@MAV16M1Mx displaycal-py3 %
You are not following the instructions correctly:
Right after the following lines:
marioav@MAV16M1Mx ~ % python3.10 -m venv displaycal_venv
marioav@MAV16M1Mx ~ % source ./displaycal_venv/bin/activate
You need to change the directory to displaycal-py3
:
cd displaycal-py3
and then run:
pip install -r requirements.txt
Because you didn't change the directory to displaycal-py3
you got the following error:
(displaycal_venv) marioav@MAV16M1Mx ~ % pip install -r requirements.txt
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
EDIT: Aah I see you later on changed to the correct directory, let me look in to it a little more.
Can you try running:
pip install wheel
before running:
pip install -r requirements.txt
and then run the test of the commands again?
Thank you for your patience. Made everythong as you told me to. Nothing changes. It always points me that there is something wrong with the path Python installed in. Maybe it is the key? How to find where Python installed on my mac Terminal Saved Output.txt ?
I'm not very familiar with MacOS but you can find where the python
executable is by running which python
(this should work on MacOS too).
Oh I see that you installed whell to you system python, you should be installing it to the virtual env, let me write down all the commands you should run from scratch:
cd ~
brew install pkg-config dbus glib gtk+3
git clone https://github.com/eoyilmaz/displaycal-py3
python3.10 -m venv ./displaycal_venv
source ./displaycal_venv/bin/activate
cd ./displaycal-py3/
pip install wheel
pip install -r requirements.txt
python -m build
pip install dist/DisplayCAL-3.9.*.whl
displaycal
Somehow I managed to run it on my other mac with Catalina. It was not a breeze but runs. But Monterey gives me those errors with dbus installation and I stuck on pip install -r requirements.txt
This should be related to #123
I think the key was to use pip-21.3.1
run the following:
cd ~
brew install pkg-config dbus glib gtk+3
git clone https://github.com/eoyilmaz/displaycal-py3
python3.10 -m venv ./displaycal_venv
source ./displaycal_venv/bin/activate
cd ./displaycal-py3/
pip install pip==21.3.1
pip install -r requirements.txt
python -m build
pip install dist/DisplayCAL-3.9.*.whl
displaycal
Looks like it made thingsa even worse
Is there a way to run the script with Visual Code studio?
Snap, I think dbus
and Python 3.10 is not loving each other very much.
Is there a way to run the script with Visual Code studio?
There should be, but you would probably hit to the same walls again. DBus needs to be installed anyway.
I have native python 3.8 on Mac as well
Hi! I followed this and got stuck at the same point as @avemario. Any new tips? Mac Studio Ultra Monterey.
Can you guys check the suggestion in #162
Can you guys check the suggestion in #162
tried. no changes. same thing here.
but actually I do not know how to follow those steps correctly
Create the virtualenv switch to develop branch Change the dbus-python dependency in requirements.txt and setup.cfg to dbus-next Build as per README instructions displaycal command now properly launches DisplayCal
if you coyld ecplain it step by step it would be really kind of you. thanks in advance.
This is above my head also :-)/RobertSkickat frΓ₯n min iPhone21 sep. 2022 kl. 20:33 skrev avemario @.***>:ο»Ώ if you coyld ecplain it step by step it would be really kind of you. thanks in advance.
βReply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
@avemario and @hagan66
Run the following:
git clone https://github.com/eoyilmaz/displaycal-py3
python -m venv displaycal_venv
source ./displaycal_venv/bin/activate
cd ./displaycal-py3/
git checkout develop
Then open the requirements.txt
with a text editor, the suggestion says replace dbus-python
with dbus-next
but I think you should completely remove it, save the file, and then run the following:
pip install -r requirements.txt
python -m build
pip install dist/DisplayCAL-3.9.*.whl
./DisplayCAL.pyw
I followed the instructions above; there is one additional step required to make it work - dbus-python
needs to be removed (or perhaps replaced with dbus-next
) from setup.cfg
. Otherwise it fails during the pip install dist/DisplayCAL-3.9.*.whl
step.
Now I managed to build, install, and run this fork on M1 Pro + Ventura. Thanks!
THANKS! It worked!
the only question - is there any way to run displaycal with a general command if it installed already? if so, could you hit me with an idea how to do that, please? thanks
Not sure of the best way. After the initial steps, I can just do:
-
source ./displaycal_venv/bin/activate
-
displaycal
Just tried that and have got this messafge
zsh: command not found: displaycal (displaycal_venv) mymac@MAcm1max ~ %
Could you repeat all steps you do after you shut down the app and then gonna run it again to perform new calibration?
Is it necessary to start all the code stuff from the beginning?
You do not need to re-run all the steps every time you want to open it. I think that my fish shell somehow autopicks up displaycal
command. Anyway, this should work instead:
-
source ./displaycal_venv/bin/activate
-
cd ./displaycal-py3/
-
./DisplayCAL.pyw
You do not need to re-run all the steps every time you want to open it. I think that my fish shell somehow autopicks up
displaycal
command. Anyway, this should work instead:
source ./displaycal_venv/bin/activate
cd ./displaycal-py3/
./DisplayCAL.pyw
This one works! thank you again! you made me happy!
Finally I got a Macbook Pro with M1 Pro chip and I see that firstly we don't need to install dbus
at all and it seems some of the packages listed in the brew
comand are also not needed. I'm updating the requirements.txt
so that the dbus
will only be installed on Linux. As soon as I get a proper USB Type-C to Type-A dongle I'll test the rest of the application. But for now I can't connect my probes.