Re: [Qgis-user] OTB8.0.1-Learning-TrainImagesClassifier

2022-05-09 Thread Alex Bley via Qgis-user
Thank you very much Julien
Regards,
Alex

Em seg., 9 de mai. de 2022 às 04:25, Julien Cabieces <
julien.cabie...@oslandia.com> escreveu:

>
> Hi,
>
> OTB 8.0 is not compatible with QGIS 3.16, you should use the 3.22 which
> is the current LTR and which is compatible with OTB 8.0. Take a look at
> the compatibility matrix:
>
>
> https://www.orfeo-toolbox.org/CookBook/QGISInterface.html#compatibility-between-qgis-and-otb-versions
>
> Regards,
> Julien
>
>
> > Good afternoon!
> > When i use the OTB8.0.1-Learning-TrainImagesClassifier in area "Input
> > Vector Data List" i have the message: "could not load selected
> table/layer.
> > Dependent field cannot be filled".
> > So, how can i fix this problem?
> > I think the problem is in version 8.0.1
> > I use Qgis 3.16.
> > ___
> > 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
>
>
___
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] ReportLab integration into QGIS returns error message "no module named reportlab"

2022-05-09 Thread julio cesar oliveira via Qgis-user
Dears,

The installation of reportlab by the OSGeo4W shell worked.
Thanks

Em seg., 9 de mai. de 2022 às 05:33, Andrea Giudiceandrea via Qgis-user <
qgis-user@lists.osgeo.org> escreveu:

> *Richard Duivenvoorde* rdmailings at duif.net
> 
> *Mon May 9 00:30:55 PDT 2022*
> --
>
> I googled (qgis pip install) this one for 
> you:https://landscapearchaeology.org/2018/installing-python-packages-in-qgis-3-for-windows/
>
>
> That tutorial is a little bit outdated, since the "py3_env" command is no
> longer part of the current OSGeo4W shell command set (and it is not needed
> any more).
>
> Just using the normal "pip install reportlab" command in the OSGeo4W
> shell, as already pointed out by Ludwig Kniprath, let it possible to
> install the reportlab Python module in order to be used in QGIS.
>
> 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
>
___
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] ReportLab integration into QGIS returns error message "no module named reportlab"

2022-05-09 Thread Andrea Giudiceandrea via Qgis-user
*Richard Duivenvoorde*rdmailings at duif.net 


/Mon May 9 00:30:55 PDT 2022/

I googled (qgis pip install) this one for you:
https://landscapearchaeology.org/2018/installing-python-packages-in-qgis-3-for-windows/


That tutorial is a little bit outdated, since the "py3_env" command is 
no longer part of the current OSGeo4W shell command set (and it is not 
needed any more).


Just using the normal "pip install reportlab" command in the OSGeo4W 
shell, as already pointed out by Ludwig Kniprath, let it possible to 
install the reportlab Python module in order to be used in QGIS.


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] ReportLab integration into QGIS returns error message "no module named reportlab"

2022-05-09 Thread Ludwig Kniprath via Qgis-user

Hi,

Python inside QGis has no access to plugins installed by pip if called 
from normal shell.


But running "pip install reportlab" from the osgeo4w-shell should do it.


"pip show reportlab" after pip-from-shell-installation returns

"Location: 
c:\users\ludwi\appdata\local\programs\python\python39\lib\site-packages"


and "import reportlab" in QGis Python Console results 
"ModuleNotFoundError: No module named 'reportlab'"



"pip show reportlab" after osgeo4W-shell-installation returns

"Location: c:\users\ludwi\appdata\roaming\python\python39\site-packages"

and no error with "import reportlab" in QGis Python Console


Ludwig

Am 09.05.2022 um 04:52 schrieb julio cesar oliveira via Qgis-user:

Dears,

I want to use ReportLab in my own plugin which I have written for QGIS.

I have installed ReportLab for the python versions 3.10.

The package is respectively installed into the site-packages folder 
(e.g. 
C:\Users\olive\AppData\Local\Programs\Python\Python310\Lib\site-packages\reportLab).


If I want to use the tool in my plugin (from reportlab.pdfgen import 
canvas), the plugin returns the error "ImportError: no module named 
reportLab".


**

C:\PyQgis\cav> pip install reportlab

Requirement already satisfied: reportlab in 
c:\users\olive\appdata\local\programs\python\python310\lib\site-packages 
(3.6.9)
Requirement already satisfied: pillow>=4.0.0 in 
c:\users\olive\appdata\local\programs\python\python310\lib\site-packages 
(from reportlab) (9.1.0)


**

Do you have any other suggestions or ideas?


Thanks


___
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___
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] OTB8.0.1-Learning-TrainImagesClassifier

2022-05-09 Thread Julien Cabieces via Qgis-user


Hi,

OTB 8.0 is not compatible with QGIS 3.16, you should use the 3.22 which
is the current LTR and which is compatible with OTB 8.0. Take a look at
the compatibility matrix:

https://www.orfeo-toolbox.org/CookBook/QGISInterface.html#compatibility-between-qgis-and-otb-versions

Regards,
Julien


> Good afternoon!
> When i use the OTB8.0.1-Learning-TrainImagesClassifier in area "Input
> Vector Data List" i have the message: "could not load selected table/layer.
> Dependent field cannot be filled".
> So, how can i fix this problem?
> I think the problem is in version 8.0.1
> I use Qgis 3.16.
> ___
> 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

___
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] ReportLab integration into QGIS returns error message "no module named reportlab"

2022-05-09 Thread Richard Duivenvoorde via Qgis-user

Hi Julio,

That is probably because QGIS does not use your system Python, but it's own 
installed version, so instlaling it in your globabl one does not make it 
available for QGIS.

I googled (qgis pip install) this one for you:
https://landscapearchaeology.org/2018/installing-python-packages-in-qgis-3-for-windows/

Regards,

Richard Duivenvoorde


On 5/9/22 04:52, julio cesar oliveira via Qgis-user wrote:

Dears,

I want to use ReportLab in my own plugin which I have written for QGIS.

I have installed ReportLab for the python versions 3.10.

The package is respectively installed into the site-packages folder (e.g. 
C:\Users\olive\AppData\Local\Programs\Python\Python310\Lib\site-packages\reportLab).

If I want to use the tool in my plugin (from reportlab.pdfgen import canvas), the plugin 
returns the error "ImportError: no module named reportLab".

**

C:\PyQgis\cav> pip install reportlab

Requirement already satisfied: reportlab in 
c:\users\olive\appdata\local\programs\python\python310\lib\site-packages (3.6.9)
Requirement already satisfied: pillow>=4.0.0 in 
c:\users\olive\appdata\local\programs\python\python310\lib\site-packages (from 
reportlab) (9.1.0)

**

Do you have any other suggestions or ideas?


Thanks


___
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


___
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