Re: [Qgis-user] [extern] Re: Problem with Python/Qgis

2023-12-13 Thread Andrea Giudiceandrea via QGIS-User

Gaël Kermarrec kermarrec at meteo.uni-hannover.de
Tue Dec 12 23:38:24 PST 2023



Hi, this is a qgis python problem since I got such error for everything 
involving python with qgis. This was just an exemple. For sure I installed and 
reinstalled it :-). I hope that someone had the same pb


Hi Gaël,
have you tried if the issue occurs using a new QGIS user profile as 
previously recommended?
if it still occur also using a new QGIS user profile, then please 
provide the full error messages log, not only an example.


Best regards.

Andrea
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] [extern] Re: Problem with Python/Qgis

2023-12-12 Thread Gaël Kermarrec via QGIS-User
Hi, this is a qgis python problem since I got such error for everything 
involving python with qgis. This was just an exemple. For sure I installed and 
reinstalled it :-). I hope that someone had the same pb

Le 13 décembre 2023 07:56:38 GMT+01:00, Frank Broniewski  a 
écrit :
>Hi Gael,
>
>this is not a QGIS problem, but one of your installed plugins is causing the 
>issue. The first line mentions it already
>> Couldn't load plugin 'crayfish'
>
>I don't know the plugin, but you could try to delete / uninstall it and 
>reinstall it again. If you go in a terminal to 
>/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins and 
>delete the 'crayfish' folder, QGIS should start without the error.
>
>Further down the line the vrtbuilder plugin is mentioned as well, you might 
>want to delete and reinstall it as well, just to be sure if the crayfish 
>plugin is a dependency of the vrtbuilder plugin.
>
>HTH
>Frank
>
>
>Von: QGIS-User  im Auftrag von Gael 
>Kermarrec via QGIS-User 
>Gesendet: Mittwoch, 13. Dezember 2023 01:52
>An: chris hermansen 
>Cc: qgis-user@lists.osgeo.org 
>Betreff: Re: [Qgis-user] [extern] Re: Problem with Python/Qgis
>
>
>thanks chris for your help. I tried your suggestion, I was able to install 
>Qgis but interestingly as I launched it I got immediatly the error message
>
>Couldn't load plugin 'crayfish' due to an error when calling its initGui() 
>method AttributeError: module 'pyqtgraph' has no attribute 'GraphicsWindow' 
>Traceback (most recent call last): File 
>"/usr/lib/python3/dist-packages/qgis/utils.py", line 448, in startPlugin 
>plugins[packageName].initGui() File 
>"/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/plugin.py",
> line 96, in initGui w = CrayfishPlotWidget(self.plot_dock_widget) File 
>"/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/gui/plot_widget.py",
> line 186, in __init__ self.gw = pyqtgraph.GraphicsWindow() AttributeError: 
>module 'pyqtgraph' has no attribute 'GraphicsWindow' Python version: 3.8.10 
>(default, Nov 22 2023, 10:22:35) [GCC 9.4.0] QGIS version: 3.26.3-Buenos Aires 
>Buenos Aires, 65e4edfdad Python Path: /usr/share/qgis/python 
>/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python 
>/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins 
>/usr/share/qgis/python/plugins /usr/lib/python38.zip /usr/lib/python3.8 
>/usr/lib/python3.8/lib-dynload /usr/local/lib/python3.8/dist-packages 
>/usr/lib/python3/dist-packages 
>/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python 
>/home/kermarrec/.local/share/gis4wrf/python38/local/lib/python3.8/site-packages
> /home/kermarrec/.local/share/gis4wrf/python38/lib/python3/site-packages 
>/home/kermarrec/.local/share/gis4wrf/python38/lib/python3.8/site-packages . 
>/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vrtbuilderplugin
> 
>/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vrtbuilderplugin/vrtbuilder
>
>I have no idea what I could do to solve the problem.
>
>gael.
>
>On 12/12/23 18:36, chris hermansen wrote:
>Gael and list,
>
>On Tue, Dec 12, 2023 at 8:03 AM Gael Kermarrec via QGIS-User 
>mailto:qgis-user@lists.osgeo.org>> wrote:
>Dear members,
>
>I am trying to install Qgis from Ubuntu 20.04 but everytime I make sudo
>apt install qgis qgis-plugin-grass I become the following:
>
>
>The following packages contain unsatisfied dependencies:
>qgis: Depends on python3-qgis (= 1:3.22.16+32focal) but
>1:3.26.3+32focal-ubuntugis needs to be installed
>Depends on qgis-providers (= 1:3.22.16+32focal) but
>1:3.26.3+32focal-ubuntugis needs to be installed
>Depends on qgis-common (= 1:3.22.16+32focal) but
>1:3.26.3+32focal-ubuntugis needs to be installed
>qgis-plugin-grass: Depends on qgis-plugin-grass-common (=
>1:3.22.16+32focal) but 1:3.26.3+32focal-ubuntugis needs to be installed
>Depends on grass782
>E: Unable to correct problems, defective packages are in "keep in the
>current state" mode.
>
>I have no idea what I should do to make it works. Maybe somebody had the
>same problem, I would be grateful to get some support as I would like to
>work with QGis.
>
>It looks as though you might be trying to work with the ubuntugis PPA.  If 
>that's so, maybe you should consider trying the suggested methodology on the 
>QGIS site here:
>
>https://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu
>
>If you just want to correct the unsatisfied dependencies, it's probably worth 
>trying y

Re: [Qgis-user] [extern] Re: Problem with Python/Qgis

2023-12-12 Thread Andrea Giudiceandrea via QGIS-User

Gael Kermarrec kermarrec at meteo.uni-hannover.de
Tue Dec 12 16:52:37 PST 2023


Couldn't load plugin 'crayfish' due to an error when calling its 
initGui() method AttributeError: module 'pyqtgraph' has no attribute 
'GraphicsWindow' Traceback (most recent call last)


Hi Gael,
the error message is quite clear: it is caused by the external plugin 
"crayfish" you have installed in the QGIS user profile "default". The 
issue has been already reported [1].


Te easiest way to get rid of the error message is to uninstall such 
external plugin or to use a new QGIS user profile [2][3] or to start 
QGIS without any plugin enabled [3].


Best regards.

Andrea


[1] https://github.com/lutraconsulting/qgis-crayfish-plugin/issues/499
[2] 
https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#working-with-user-profiles
[3] 
https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#command-line-and-environment-variables

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] [extern] Re: Problem with Python/Qgis

2023-12-12 Thread Frank Broniewski via QGIS-User
Hi Gael,

this is not a QGIS problem, but one of your installed plugins is causing the 
issue. The first line mentions it already
> Couldn't load plugin 'crayfish'

I don't know the plugin, but you could try to delete / uninstall it and 
reinstall it again. If you go in a terminal to 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins and 
delete the 'crayfish' folder, QGIS should start without the error.

Further down the line the vrtbuilder plugin is mentioned as well, you might 
want to delete and reinstall it as well, just to be sure if the crayfish plugin 
is a dependency of the vrtbuilder plugin.

HTH
Frank


Von: QGIS-User  im Auftrag von Gael 
Kermarrec via QGIS-User 
Gesendet: Mittwoch, 13. Dezember 2023 01:52
An: chris hermansen 
Cc: qgis-user@lists.osgeo.org 
Betreff: Re: [Qgis-user] [extern] Re: Problem with Python/Qgis


thanks chris for your help. I tried your suggestion, I was able to install Qgis 
but interestingly as I launched it I got immediatly the error message

Couldn't load plugin 'crayfish' due to an error when calling its initGui() 
method AttributeError: module 'pyqtgraph' has no attribute 'GraphicsWindow' 
Traceback (most recent call last): File 
"/usr/lib/python3/dist-packages/qgis/utils.py", line 448, in startPlugin 
plugins[packageName].initGui() File 
"/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/plugin.py",
 line 96, in initGui w = CrayfishPlotWidget(self.plot_dock_widget) File 
"/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/gui/plot_widget.py",
 line 186, in __init__ self.gw = pyqtgraph.GraphicsWindow() AttributeError: 
module 'pyqtgraph' has no attribute 'GraphicsWindow' Python version: 3.8.10 
(default, Nov 22 2023, 10:22:35) [GCC 9.4.0] QGIS version: 3.26.3-Buenos Aires 
Buenos Aires, 65e4edfdad Python Path: /usr/share/qgis/python 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins 
/usr/share/qgis/python/plugins /usr/lib/python38.zip /usr/lib/python3.8 
/usr/lib/python3.8/lib-dynload /usr/local/lib/python3.8/dist-packages 
/usr/lib/python3/dist-packages 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python 
/home/kermarrec/.local/share/gis4wrf/python38/local/lib/python3.8/site-packages 
/home/kermarrec/.local/share/gis4wrf/python38/lib/python3/site-packages 
/home/kermarrec/.local/share/gis4wrf/python38/lib/python3.8/site-packages . 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vrtbuilderplugin
 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vrtbuilderplugin/vrtbuilder

I have no idea what I could do to solve the problem.

gael.

On 12/12/23 18:36, chris hermansen wrote:
Gael and list,

On Tue, Dec 12, 2023 at 8:03 AM Gael Kermarrec via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> wrote:
Dear members,

I am trying to install Qgis from Ubuntu 20.04 but everytime I make sudo
apt install qgis qgis-plugin-grass I become the following:


The following packages contain unsatisfied dependencies:
qgis: Depends on python3-qgis (= 1:3.22.16+32focal) but
1:3.26.3+32focal-ubuntugis needs to be installed
Depends on qgis-providers (= 1:3.22.16+32focal) but
1:3.26.3+32focal-ubuntugis needs to be installed
Depends on qgis-common (= 1:3.22.16+32focal) but
1:3.26.3+32focal-ubuntugis needs to be installed
qgis-plugin-grass: Depends on qgis-plugin-grass-common (=
1:3.22.16+32focal) but 1:3.26.3+32focal-ubuntugis needs to be installed
Depends on grass782
E: Unable to correct problems, defective packages are in "keep in the
current state" mode.

I have no idea what I should do to make it works. Maybe somebody had the
same problem, I would be grateful to get some support as I would like to
work with QGis.

It looks as though you might be trying to work with the ubuntugis PPA.  If 
that's so, maybe you should consider trying the suggested methodology on the 
QGIS site here:

https://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

If you just want to correct the unsatisfied dependencies, it's probably worth 
trying your command again with the "-f" option:

apt install -f qgis qgis-plugin-grass

In any event, I suggest you read this useful mini-tutorial on fixing 
unsatisfied dependencies.

https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa
--
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.

--
----
Dr. Gael Kermarrec
Institute for meteorology and climatology
Leibniz Universität Hannover
Herrenhäuser Str. 2
D-30419 Hannover
Tel: +49 511 762 2679
Email: kermar...@meteo.uni-hannover.de<mailto:kermar...@meteo.uni-hannover.de>
Web: www.me

Re: [Qgis-user] [extern] Re: Problem with Python/Qgis

2023-12-12 Thread Gael Kermarrec via QGIS-User
thanks chris for your help. I tried your suggestion, I was able to 
install Qgis but interestingly as I launched it I got immediatly the 
error message


Couldn't load plugin 'crayfish' due to an error when calling its 
initGui() method AttributeError: module 'pyqtgraph' has no attribute 
'GraphicsWindow' Traceback (most recent call last): File 
"/usr/lib/python3/dist-packages/qgis/utils.py", line 448, in startPlugin 
plugins[packageName].initGui() File 
"/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/plugin.py", 
line 96, in initGui w = CrayfishPlotWidget(self.plot_dock_widget) File 
"/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/crayfish/gui/plot_widget.py", 
line 186, in __init__ self.gw = pyqtgraph.GraphicsWindow() 
AttributeError: module 'pyqtgraph' has no attribute 'GraphicsWindow' 
Python version: 3.8.10 (default, Nov 22 2023, 10:22:35) [GCC 9.4.0] QGIS 
version: 3.26.3-Buenos Aires Buenos Aires, 65e4edfdad Python Path: 
/usr/share/qgis/python 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins 
/usr/share/qgis/python/plugins /usr/lib/python38.zip /usr/lib/python3.8 
/usr/lib/python3.8/lib-dynload /usr/local/lib/python3.8/dist-packages 
/usr/lib/python3/dist-packages 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python 
/home/kermarrec/.local/share/gis4wrf/python38/local/lib/python3.8/site-packages 
/home/kermarrec/.local/share/gis4wrf/python38/lib/python3/site-packages 
/home/kermarrec/.local/share/gis4wrf/python38/lib/python3.8/site-packages 
. 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vrtbuilderplugin 
/home/kermarrec/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vrtbuilderplugin/vrtbuilder


I have no idea what I could do to solve the problem.

gael.

On 12/12/23 18:36, chris hermansen wrote:

Gael and list,

On Tue, Dec 12, 2023 at 8:03 AM Gael Kermarrec via QGIS-User 
 wrote:


Dear members,

I am trying to install Qgis from Ubuntu 20.04 but everytime I make
sudo
apt install qgis qgis-plugin-grass I become the following:


The following packages contain unsatisfied dependencies:
qgis: Depends on python3-qgis (= 1:3.22.16+32focal) but
1:3.26.3+32focal-ubuntugis needs to be installed
Depends on qgis-providers (= 1:3.22.16+32focal) but
1:3.26.3+32focal-ubuntugis needs to be installed
Depends on qgis-common (= 1:3.22.16+32focal) but
1:3.26.3+32focal-ubuntugis needs to be installed
qgis-plugin-grass: Depends on qgis-plugin-grass-common (=
1:3.22.16+32focal) but 1:3.26.3+32focal-ubuntugis needs to be
installed
Depends on grass782
E: Unable to correct problems, defective packages are in "keep in the
current state" mode.

I have no idea what I should do to make it works. Maybe somebody
had the
same problem, I would be grateful to get some support as I would
like to
work with QGis.

It looks as though you might be trying to work with the ubuntugis 
PPA.  If that's so, maybe you should consider trying the suggested 
methodology on the QGIS site here:


https://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

If you just want to correct the unsatisfied dependencies, it's 
probably worth trying your command again with the "-f" option:


apt install -f qgis qgis-plugin-grass

In any event, I suggest you read this useful mini-tutorial on fixing 
unsatisfied dependencies.


https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa
--
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.


--
----
Dr. Gael Kermarrec
Institute for meteorology and climatology
Leibniz Universität Hannover
Herrenhäuser Str. 2
D-30419 Hannover
Tel: +49 511 762 2679
Email:kermar...@meteo.uni-hannover.de
Web:www.meteo.uni-hannover.de
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user