Skip to content

Instantly share code, notes, and snippets.

@jevy
Created February 8, 2022 01:04
Show Gist options
  • Save jevy/46e440708780154d6409d8a5a759f688 to your computer and use it in GitHub Desktop.
Save jevy/46e440708780154d6409d8a5a759f688 to your computer and use it in GitHub Desktop.
python dbus error
[nix-shell:~/code/personal/gnome-calendar-applet]$ poetry install
Installing dependencies from lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing dbus-python (1.2.18): Failed
EnvCommandError
Command ['/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/pip', 'install', '--no-deps', 'file:///home/jevin/.cache/pypoetry/artifacts/08/8e/4b/533a9277c305a960780320ddcac1c3ed323a213a78fcd0434298fabb72/dbus-python-1.2.18.tar.gz'] errored with the following return code 1, and output:
Processing /home/jevin/.cache/pypoetry/artifacts/08/8e/4b/533a9277c305a960780320ddcac1c3ed323a213a78fcd0434298fabb72/dbus-python-1.2.18.tar.gz
Building wheels for collected packages: dbus-python
Building wheel for dbus-python (setup.py): started
Building wheel for dbus-python (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/run/user/1000/pip-req-build-zyrxyf7t/setup.py'"'"'; __file__='"'"'/run/user/1000/pip-req-build-zyrxyf7t/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'"'"'))' bdist_wheel -d /run/user/1000/pip-wheel-y35gzrri
cwd: /run/user/1000/pip-req-build-zyrxyf7t/
Complete output (136 lines):
running bdist_wheel
running build
creating /run/user/1000/pip-req-build-zyrxyf7t/build
creating /run/user/1000/pip-req-build-zyrxyf7t/build/temp.linux-x86_64-3.9
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... /nix/store/vksla9jd81f6bd90l50yvbx48cvk8pql-gnugrep-3.7/bin/grep
checking for egrep... /nix/store/vksla9jd81f6bd90l50yvbx48cvk8pql-gnugrep-3.7/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... /nix/store/5wch96kji9zlffxjqpjdrszjzp4i7m3a-coreutils-9.0/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/5wch96kji9zlffxjqpjdrszjzp4i7m3a-coreutils-9.0/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '100' 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... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for native Windows host... no
checking how to print strings... printf
checking for a sed that does not truncate output... /nix/store/g1ixda6g2bbwh77aglm8161pd7qnsxz1-gnused-4.8/bin/sed
checking for fgrep... /nix/store/vksla9jd81f6bd90l50yvbx48cvk8pql-gnugrep-3.7/bin/grep -F
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for 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 archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for a working dd... /nix/store/5wch96kji9zlffxjqpjdrszjzp4i7m3a-coreutils-9.0/bin/dd
checking how to truncate binary pipes... /nix/store/5wch96kji9zlffxjqpjdrszjzp4i7m3a-coreutils-9.0/bin/dd bs=4096 count=1
/run/user/1000/pip-req-build-zyrxyf7t/configure: line 7100: /usr/bin/file: No such file or directory
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -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 (ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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) gawk
checking for python... /home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/python
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... -I/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/include/python3.9
checking for Python library path... -L/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib -lpython3.9
checking for Python site-packages path... /home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/lib/python3.9/site-packages
checking python extra libraries... -lpthread -ldl -lcrypt -lncurses -lutil -lm -lm
checking python extra linking flags... -Xlinker -export-dynamic
checking consistency of all components of python development environment... no
configure: error: in `/run/user/1000/pip-req-build-zyrxyf7t/build/temp.linux-x86_64-3.9':
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 1, in <module>
File "/run/user/1000/pip-req-build-zyrxyf7t/setup.py", line 85, in <module>
setup(
File "/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 159, in setup
return distutils.core.setup(**attrs)
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/run/user/1000/pip-req-build-zyrxyf7t/setup.py", line 56, in run
subprocess.check_call([
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/run/user/1000/pip-req-build-zyrxyf7t/configure', '--disable-maintainer-mode', 'PYTHON=/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/python', '--prefix=/run/user/1000/pip-req-build-zyrxyf7t/build/temp.linux-x86_64-3.9/prefix']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for dbus-python
Running setup.py clean for dbus-python
Failed to build dbus-python
Installing collected packages: dbus-python
Running setup.py install for dbus-python: started
Running setup.py install for dbus-python: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/run/user/1000/pip-req-build-zyrxyf7t/setup.py'"'"'; __file__='"'"'/run/user/1000/pip-req-build-zyrxyf7t/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 /run/user/1000/pip-record-tlda9ywx/install-record.txt --single-version-externally-managed --compile --install-headers /home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/include/site/python3.9/dbus-python
cwd: /run/user/1000/pip-req-build-zyrxyf7t/
Complete output (140 lines):
running install
/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/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
creating /run/user/1000/pip-req-build-zyrxyf7t/build
creating /run/user/1000/pip-req-build-zyrxyf7t/build/temp.linux-x86_64-3.9
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... /nix/store/vksla9jd81f6bd90l50yvbx48cvk8pql-gnugrep-3.7/bin/grep
checking for egrep... /nix/store/vksla9jd81f6bd90l50yvbx48cvk8pql-gnugrep-3.7/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... /nix/store/5wch96kji9zlffxjqpjdrszjzp4i7m3a-coreutils-9.0/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/5wch96kji9zlffxjqpjdrszjzp4i7m3a-coreutils-9.0/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '100' 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... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for native Windows host... no
checking how to print strings... printf
checking for a sed that does not truncate output... /nix/store/g1ixda6g2bbwh77aglm8161pd7qnsxz1-gnused-4.8/bin/sed
checking for fgrep... /nix/store/vksla9jd81f6bd90l50yvbx48cvk8pql-gnugrep-3.7/bin/grep -F
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for 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 archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for a working dd... /nix/store/5wch96kji9zlffxjqpjdrszjzp4i7m3a-coreutils-9.0/bin/dd
checking how to truncate binary pipes... /nix/store/5wch96kji9zlffxjqpjdrszjzp4i7m3a-coreutils-9.0/bin/dd bs=4096 count=1
/run/user/1000/pip-req-build-zyrxyf7t/configure: line 7100: /usr/bin/file: No such file or directory
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -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 (ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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) gawk
checking for python... /home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/python
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... -I/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/include/python3.9
checking for Python library path... -L/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib -lpython3.9
checking for Python site-packages path... /home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/lib/python3.9/site-packages
checking python extra libraries... -lpthread -ldl -lcrypt -lncurses -lutil -lm -lm
checking python extra linking flags... -Xlinker -export-dynamic
checking consistency of all components of python development environment... no
configure: error: in `/run/user/1000/pip-req-build-zyrxyf7t/build/temp.linux-x86_64-3.9':
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 1, in <module>
File "/run/user/1000/pip-req-build-zyrxyf7t/setup.py", line 85, in <module>
setup(
File "/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 159, in setup
return distutils.core.setup(**attrs)
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/lib/python3.9/site-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/command/install.py", line 546, in run
self.run_command('build')
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/run/user/1000/pip-req-build-zyrxyf7t/setup.py", line 56, in run
subprocess.check_call([
File "/nix/store/2c9w4p2x6x0l64fdvcmc11app7x4xran-python3-3.9.6/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/run/user/1000/pip-req-build-zyrxyf7t/configure', '--disable-maintainer-mode', 'PYTHON=/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/python', '--prefix=/run/user/1000/pip-req-build-zyrxyf7t/build/temp.linux-x86_64-3.9/prefix']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: /home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/run/user/1000/pip-req-build-zyrxyf7t/setup.py'"'"'; __file__='"'"'/run/user/1000/pip-req-build-zyrxyf7t/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 /run/user/1000/pip-record-tlda9ywx/install-record.txt --single-version-externally-managed --compile --install-headers /home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/include/site/python3.9/dbus-python Check the logs for full command output.
WARNING: You are using pip version 21.1.3; however, version 22.0.2 is available.
You should consider upgrading via the '/home/jevin/.cache/pypoetry/virtualenvs/gnome-next-meeting-applet-AfKXBEeF-py3.9/bin/python -m pip install --upgrade pip' command.
at /nix/store/9gbd215qsscc25vsymkv6kmz4g8wgpd6-python3.9-poetry-1.1.12/lib/python3.9/site-packages/poetry/utils/env.py:1183 in _run
1179│ output = subprocess.check_output(
1180│ cmd, stderr=subprocess.STDOUT, **kwargs
1181│ )
1182│ except CalledProcessError as e:
→ 1183│ raise EnvCommandError(e, input=input_)
1184│
1185│ return decode(output)
1186│
1187│ def execute(self, bin, *args, **kwargs):
[nix-shell:~/code/personal/gnome-calendar-applet]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment