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

pulseaudio-dlna: build failure: needs python >=3.6 #108394

Closed
asbachb opened this issue Jan 4, 2021 · 12 comments
Closed

pulseaudio-dlna: build failure: needs python >=3.6 #108394

asbachb opened this issue Jan 4, 2021 · 12 comments
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: python

Comments

@asbachb
Copy link
Contributor

asbachb commented Jan 4, 2021

Describe the bug
pulseaudio-dlna fails to build due to out of date python version: ERROR: Package 'setproctitle' requires a different Python: 2.7.18 not in '>=3.6'

asbachb@nixo-t14s  ~/dev/src/nix/nixpkgs  ➦ e326297f6c8  nix-build . -A pulseaudio-dlna                       
these derivations will be built:
  /nix/store/1102m0yzzxg99ms0rqnmlwwfwshklsvg-python2.7-setproctitle-1.2.drv
  /nix/store/7591wry4fp0m6da1jxxr1993rxkpxisp-python2.7-cffi-1.14.4.drv
  /nix/store/7gfy8pcl9nzmfyyjqiff5hpfnnld5z9j-python2.7-cryptography-3.3.1.drv
  /nix/store/aafvy1av4dka04fiq91gigyqvikhvzkz-python2.7-pyOpenSSL-20.0.0.drv
  /nix/store/rwwc11fdnwdwpglv7ryhc6akmc2djycl-python2.7-urllib3-1.26.2.drv
  /nix/store/4fw99l9i1h6nkl9var5jzpsap2z32anc-python2.7-requests-2.25.0.drv
  /nix/store/gwl2jln45r9anf8imb99ybb5pqyyjhnb-pulseaudio-dlna-unstable-2017-11-01.drv
building '/nix/store/1102m0yzzxg99ms0rqnmlwwfwshklsvg-python2.7-setproctitle-1.2.drv'...
building '/nix/store/7591wry4fp0m6da1jxxr1993rxkpxisp-python2.7-cffi-1.14.4.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Sourcing pytest-check-hook
Using pytestCheckPhase
Removing setuptoolsCheckPhase
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing setuptools-check-hook
unpacking sources
unpacking source archive /nix/store/aycvhwg3jgk9xawhrr05s0dis1r0i5dw-setproctitle-1.2.tar.gz
source root is setproctitle-1.2
setting SOURCE_DATE_EPOCH to timestamp 1606283552 of file setproctitle-1.2/setup.cfg
patching sources
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
unpacking sources
unpacking source archive /nix/store/y820p7b93fi89rnxywx5p79g2wcsaa6g-cffi-1.14.4.tar.gz
source root is cffi-1.14.4
setting SOURCE_DATE_EPOCH to timestamp 1606226943 of file cffi-1.14.4/setup.cfg
patching sources
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_ext
building 'setproctitle' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SYS_PRCTL_H=1 -DSPT_VERSION=1.2 -I/nix/store/6jpcpzwc3707kpk48zjnbfxfblz1d271-python-2.7.18/include/python2.7 -c src/setproctitle.c -o build/temp.linux-x86_64-2.7/src/setproctitle.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SYS_PRCTL_H=1 -DSPT_VERSION=1.2 -I/nix/store/6jpcpzwc3707kpk48zjnbfxfblz1d271-python-2.7.18/include/python2.7 -c src/spt_debug.c -o build/temp.linux-x86_64-2.7/src/spt_debug.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SYS_PRCTL_H=1 -DSPT_VERSION=1.2 -I/nix/store/6jpcpzwc3707kpk48zjnbfxfblz1d271-python-2.7.18/include/python2.7 -c src/spt_setup.c -o build/temp.linux-x86_64-2.7/src/spt_setup.o
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cffi
copying cffi/lock.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/error.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/api.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/model.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-x86_64-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-x86_64-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-x86_64-2.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/c
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/nix/store/6jpcpzwc3707kpk48zjnbfxfblz1d271-python-2.7.18/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SYS_PRCTL_H=1 -DSPT_VERSION=1.2 -I/nix/store/6jpcpzwc3707kpk48zjnbfxfblz1d271-python-2.7.18/include/python2.7 -c src/spt_status.c -o build/temp.linux-x86_64-2.7/src/spt_status.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SYS_PRCTL_H=1 -DSPT_VERSION=1.2 -I/nix/store/6jpcpzwc3707kpk48zjnbfxfblz1d271-python-2.7.18/include/python2.7 -c src/spt_strlcpy.c -o build/temp.linux-x86_64-2.7/src/spt_strlcpy.o
creating build/lib.linux-x86_64-2.7
gcc -pthread -shared -lgcc_s build/temp.linux-x86_64-2.7/src/setproctitle.o build/temp.linux-x86_64-2.7/src/spt_debug.o build/temp.linux-x86_64-2.7/src/spt_setup.o build/temp.linux-x86_64-2.7/src/spt_status.o build/temp.linux-x86_64-2.7/src/spt_strlcpy.o -L/nix/store/6jpcpzwc3707kpk48zjnbfxfblz1d271-python-2.7.18/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/setproctitle.so
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
copying build/lib.linux-x86_64-2.7/setproctitle.so -> build/bdist.linux-x86_64/wheel
running install_egg_info
running egg_info
writing requirements to setproctitle.egg-info/requires.txt
writing setproctitle.egg-info/PKG-INFO
writing top-level names to setproctitle.egg-info/top_level.txt
writing dependency_links to setproctitle.egg-info/dependency_links.txt
reading manifest file 'setproctitle.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
writing manifest file 'setproctitle.egg-info/SOURCES.txt'
Copying setproctitle.egg-info to build/bdist.linux-x86_64/wheel/setproctitle-1.2-py2.7.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/setproctitle-1.2.dist-info/WHEEL
creating 'dist/setproctitle-1.2-cp27-cp27mu-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'setproctitle.so'
adding 'setproctitle-1.2.dist-info/METADATA'
adding 'setproctitle-1.2.dist-info/WHEEL'
adding 'setproctitle-1.2.dist-info/top_level.txt'
adding 'setproctitle-1.2.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
installing
Executing pipInstallPhase
/build/setproctitle-1.2/dist /build/setproctitle-1.2
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Processing ./setproctitle-1.2-cp27-cp27mu-linux_x86_64.whl
ERROR: Package 'setproctitle' requires a different Python: 2.7.18 not in '>=3.6'
builder for '/nix/store/1102m0yzzxg99ms0rqnmlwwfwshklsvg-python2.7-setproctitle-1.2.drv' failed with exit code 1
cannot build derivation '/nix/store/gwl2jln45r9anf8imb99ybb5pqyyjhnb-pulseaudio-dlna-unstable-2017-11-01.drv': 1 dependencies couldn't be built
error: build of '/nix/store/gwl2jln45r9anf8imb99ybb5pqyyjhnb-pulseaudio-dlna-unstable-2017-11-01.drv' failed

