[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#891631: marked as done (kdevelop-python: KDevelop Python with Qt default example doesn't run)



Your message dated Fri, 25 Dec 2020 18:21:13 +0100
with message-id <6101556.Wku2Vz74k6@thyrus>
and subject line Re: Bug#891631: kdevelop-python: KDevelop Python with Qt default example doesn't run
has caused the Debian Bug report #891631,
regarding kdevelop-python: KDevelop Python with Qt default example doesn't run
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
891631: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891631
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: kdevelop-python
Version: 5.0.3-1
Severity: normal

Dear Maintainer,

python-pyqt5 should be a dependency of kdevelop-python in my opinion.
After installed the kdevelop-python package I tried to create a python
project with qt graphic interface. In the second line of the file
automatically created there is "from PyQt5 import QtWidgets" but the
PyQt5 is not installed.
Trying to run the program:

$ python TesteKDevelopPython.py
Traceback (most recent call last):
  File "TesteKDevelopPython.py", line 2, in <module>
    from PyQt5 import QtWidgets
ImportError: No module named PyQt5

After installing python-pyqt5 the program correctly run.

-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8),
LANGUAGE=pt_BR:pt:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages kdevelop-python depends on:
ii  kdevelop              4:5.0.3-1+b1
ii  kdevelop-python-data  5.0.3-1
ii  kdevplatform10-libs   5.0.3-1
ii  kio                   5.28.0-2
ii  libc6                 2.24-11+deb9u1
ii  libkf5configcore5     5.28.0-2
ii  libkf5coreaddons5     5.28.0-2
ii  libkf5i18n5           5.28.0-2
ii  libkf5kiowidgets5     5.28.0-2
ii  libkf5parts5          5.28.0-1
ii  libkf5texteditor5     5.28.0-2
ii  libkf5threadweaver5   5.28.0-1+b2
ii  libkf5widgetsaddons5  5.28.0-3
ii  libkf5xmlgui5         5.28.0-1
ii  libpython3.5          3.5.3-1
ii  libqt5core5a          5.7.1+dfsg-3+b1
ii  libqt5gui5            5.7.1+dfsg-3+b1
ii  libqt5widgets5        5.7.1+dfsg-3+b1
ii  libstdc++6            6.3.0-18+deb9u1
ii  python3.5             3.5.3-1

Versions of packages kdevelop-python recommends:
ii  pycodestyle      2.2.0-2
ii  python-autopep8  0.9.1-2.1

Versions of packages kdevelop-python suggests:
pn  kdevelop-python-l10n  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi Ricardo,

sorry for the late answer.

In data martedì 27 febbraio 2018 15:43:54 CET, Ricardo ha scritto:
> Package: kdevelop-python
> Version: 5.0.3-1
> Severity: normal
> 
> Dear Maintainer,
> 
> python-pyqt5 should be a dependency of kdevelop-python in my opinion.
> After installed the kdevelop-python package I tried to create a python
> project with qt graphic interface. In the second line of the file
> automatically created there is "from PyQt5 import QtWidgets" but the
> PyQt5 is not installed.

kdevelop-python provides the integration to work with Python in
KDevelop, along with few project templates. It is still up to the user
of KDevelop to install all the packages needed for the project being
worked on. In your case, if you want to create a project based on the
Python Qt5 template, you need to install the packages for PyQt5
(at least python3-pyqt5). The same applies to all the other templates
shipped by KDevelop itself, or installed by other packages.

> Trying to run the program:
> 
> $ python TesteKDevelopPython.py
> Traceback (most recent call last):
>   File "TesteKDevelopPython.py", line 2, in <module>
>     from PyQt5 import QtWidgets
> ImportError: No module named PyQt5
> 
> After installing python-pyqt5 the program correctly run.

You are running this outside of KDevelop, so you need to install the
right Python module regardless of kdevelop-python. It is like as if you
wrote TesteKDevelopPython.py (using PyQt5) yourself, rather than
creating it from a KDevelop template.

Therefore, I'm closing this bug, since the installation of packages
needed for your project is up to you.

Thanks anyway for your report,
-- 
Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply to: