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

not installed on OSX Monterey #186

Open
r3dhat22 opened this issue Dec 1, 2021 · 8 comments
Open

not installed on OSX Monterey #186

r3dhat22 opened this issue Dec 1, 2021 · 8 comments

Comments

@r3dhat22
Copy link

r3dhat22 commented Dec 1, 2021

==> python3 -m venv --system-site-packages /usr/local/Cellar/virt-manager/3.2.0_3/libexec
==> /usr/local/Cellar/virt-manager/3.2.0_3/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/virt-manager--libvirt-python-20211201-89010-19flg8r
Last 15 lines from /Users/redhat/Library/Logs/Homebrew/virt-manager/02.pip:
running install
/usr/local/Cellar/virt-manager/3.2.0_3/libexec/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/pkg-config --print-errors --atleast-version=0.9.11 libvirt
/usr/local/Cellar/virt-manager/3.2.0_3/libexec/bin/python3.9 generator.py libvirt /usr/local/Cellar/libvirt/7.9.0/share/libvirt/api/libvirt-api.xml
Found 492 functions in /usr/local/Cellar/libvirt/7.9.0/share/libvirt/api/libvirt-api.xml
Found 0 functions in libvirt-override-api.xml
Generated 402 wrapper functions
Missing type converters:
int *:1
ERROR: failed virNodeDeviceGetAutostart
error: command '/usr/local/Cellar/virt-manager/3.2.0_3/libexec/bin/python3.9' failed with exit code 1
Running setup.py install for libvirt-python: finished with status 'error'
ERROR: Command errored out with exit status 1: /usr/local/Cellar/virt-manager/3.2.0_3/libexec/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/virt-manager--libvirt-python-20211201-89010-19flg8r/libvirt-python-7.3.0/setup.py'"'"'; file='"'"'/private/tmp/virt-manager--libvirt-python-20211201-89010-19flg8r/libvirt-python-7.3.0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-kb1nxawk/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/virt-manager/3.2.0_3/libexec/include/site/python3.9/libvirt-python Check the logs for full command output.

@wkoszek
Copy link

wkoszek commented Dec 4, 2021

Big Sur failure on Macbook Air M1:

==> Installing jeffreywildman/virt-manager/virt-manager
==> Patching
==> python3 -m venv --system-site-packages /opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec
==> /opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/virt-manager--libvirt-python-20211204-90852-1u81zwt/libvirt-python-6.
Last 15 lines from /Users/wk/Library/Logs/Homebrew/virt-manager/02.pip:
    /opt/homebrew/Library/Homebrew/shims/mac/super/pkg-config --print-errors --atleast-version=0.9.11 libvirt
    /opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9 generator.py libvirt /opt/homebrew/Cellar/libvirt/7.9.0/share/libvirt/api/libvirt-api.xml
    Found 492 functions in /opt/homebrew/Cellar/libvirt/7.9.0/share/libvirt/api/libvirt-api.xml
    Found 0 functions in libvirt-override-api.xml
    Generated 401 wrapper functions
    Missing type converters:
    char ***:1
    int *:1
    ERROR: failed virDomainGetMessages
    ERROR: failed virNodeDeviceGetAutostart
    error: command '/opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9' failed with exit code 1
    Running setup.py install for libvirt-python: finished with status 'error'
ERROR: Command errored out with exit status 1: /opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-ds16snm9/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-ds16snm9/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-gwp7weyu/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/include/site/python3.9/libvirt-python Check the logs for full command output.
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9 -m pip install --upgrade pip' command.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/jeffreywildman/homebrew-virt-manager/issues

These open issues may also help:
virt-manager installation error https://github.com/jeffreywildman/homebrew-virt-manager/issues/184
virt-manager crashed when opening a VM on remote host https://github.com/jeffreywildman/homebrew-virt-manager/issues/180
virt-manager: command not found https://github.com/jeffreywildman/homebrew-virt-manager/issues/177
bump virt-manager/view-viewer and deps https://github.com/jeffreywildman/homebrew-virt-manager/pull/166
virt-manager: command not found https://github.com/jeffreywildman/homebrew-virt-manager/issues/169
virt-manager broken on Big Sur after minor update https://github.com/jeffreywildman/homebrew-virt-manager/issues/170
Error installing virt-manager https://github.com/jeffreywildman/homebrew-virt-manager/issues/145
osx virt-manager console screen is black https://github.com/jeffreywildman/homebrew-virt-manager/issues/113
Assertion Error When Running Virt-Manager on MacOS BigSur https://github.com/jeffreywildman/homebrew-virt-manager/issues/174
Virt-manager wont build. Update to libvirt-python https://github.com/jeffreywildman/homebrew-virt-manager/pull/171
cannot install virt-manager, error with python version despite having python 3.9 installed https://github.com/jeffreywildman/homebrew-virt-manager/issues/172
virt-manager crashing with Python quit unexpectedly while using the libgdk-3.0.dylib https://github.com/jeffreywildman/homebrew-virt-manager/issues/62

@wkoszek
Copy link

wkoszek commented Dec 4, 2021

I tried workarounds from #58 and they didn't work for me:

==> Installing virt-manager from jeffreywildman/virt-manager
==> Patching
==> python3 -m venv --system-site-packages /opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec
==> /opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/virt-manager--libvirt-python-20211204-96022-q0o19k/libvirt-python-2.3
Last 15 lines from /Users/wk/Library/Logs/Homebrew/virt-manager/02.pip:
    ERROR: failed virNetworkPortLookupByUUID
    ERROR: failed virNetworkPortLookupByUUIDString
    ERROR: failed virNetworkPortRef
    ERROR: failed virNetworkPortSetParameters
    ERROR: failed virNodeDeviceGetAutostart
    ERROR: failed virNodeGetSEVInfo
    ERROR: failed virStorageVolGetInfoFlags
    ERROR: failed virStreamRecvHole
    ERROR: failed virStreamSparseRecvAll
    ERROR: failed virStreamSparseSendAll
    error: command '/opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9' failed with exit code 1
    Running setup.py install for libvirt-python: finished with status 'error'
ERROR: Command errored out with exit status 1: /opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-1ivm8uf3/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-1ivm8uf3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-uitrftsw/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/include/site/python3.9/libvirt-python Check the logs for full command output.
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/opt/homebrew/Cellar/virt-manager/2.2.1_3/libexec/bin/python3.9 -m pip install --upgrade pip' command.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/jeffreywildman/homebrew-virt-manager/issues

These open issues may also help:
virt-manager installation error https://github.com/jeffreywildman/homebrew-virt-manager/issues/184
virt-manager crashed when opening a VM on remote host https://github.com/jeffreywildman/homebrew-virt-manager/issues/180
virt-manager: command not found https://github.com/jeffreywildman/homebrew-virt-manager/issues/177
bump virt-manager/view-viewer and deps https://github.com/jeffreywildman/homebrew-virt-manager/pull/166
virt-manager: command not found https://github.com/jeffreywildman/homebrew-virt-manager/issues/169
virt-manager broken on Big Sur after minor update https://github.com/jeffreywildman/homebrew-virt-manager/issues/170
Error installing virt-manager https://github.com/jeffreywildman/homebrew-virt-manager/issues/145
osx virt-manager console screen is black https://github.com/jeffreywildman/homebrew-virt-manager/issues/113
Assertion Error When Running Virt-Manager on MacOS BigSur https://github.com/jeffreywildman/homebrew-virt-manager/issues/174
Virt-manager wont build. Update to libvirt-python https://github.com/jeffreywildman/homebrew-virt-manager/pull/171
cannot install virt-manager, error with python version despite having python 3.9 installed https://github.com/jeffreywildman/homebrew-virt-manager/issues/172
virt-manager crashing with Python quit unexpectedly while using the libgdk-3.0.dylib https://github.com/jeffreywildman/homebrew-virt-manager/issues/62

@vanokg
Copy link

vanokg commented Dec 6, 2021

And

==> Reinstalling jeffreywildman/virt-manager/osinfo-db-tools 
==> ./configure --prefix=/usr/local/Cellar/osinfo-db-tools/1.6.0 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc
Last 15 lines from /Users/sha1tan/Library/Logs/Homebrew/osinfo-db-tools/01.configure:
checking for LIBXML... yes
checking for LIBXSLT... yes
checking for LIBARCHIVE... yes
checking for JSON_GLIB... yes
checking for LIBSOUP... no
configure: error: Package requirements (libsoup-2.4) were not met:

No package 'libsoup-2.4' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBSOUP_CFLAGS
and LIBSOUP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/jeffreywildman/homebrew-virt-manager/issues

These open issues may also help:
Error installing - osinfo-db-tools https://github.com/jeffreywildman/homebrew-virt-manager/issues/138
Error when building osinfo-db-tools-1.3.0 https://github.com/jeffreywildman/homebrew-virt-manager/issues/124

@advik-student-dev
Copy link

its possible this could be a an update issue

@advik-student-dev
Copy link

but idk anything

@advik-student-dev
Copy link

because I think this works fine on Sierra(not tried but there are tutorials in it)

@sepecat
Copy link

sepecat commented Sep 26, 2022

Regarding

No package 'libsoup-2.4' found

error installing on Monterey (and Big Sur):

it seems that something is resetting PKG_CONFIG_PATH; libsoup@2 is installed at

ls -la /usr/local/opt/libsoup@2                    1 ↵  1020  13:06:26 
lrwxr-xr-x  1 amoran  admin  28 Sep 26 12:38 /usr/local/opt/libsoup@2 -> ../Cellar/libsoup@2/2.74.2_1

ls -la /usr/local/opt/libsoup@2/lib/pkgconfig/         1021  13:12:20 
total 16
drwxr-xr-x  4 amoran  admin  128 Sep 26 12:38 .
drwxr-xr-x  8 amoran  admin  256 Nov 24  2021 ..
-r--r--r--  1 amoran  admin  457 Sep 26 12:38 libsoup-2.4.pc
-r--r--r--  1 amoran  admin  482 Sep 26 12:38 libsoup-gnome-2.4.pc

and shell env points at pkgconfig there

echo $PKG_CONFIG_PATH                                  1022  13:13:24 
/usr/local/opt/imagemagick@6/lib/pkgconfig:/usr/local/opt/libsoup@2/lib/pkgconfig

but install log shows it's looking at /usr/local/opt/libsoup which is the 3.2.0 install:

PKG_CONFIG_PATH: /usr/local/opt/pcre2/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/json-glib/lib/pkgconfig:/usr/local/opt/libb2/lib/pkgconfig:/usr/local/opt/lz4/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/zstd/lib/pkgconfig:/usr/local/opt/libarchive/lib/pkgconfig:/usr/local/opt/gmp/lib/pkgconfig:/usr/local/opt/bdw-gc/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/guile/lib/pkgconfig:/usr/local/opt/libidn2/lib/pkgconfig:/usr/local/opt/libtasn1/lib/pkgconfig:/usr/local/opt/nettle/lib/pkgconfig:/usr/local/opt/p11-kit/lib/pkgconfig:/usr/local/opt/[email protected]/lib/pkgconfig:/usr/local/opt/libevent/lib/pkgconfig:/usr/local/opt/libnghttp2/lib/pkgconfig:/usr/local/opt/unbound/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libpsl/lib/pkgconfig:/usr/local/opt/libsoup/lib/pkgconfig:/usr/local/opt/gsettings-desktop-schemas/share/pkgconfig

@sepecat
Copy link

sepecat commented Sep 29, 2022

FYI I was able to make and install by just downloading the osinfo-db-tools tarball at https://releases.pagure.org/libosinfo/osinfo-db-tools-1.6.0.tar.gz, setting the full pkconfig search path and also needed to specify header include path for libarchive:

export PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig:/usr/local/opt/libsoup@2/lib/pkgconfig:/usr/local/opt/pcre2/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/json-glib/lib/pkgconfig:/usr/local/opt/libb2/lib/pkgconfig:/usr/local/opt/lz4/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/zstd/lib/pkgconfig:/usr/local/opt/libarchive/lib/pkgconfig:/usr/local/opt/gmp/lib/pkgconfig:/usr/local/opt/bdw-gc/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/guile/lib/pkgconfig:/usr/local/opt/libidn2/lib/pkgconfig:/usr/local/opt/libtasn1/lib/pkgconfig:/usr/local/opt/nettle/lib/pkgconfig:/usr/local/opt/p11-kit/lib/pkgconfig:/usr/local/opt/[email protected]/lib/pkgconfig:/usr/local/opt/libevent/lib/pkgconfig:/usr/local/opt/libnghttp2/lib/pkgconfig:/usr/local/opt/unbound/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libpsl/lib/pkgconfig:/usr/local/opt/gsettings-desktop-schemas/share/pkgconfig
export CFLAGS="-I/usr/local/Cellar/libarchive/3.6.1/include"

After that I was able to configure and make / make install the package from the tarball, though this won't help for automated installs from brew since the pkgconfig path doesn't appear to be kept from the calling shell.

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

No branches or pull requests

5 participants