To Reproduce
Steps to reproduce the behavior:

asbachb@nixo-t14s  ~/dev/src/nix/nixpkgs   master  git checkout e326297f6c8d01d996219c796245b061d61b1eb0      
 asbachb@nixo-t14s  ~/dev/src/nix/nixpkgs  ➦ e326297f6c8  nix-build . -A pulseaudio-dlna

Notify maintainers

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@asbachb asbachb added the 0.kind: bug Something is broken label Jan 4, 2021
@asbachb
Copy link
Contributor Author

asbachb commented Jan 4, 2021

@flokli
Copy link
Contributor

flokli commented Jan 4, 2021

Looking at the upstream issue tracker and some python 3 - related issues, it doesn't seem to work with python3.

After a quick try, I failed on the missing futures package for python3. It seems this is somewhat hardcoded in the repo: masmu/pulseaudio-dlna#397 (comment)

You might want to see if this can be ported to Python 3 to get it working, but trying to get some Python 2 builds working seems to be a dead end.

@flokli
Copy link
Contributor

flokli commented Jan 4, 2021

There is a python3 branch, though: https://github.com/masmu/pulseaudio-dlna/tree/python3

@asbachb
Copy link
Contributor Author

asbachb commented Jan 4, 2021

Tbh I wasn't aware of the state of that project. Seems to be abandoned: masmu/pulseaudio-dlna#389 (comment)

Should we mark is as broken, remove it or try to get that python 3 branch running?

@flokli
Copy link
Contributor

flokli commented Jan 6, 2021

If the project still has no maintainer (and you're not volunteering either :-P ), I'd rather not ship an entirely unmaintained branch, but remove it for now.

@asbachb
Copy link
Contributor Author

asbachb commented Jan 6, 2021

archlinux for example is using that python3 branch: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pulseaudio-dlna

@flokli
Copy link
Contributor

flokli commented Jan 6, 2021

… in their AUR. There's no package in the official repositories.

@wamserma
Copy link
Member

The comments in AUR point to this repo, which seems to be a maintained fork: https://github.com/Cygn/pulseaudio-dlna

@prusnak
Copy link
Member

prusnak commented Apr 14, 2021

I posted my WIP PR here : #119469

@stale
Copy link

stale bot commented Oct 12, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 12, 2021
@prusnak
Copy link
Member

prusnak commented Nov 28, 2021

Closed via #146915

@prusnak prusnak closed this as completed Nov 28, 2021
@flokli
Copy link
Contributor

flokli commented Nov 28, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: python
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants