Path: csiph.com!news.mixmin.net!news.albasani.net!tahina.priv.at!bofh.it!news.nic.it!robomod From: PICCA Frederic-Emmanuel Newsgroups: linux.debian.maint.python Subject: pyqt5 and entrypoint Date: Sun, 02 Feb 2020 21:50:01 +0100 Message-ID: X-Original-To: debian-python X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Feb 2 20:48:11 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-0.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, THREADTOPIC=2] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -4.6 X-Greylist: delayed 562 seconds by postgrey-1.36 at bendel; Sun, 02 Feb 2020 20:31:57 UTC Dkim-Filter: OpenDKIM Filter v2.11.0 brouette.synchrotron-soleil.fr 653824C0063 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1580674953; bh=KK8V7RfJ45h08W8iW61bTVy5iuh2Inrz54LXJEiI1Eg=; h=From:To:CC:Subject:Date:From; b=MNHqR/gLXeXm/M3uY+gF5z4p9qgQVEZoHeFOSYPqbkkiHh6S1IhH3znUFWw+uw6MH LjJnfCuL1Znl6ftcbh5BaczgxKCYAGRCi4aY9hb95+FV5Rca1f/xGGn5K00pqXpOWz P9EQYBTcRQ7wJjGmFVTOvcU+HR+WGbr7yXVfBWlA= Dkim-Filter: OpenDKIM Filter v2.11.0 brouette.synchrotron-soleil.fr A77194C0056 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1580674912; bh=KK8V7RfJ45h08W8iW61bTVy5iuh2Inrz54LXJEiI1Eg=; h=From:To:CC:Subject:Date:From; b=qAKH5esLhL/bgV1gwFBETt0FpEPDEkh4P1MmRghY33tIEFPDVadEh57O0qtiZylz5 3wq8ynFIfDH1TU56JXyXKVtBevaOXMN6O5+v0mOsSMwacdwjoUgxEYQ4ePGTGoTRWi GtYVG55Niu5cMS5UbQD8ktZWgPNJu0tRjf8eV+hc= Thread-Topic: pyqt5 and entrypoint Thread-Index: AdXaBakhviWlCyGeSPePWeXTqc+vUQ== Accept-Language: fr-FR, en-US Content-Language: fr-FR X-Originating-IP: [195.221.0.171] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailing-List: archive/latest/17870 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/A2A20EC3B8560D408356CAC2FC148E53018BDD15E5@SUN-DAG3.synchrotron-soleil.fr Approved: robomod@news.nic.it Lines: 78 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: "kieffer@esrf.fr" X-Original-Date: Sun, 2 Feb 2020 20:21:51 +0000 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.python:12251 Hello, We are working on the next pyfai package. This new version use entry_points like this gui_requires =3D ['PyQt5', 'h5py', 'hdf5plugin', 'PyOpenGL'] opencl_requires =3D ['pyopencl'] extras_require =3D { 'calib2': gui_requires, # Keep compatibility 'gui': gui_requires, 'opencl': opencl_requires, 'full': gui_requires + opencl_requires, } console_scripts =3D [ 'check_calib =3D pyFAI.app.check_calib:main', 'detector2nexus =3D pyFAI.app.detector2nexus:main', 'diff_map =3D pyFAI.app.diff_map:main', 'diff_tomo =3D pyFAI.app.diff_tomo:main', 'eiger-mask =3D pyFAI.app.eiger_mask:main', 'MX-calibrate =3D pyFAI.app.mx_calibrate:main', 'pyFAI-average =3D pyFAI.app.average:main', 'pyFAI-benchmark =3D pyFAI.app.benchmark:main', 'pyFAI-calib =3D pyFAI.app.calib:main', 'pyFAI-calib2 =3D pyFAI.app.calib2:main [gui]', 'pyFAI-drawmask =3D pyFAI.app.drawmask:main', 'pyFAI-diffmap =3D pyFAI.app.diff_map:main', 'pyFAI-integrate =3D pyFAI.app.integrate:main', 'pyFAI-recalib =3D pyFAI.app.recalib:main', 'pyFAI-saxs =3D pyFAI.app.saxs:main', 'pyFAI-waxs =3D pyFAI.app.waxs:main', ] entry_points =3D { 'console_scripts': console_scripts, # 'gui_scripts': [], } But once installed, we can not start the gui application. jerome@patagonia:~/workspace/hdf5plugin$ pyFAI-calib2 Traceback (most recent call last): File "/usr/bin/pyFAI-calib2", line 11, in load_entry_point('pyFAI=3D=3D0.19.0', 'console_scripts', 'pyFAI-calib2'= )() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489= , in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 279= 3, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 241= 0, in load self.require(*args, **kwargs) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 243= 3, in require items =3D working_set.resolve(reqs, env, installer, extras=3Dself.extra= s) 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 indeed python3-pyqt5 was installed so Is it a bug in the pyqt5 package, or is there a way to fix this in Debia= n. thanks for your help Frederic