QTQR stopped working with update 1.4-0-33-ubuntu18.04.1

Asked by Nosphky

Prompted by the software updater, I agreed to the proposed update of qtqr and now it doesn't start. It has been working fine on my ubuntustudio 18-04 box for the past year and on 16-04 prior to that.

Generally, I have always started the gui by clicking on a link in the Whisker dropdown menu. Now, clicking produces no gui at all and a few minutes later there appears a dialogue box saying that qtqr stopped working.

When I try to start qtqr in a terminal, this also fails and produces the following output :

:~$ qtqr
Traceback (most recent call last):
  File "/usr/bin/qtqr", line 15, in <module>
    from qrtools import QR
ModuleNotFoundError: No module named 'qrtools'
:~$1

The 2 named dependencies are present :
python-qrtools - which was also updated to 1.4-0-33-ubuntu18.04.1 at the same time as qtqr
python-pyqt6 this was not updated and remained at version 5.10.1+dfsg-1ubuntu2

[there was a similar error event way back in Sept 2016 which was fixed by a simple edit in one of the files]

I have tried going back to the previous version which worked ( 1.4-bzr23-1) but without success.

Any ideas where I can start looking to fix the problem would be appreciated.
Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
QR Tools Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output that you receive for the commands

uname -a
lsb_release -crid
apt-cache policy qtqr python-qrtools

Revision history for this message
Nosphky (philip-jackson) said :
#2

On 02/10/2019 11:43, Manfred Hampl wrote:
> Your question #684449 on QR Tools changed:
> https://answers.launchpad.net/qr-tools/+question/684449
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> For diagnostic purposes please provide the output that you receive for
> the commands
>
> uname -a
> lsb_release -crid
> apt-cache policy qtqr python-qrtools
>
1. uname -a

Linux Osiris 4.15.0-65-lowlatency #74-Ubuntu SMP PREEMPT Tue Sep 17 17:52:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

2. lsb_release -crid

Distributor ID:    Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:    18.04
Codename:    bionic

3. apt-cache policy qtqr python-qrtools

qtqr:
   Installed: 1.4-0~33~ubuntu18.04.1
   Candidate: 1.4-0~33~ubuntu18.04.1
   Version table:
  *** 1.4-0~33~ubuntu18.04.1 500
         500 http://ppa.launchpad.net/qr-tools-developers/daily/ubuntu bionic/main amd64 Packages
         500 http://ppa.launchpad.net/qr-tools-developers/daily/ubuntu bionic/main i386 Packages
         100 /var/lib/dpkg/status
      1.4~bzr23-1 500
         500 http://fr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
         500 http://fr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
python-qrtools:
   Installed: 1.4-0~33~ubuntu18.04.1
   Candidate: 1.4-0~33~ubuntu18.04.1
   Version table:
  *** 1.4-0~33~ubuntu18.04.1 500
         500 http://ppa.launchpad.net/qr-tools-developers/daily/ubuntu bionic/main amd64 Packages
         500 http://ppa.launchpad.net/qr-tools-developers/daily/ubuntu bionic/main i386 Packages
         100 /var/lib/dpkg/status
      1.4~bzr23-1 500
         500 http://fr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
         500 http://fr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages

Philip

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What happened when you tried going back to the last working version?

If you were not able to re-install the last version, try again with the command

sudo apt install qtqr=1.4~bzr23-1 python-qrtools=1.4~bzr23-1

Revision history for this message
Nosphky (philip-jackson) said :
#4

On 02/10/2019 13:17, Manfred Hampl wrote:
> Your question #684449 on QR Tools changed:
> https://answers.launchpad.net/qr-tools/+question/684449
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> What happened when you tried going back to the last working version?
>
> If you were not able to re-install the last version, try again with the
> command
>
> sudo apt install qtqr=1.4~bzr23-1 python-qrtools=1.4~bzr23-1
>
I removed the version of qtqr and python-qrtools which did not work and used your expression

sudo apt install qtqr=1.4~bzr23-1 python-qrtools=1.4~bzr23-1

  to install the previous versions.

The results are mixed. From the whisker menu, a click on qtqr starts the gui and sliding qr code images onto the gui correctly decodes them in the text and geolocalisation cases I tried.

I also typed qtqr in a terminal and it correctly started the gui but with a warning :

"QApplication: invalid style override passed, ignoring it."

When I tried to create a new qr code, the image appeared in the gui correctly but would NOT save. I tried saving text qr codes and also geolocalisation codes. The file I wanted to save was never created but in the geolocalisation case, I got 3 files saved but not as I named the file which was test-geo.png

The three files were named :
2ツー38'51.9"E.png  at time Wed 02 Oct 2019 14:01:16 CEST    -  this QR image contained only the latitude
43ツー19'41.4"N.png at time Wed 02 Oct 2019 14:01:28 CEST - this contained both lat and long
43ツー19'41.4"N .png at time Wed 02 Oct 2019 14:01:29 CEST - this contained both lat and longitude

Note that the degrees symbol is corrupted - this was also true in the original that I used for copy and paste into the gui - not a problem at this time.  From the time stamps, it appeared that each time I pasted, the qtqr app saved a new file and the last one was saved when I hit save. The name I assigned was completely ignored.

I made a further trial, typing in the N and E coordinates  manually in decimal form (without the degree symbol) and the result was that my file name was not created but qtqr made me a collection of 20 files : 1 file for each digit or character I entered + one complete file at the end which did not bear my assigned name.

see attached screenshot Screenshot_2019-10-02_14-24-52- qtqr.png

This strange production of multiple files did not happen with a test 'text' qr code. It that case, nothing was saved.

So, in summary, with the previous version reinstalled, I can now read my QR codes but cannot make and save a new code reliably.

Philip

Revision history for this message
Nosphky (philip-jackson) said :
#5

I'm prompted every day by Ubuntu to update to latest qtqr - which I have resisted until this morning.

Nothing has changed from my initial report - so I removed and re-installed the previous version (as I did above on 2 Oct) and the results are always that I can read a QR code but not write and save.

Has any body else seen this behaviour?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#6

The version 1.4-0~33~ubuntu18.04.1 (which does not work for you) is coming from a PPA.
I suggest that you try contacting one of the persons responsible for that PPA, see
https://launchpad.net/~qr-tools-developers

Revision history for this message
Nosphky (philip-jackson) said :
#7

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Ramiro Algozino (algozino) said :
#8

Hello,

Sorry you are experiencing problems with QtQR. Effectively the Daily PPA is broken right now because we've merged an update to migrate to Python3+Qt5 but the packaging is not ready yet. I've just pushed the fix to the packaging and hopefully it should be fix by tomorrow.

Sorry again this take so long.

Best regards,
Ramiro.

Revision history for this message
Ramiro Algozino (algozino) said :
#9

In the mean time I've deleted the v1.4-0-33 files from the PPA to avoid confusion.

Revision history for this message
Nosphky (philip-jackson) said :
#10

Great news - glad you're on it.