Re: [QGIS-Developer] [QGIS-server] Messages: QNetworkDiskCache::prepare() unable to open temporary file

2024-04-09 Thread Giovanni Manghi via QGIS-Developer
Hi Richard,

the only way I found to have that log message go away is to add manually

[cache]
directory=/path/to/qgis_cache_folder

inside QGIS3.ini wherever your QGIS server installation has created it.

>From the QGIS Server docs it seems to me that setting
"QGIS_SERVER_CACHE_DIRECTORY" in the virtual host should be enough, but it
never worked for me. Maybe I'm not understanding the docs the right way.

Maybe a QGIS Server dev can shed some light here.

This question has been raised few times and really never got a clear
answer, see for example

https://click.pstmrk.it/3ts/www.mail-archive.com%2Fqgis-developer%40lists.osgeo.org%2Fmsg52927.html/InJh/J420AQ/AQ/e672aec2-69f8-43ce-9048-38e907e1991b/1/jSBp6hhw_L
https://click.pstmrk.it/3ts/www.mail-archive.com%2Fqgis-user%40lists.osgeo.org%2Fmsg48102.html/InJh/J420AQ/AQ/e672aec2-69f8-43ce-9048-38e907e1991b/2/o3sFEoAawm

cheers

-- G --


Hi,
>
> I'm testing a QGISserver setup in which the project is cascading a WMTS
> (MapProxy).
>
> Performance is not so good... so I fiddled with
>
> QGIS_SERVER_CACHE_DIRECTORY=/cache
> and even with ??
> QGIS_OPTIONS_PATH=/cache
>
> where /cache is a mounted internal cache dir
>
> Is see QGISserver write all the stuff in /cache which I know from QGIS
> (profile dir) itself:
>
> # from within the container:
> # ls /cache
> bookmarks.xml  data8  fonts  gdal_pam  oauth2-cache  palettes  prepared
> qgis-auth.db  qgis.db  symbology-style.db
>
> But I keep seeing a lot of messages in the logs:
> QNetworkDiskCache::prepare() unable to open temporary file
> QNetworkDiskCache::prepare() unable to open temporary file
> ...
>
> So my question is, WHERE does Qt try to create the network cache...
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Plugin using Pythonnet fails to start during installation

2024-04-09 Thread Lars I. Nielsen via QGIS-Developer
Hi developers.

We've developed a QGIS plugin, that utilizes Pythonnet to communicate with C# 
on Windows.

Pythonnet is not part of the chosen distribution for Python in QGIS (as of 
3.34), so we do a separate installation of this module into %APPDATA%/Python, 
which is used by all Python distributions on the PC.

But even after Pythonnet has been installed correctly, we get an error when the 
QGIS plugin installer tries to start the plugin.

[cid:image001.png@01DA8A6B.9CAF2A30]

However, the plugin has been installed correctly, and it starts just fine when 
one manually activates it in the plugin window list.


Why can't the plugin start when activated by the QGIS plugin installer ?
Is it running in some kind of restricted environment, that excludes use of the 
APPDATA location ?

Cheers.


Ps!
We are aware of different versions of Pythonnet in Python 3.7 vs 3.9. We 
install both.



Med venlig hilsen

Lars I. Nielsen
GIS-kons., FME+Python Certified Professional
GeoData

[cid:image002.png@01DA8A6B.9CAF2A30]


Dir.
+4563136849
Tlf.
+4563136800
Mail
+l...@lifa.dk




LIFA A/S · Tlf +4563136800 · lifa.dk · 
CVR 20937289
Odense · Fredericia · Glostrup · Hillerød · Kerteminde · Kolding · Middelfart · 
Vejle · Vissenbjerg · Aarhus
[cid:image003.png@01DA8A6B.9CAF2A30]
Følg os på LinkedIn og læs de seneste nyheder fra LIFA A/S.

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


Re: [QGIS-Developer] QGIS Documentation Writer - Report

2024-04-09 Thread Régis Haubourg via QGIS-Developer
Hi Tim.
I am cooked. You made me want to try NixOs now. :)

Le lun. 8 avr. 2024, 14:03, Tim Sutton  a écrit :

> Hi Regis (and others curious about NixOS)
>
> On Mon, Mar 25, 2024 at 2:28 PM Selma Vidimlic via QGIS-Developer <
> qgis-developer@lists.osgeo.org> wrote:
>
>> Hello Régis,
>>
>> Thank you for your response and interest in my transition from Windows to
>> NixOS. The change is indeed significant, but I didn't do it alone. Tim
>> helped me set up the system. The thing is, on my PC where I work every day,
>> Windows started causing problems with constant updates, and after one of
>> the updates, the system failed to boot. I tried everything I knew (it's not
>> the first time this has happened), but it didn't work, so I decided to
>> switch to NixOS. As I mentioned, the change is significant, but for now, I
>> still have access to a laptop that is still on Windows, so I'm combining
>> the two. And Tim is of great help, I wouldn't be able to make this change
>> alone.
>>
>
> Yes, I will give Selma all the support she needs :-). For those curious
> about NixOS as a desktop / day to day productivity environment, yes you can
> 100% use it for this. And you don't need to be a guru to use it. Since
> April 2022 there is a nice graphical installer (
> https://www.phoronix.com/news/NixOS-22.05-Released) and they have
> probably one of the largest repositories of packages of any Linux
> distribution (around 80k packages), including QGIS and QGIS LTR which are
> always current. There are many other popular GIS packages too (see
> https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/gis with
> an active community that maintains them and more are elsewhere in the
> package repo). For novice users, installing a package is no more difficult
> than the equivalent in ubuntu:
>
> apt-get install qgis
>
> becomes
>
> nix-env -i qgis
>
> In fact it is easier since you don't need to set up QGIS 3rd party repo
> first in NixOS.
>
>
> A number of our (Kartoza) team who are not linux gurus use NixOS on their
> desktops - if you ever watched a QGIS Open Day event, it was orchestrated
> by Amy on her NixOS laptop :-P
>
> Have fun!
>
> Regards
>
> Tim
>
>
>
>
>
>>
>> Selma.
>>
>> On Fri, 22 Mar 2024 at 18:09, Régis Haubourg 
>> wrote:
>>
>>> Hi Selma,
>>> As usual we are all a bit silent, there is so much to follow. Your work
>>> is much appreciated. Keep on this way 
>>>
>>> About transitionning to NixOs, you talk about your computer for
>>> everyday's work ?
>>> I've never seen NixOs used as a desktop main setup, mainly for getting
>>> reproducible environment as an alternative to docker on servers. Let us
>>> know how it goes, but maybe the jump from windows to Nix is high ?
>>>
>>> Le ven. 22 mars 2024, 15:33, Selma Vidimlic via QGIS-Developer <
>>> qgis-developer@lists.osgeo.org> a écrit :
>>>
 Hello everyone,

 Here is the latest report:

- Organize table - toggle selection

- Insert/Edit expression button - display properties

- Relation Reference


 Additionally, I was focused on transitioning from WindowsOS to NixOS.

 Next week, I will continue documenting the 3.36 features. After that is
 finished, I will move on to the 3.38 features.

 Have a nice weekend,
 Selma.

 On Fri, 1 Mar 2024 at 17:37, Selma Vidimlic  wrote:

> Hello everyone,
>
> Here is the documentation report.
>
> Merged pull requests:
>
>- Identify tool inside the "Working with vector data" chapter
>
>- Identify tool in "Working with raster data" chapter
>
>- Issue #8231 - Container type
>
>- Temporal Controller
>
>
> Still open:
>
>- Style database
>
>
> Working on:
>
>- Identify tool for other data types
>- 3.36 features
>
>
> Have a nice weekend,
> Selma.
>
> On Fri, 16 Feb 2024 at 17:58, Selma Vidimlic 
> wrote:
>
>> Hello everyone,
>>
>> Here is the new report.
>>
>> Pull request that are merged this week:
>> New checkboxes 
>> MSSQL 
>> Field properties
>> 
>>
>> This week, and I will continue next week (point cloud and mesh), I
>> have been working on creating a new section for Identify results dialog 
>> for
>>