RE:pyqt5 and entrypoint

2020-02-02 Thread Scott Kitterman



On February 2, 2020 9:58:45 PM UTC, PICCA Frederic-Emmanuel 
 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 "", line 1, in 
>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



RE:pyqt5 and entrypoint

2020-02-02 Thread PICCA Frederic-Emmanuel
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 "", line 1, in 
  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