[Qgis-user] qgis python error

Don Harter harterc2 at att.net
Wed Mar 27 09:05:21 PDT 2024


I found that I no longer had the qgis repository linked in.  Probably 
because of things like this: "Release with ubuntugis-unstable 
dependencies". I had to custom build gdal though for those extra 
features.  So installed 3.36 from the repository.  It is broken for me 
and it looks similar to when I once tried to build qgis myself.  Only 
the main top menu line is visible inside a window.  I am going to revert 
back to the ubuntu repository for now.  I can't use qgis. ppa-purge 
command won't work here.  I had to run these commands to downgrade it:

sudo apt install qgis=3.22.4+dfsg-3build1 
qgis-api-doc=3.22.4+dfsg-3build1 qgis-common=3.22.4+dfsg-3build1 
qgis-sip=3.22.4+dfsg-3build1 qgis-provider-grass=3.22.4+dfsg-3build1 
qgis-plugin-grass-common=3.22.4+dfsg-3build1 
qgis-providers=3.22.4+dfsg-3build1 qgis-plugin-grass=3.22.4+dfsg-3build1 
python3-qgis=3.22.4+dfsg-3build1 python3-qgis-common=3.22.4+dfsg-3build1 
qgis-providers-common=3.22.4+dfsg-3build1

sudo apt install python3-qgis=3.22.4+dfsg-3build1

It took 2 commands because of some dependency problems.

Qgis is working again.


On 3/25/24 4:46 AM, Etienne Trimaille wrote:
> > I assume that is the latest stable version? 3.22.4
>
> No, the last number (.4 in your case), is the number of bugfix 
> versions. No new features are added in these bugfix versions.
> The stable release on 3.22 is 3.22.16
> https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule
> And 3.22 and 3.28 are already not maintained.
>
>
> Le jeu. 21 mars 2024 à 19:36, Don Harter <harterc2 at att.net> a écrit :
>
>     OK Thank you.
>
>     I am using a stable version from :
>
>     deb https://ppa.launchpadcontent.net/ubuntugis/ppa/ubuntu/ jammy main
>
>     I assume that is the latest stable version?
>
>     For linux software in general I try to stick with stable
>     versions.  Oftentimes people make changes and submit them without
>     being fully tested. Then I spend more time filling out bug reports
>     instead of working on my applications.
>
>     I upgraded the plugin and the error message did not appear.  I
>     will see if that holds on later runs of qgis.
>
>     On 3/21/24 1:47 PM, Etienne Trimaille wrote:
>>     Hi,
>>
>>     You have installed the plugin "Value tool", you can remove it.
>>     You should report this issue to the plugin author, there is a bug
>>     tracker : https://github.com/jorgealmerio/valuetool
>>
>>     You are using QGIS 3.22.4, you should try to upgrade as well,
>>     it's old.
>>
>>     Le jeu. 21 mars 2024 à 17:49, Don Harter via QGIS-User
>>     <qgis-user at lists.osgeo.org> a écrit :
>>
>>         I am getting a python error now.  Does anyone know why I am
>>         getting this now when earlier I wasn't?
>>
>>         An error has occurred while executing Python code:
>>
>>
>>               ValueError: Unknown format code 'f' for object of type
>>               'str'
>>
>>         Traceback (most recent call last):   File
>>         "/home/drh/.local/share/QGIS/QGIS3/profiles/default/python/plugins/valuetool/valuewidget.py",
>>         line 478, in printValue     self.labelStatus.setText(self.tr
>>         <http://self.tr>('Coordinate:') + strFmt.format(position.x(),
>>         position.y(),bandvalue)) ValueError: Unknown format code 'f'
>>         for object of type 'str'
>>
>>         Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC
>>         11.4.0] QGIS version: 3.22.4-Białowieża Białowieża, exported
>>
>>         _______________________________________________
>>         QGIS-User mailing list
>>         QGIS-User at lists.osgeo.org
>>         List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>         Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240327/b6c59547/attachment-0001.htm>


More information about the QGIS-User mailing list