Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12255

RE:pyqt5 and entrypoint

From Scott Kitterman <debian@kitterman.com>
Newsgroups linux.debian.maint.python
Subject RE:pyqt5 and entrypoint
Date 2020-02-03 03:20 +0100
Message-ID <zvzve-1pM-21@gated-at.bofh.it> (permalink)
References <zvvKV-7EL-3@gated-at.bofh.it> <zvvKV-7EL-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On February 2, 2020 9:58:45 PM UTC, PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> wrote:
>Hello
>
>on unstable it works but on buster (and we need to make it work for
>buster)
>we have this message
>
>Python 3.7.3 (default, Apr  3 2019, 05:39:12) 
>[GCC 8.3.0] on linux
>Type "help", "copyright", "credits" or "license" for more information.
>>>> import pkg_resources
>>>> pkg_resources.get_distribution('PyQt5')
>Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
>481, in get_distribution
>    dist = get_provider(dist)
>File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
>357, in get_provider
>   return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
>File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
>900, in require
>    needed = self.resolve(parse_requirements(requirements))
>File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
>786, in resolve
>    raise DistributionNotFound(req, requirers)
>pkg_resources.DistributionNotFound: The 'PyQt5' distribution was not
>found and is required by the application

Since you know that the dependency is satisfied due to your package dependencies in debian/control, you should be able to patch away the requires PyQt5 in setup.py and it'll work fine.

Scott K

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

pyqt5 and entrypoint PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2020-02-02 21:50 +0100
  Re: pyqt5 and entrypoint Dmitry Shachnev <mitya57@debian.org> - 2020-02-02 22:40 +0100
    RE:pyqt5 and entrypoint PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2020-02-02 23:20 +0100
      RE:pyqt5 and entrypoint Scott Kitterman <debian@kitterman.com> - 2020-02-03 03:20 +0100

csiph-web