Re: [Qgis-developer] plugins.qgis.org - Python

2016-11-11 Thread gordon

To answer one of my questions:

http://python-future.org/compatible_idioms.html

Therefore futurize (and pasteurize to backport) may be alternatives to 
2to3 and allow development of plugin code that works for both QGIS 2 and 
QGIS 3.


It would be nice to get some directions to avoid going off in the wrong 
direction or add unnecessary overhead.


Gordon

On 2016-11-11 18:50, gor...@shieldaig.com wrote:

Being somewhat unfamiliar with Python I needed to have a QGIS plugin
to debug my code.

I modified the QGIS remote debug code for the QGIS 2.99 development
version.  It works on Ubuntu 16.04 and is forked from the GitHub site
for the qgis-remote-debug plugin.

This brought about a few questions:

1.  Are plugins going to be a complete break from QGIS < 2.99 in
moving forward to Python 3.5, Qt5.7, etc?

2.  Is 2to3 the only way to go?  I didn't use it but it probably would
have been easier.

3.  Is a plugin supposed to be backward compatible from Python 3.5+
and Qt5.7 to Python 2.7 or less and Qt4?

4.  How does one code to make the plugin work in the QGIS <= 2.18 and
QGIS >= 2.99?

5.  How is python-six, python3-six, or pypy-six supposed to be used or
python-future for that matter?

Any pointers will definitely help me produce more useful code.

Gordon

On 2016-11-10 18:37, gor...@shieldaig.com wrote:

The complication is that the plugin has to require a minimum QGIS
version of 2.99 but will will only show in the list if it is QGIS 3.0.

I have a remote debug version plugin that works on Ubuntu 16.04, QGIS
2.99 dev, and Eclipse Oxygen with PyQGIS3 (Python3) environment and
PyDev but getting the code in-place wasn't automatic.  I manually
copied it over to ~/apps/share/qgis/python/plugins.  To use on Ubuntu
16.04 .qgis3 (Python 3) and .qgis2 (Python 2) are hidden folders on
Ubuntu - so in Files-View-Show Hidden Files has to be activated before
the environment can be setup.

How is one supposed to make plugins backward compatible?  Import
syntax seems to be very different in Python 3 and print statement
syntax (among other changes) is also very different.  Can plugins pass
Python 2 and Python 3 lint checks or compilation?  How does one do
that?  The compiled python files (.pyc) are in a cache folder rather
in the same folder as .py files.  This is an intentional difference
but do they work or are they redundant?

Gordon


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] plugins.qgis.org - Python

2016-11-11 Thread gordon
Being somewhat unfamiliar with Python I needed to have a QGIS plugin to 
debug my code.


I modified the QGIS remote debug code for the QGIS 2.99 development 
version.  It works on Ubuntu 16.04 and is forked from the GitHub site 
for the qgis-remote-debug plugin.


This brought about a few questions:

1.  Are plugins going to be a complete break from QGIS < 2.99 in moving 
forward to Python 3.5, Qt5.7, etc?


2.  Is 2to3 the only way to go?  I didn't use it but it probably would 
have been easier.


3.  Is a plugin supposed to be backward compatible from Python 3.5+ and 
Qt5.7 to Python 2.7 or less and Qt4?


4.  How does one code to make the plugin work in the QGIS <= 2.18 and 
QGIS >= 2.99?


5.  How is python-six, python3-six, or pypy-six supposed to be used or 
python-future for that matter?


Any pointers will definitely help me produce more useful code.

Gordon

On 2016-11-10 18:37, gor...@shieldaig.com wrote:

The complication is that the plugin has to require a minimum QGIS
version of 2.99 but will will only show in the list if it is QGIS 3.0.

I have a remote debug version plugin that works on Ubuntu 16.04, QGIS
2.99 dev, and Eclipse Oxygen with PyQGIS3 (Python3) environment and
PyDev but getting the code in-place wasn't automatic.  I manually
copied it over to ~/apps/share/qgis/python/plugins.  To use on Ubuntu
16.04 .qgis3 (Python 3) and .qgis2 (Python 2) are hidden folders on
Ubuntu - so in Files-View-Show Hidden Files has to be activated before
the environment can be setup.

How is one supposed to make plugins backward compatible?  Import
syntax seems to be very different in Python 3 and print statement
syntax (among other changes) is also very different.  Can plugins pass
Python 2 and Python 3 lint checks or compilation?  How does one do
that?  The compiled python files (.pyc) are in a cache folder rather
in the same folder as .py files.  This is an intentional difference
but do they work or are they redundant?

Gordon


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Equirectangular images PyQt

2016-11-11 Thread Francisco José Raga López
The result is very good.
What I can not do is use it in qgis.

Traceback (most recent call last):
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:\OSGeo4W\apps\Python27\lib\site-packages\cefpython3\__init__.py",
line 8, in 
from . import cefpython_py27 as cefpython
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: DLL load failed: The specified module could not be found.

Any suggestions?

regards

Francisco Raga López

Analista/Desarrollador GIS Open Source

Móvil: (+34) 654275432 | e-Mail: franka1...@gmail.com | skype:
francisco_raga
Github: https://github.com/All4Gis
Linkedin: https://es.linkedin.com/in/franciscojoseragalopez

"La vida real no tiene ningún mapa.."  Ivy Compton Burnett
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Equirectangular images PyQt

2016-11-11 Thread Francisco José Raga López
 the osge-mantra
> > from QGIS users, just because they think you need that to use plugins.
> >
> > I think it is because plugins.qgis.org lands on a page in which it says:
> > "In order to access to some functionalities of this website you will
> > need to login with a valid OSGEO ID."
> >
>
>
> Hi,
>
> just to be sure that you are aware of that, in case the the front page text
> needs changes/updates it can be easily edited online by clicking on
> http://plugins.qgis.org/admin/flatpages/flatpage/1/ (with proper
> credentials).
>
> BTW, I'd also like to see the front page reworked, as it is there is too
> much text. Creating new subpages (flatpages in Django admin) is very easy
> but maybe we should better merge all the information on the plugin site
> into the main documentation PyQGIS Cookbook and link to the appropriate
> sections on that site.
>
>
>
> Cheers
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
> -- next part --
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/qgis-developer/
> attachments/2016/8bf7a407/attachment-0001.html>
>
> --
>
> Message: 4
> Date: Fri, 11 Nov 2016 07:57:37 +0100
> From: Paolo Cavallini 
> To: qgis-developer@lists.osgeo.org
> Subject: Re: [Qgis-developer] plugins.qgis.org
> Message-ID: <519383f2-1676-b441-5bbb-2d7f7f511...@faunalia.it>
> Content-Type: text/plain; charset=utf-8
>
> Il 11/11/2016 07:54, Alessandro Pasotti ha scritto:
>
> > BTW, I'd also like to see the front page reworked, as it is there is too
> > much text. Creating new subpages (flatpages in Django admin) is very
> > easy but maybe we should better merge all the information on the plugin
> > site into the main documentation PyQGIS Cookbook and link to the
> > appropriate sections on that site.
>
> +1
> thanks
> --
> Paolo Cavallini - www.faunalia.eu
> QGIS & PostGIS courses: http://www.faunalia.eu/training.html
> https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis
>
>
> --
>
> Message: 5
> Date: Fri, 11 Nov 2016 10:08:20 +0100
> From: Luigi Pirelli 
> To: Francisco José Raga López 
> Cc: "qgis-developer@lists.osgeo.org" 
> Subject: Re: [Qgis-developer] Equirectangular images PyQt
> Message-ID:
>  c...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi Francisco, your suggestion is to move from QWebView to CEF/PyQT?
>
> QWetKit (on qt4) has been discontinued on debia due to low secure
> maintenance, but reintroduced with qt5... doo you think it could be
> CEF more supported with only three contributors? CEF seems more active
> and could be an interesting solution. Can you prepare a proof of
> concept porting build for e.g. identify tool or plugin manager?
>
> btw three.js is already usable in QWebView since (at least) 2011, do
> you mind CEF would introduce some advantages respect QWebView?
>
> regards
> Luigi Pirelli
>
> 
> **
> * Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
> * LinkedIn: https://www.linkedin.com/in/luigipirelli
> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
> * GitHub: https://github.com/luipir
> * Mastering QGIS 2nd Edition:
> * https://www.packtpub.com/big-data-and-business-
> intelligence/mastering-qgis-second-edition
> 
> **
>
>
> On 10 November 2016 at 19:28, Francisco José Raga López
>  wrote:
> > Finally I'm using  Cef Python and three.js
> >
> > https://github.com/cztomczak/cefpython
> >
> > Is so great the result.
> >
> > regards
> >
> > Francisco José Raga López
> >
> > Analista/Desarrollador GIS Open Source "QGis"
> >
> > Móvil: (+34) 654275432 | e-Mail: franka1...@gmail.com | skype:
> > francisco_raga
> > Github: https://github.com/All4Gis
> > Linkedin: https://es.linkedin.com/in/franciscojoseragalopez
> >
> > "La vida real no tiene ningún mapa.."  Ivy Compton Burnett
> >
> > ___
> > Qgis-developer mailing list
> > Qgis-developer@lists.osgeo.org
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> --
>
> Message: 6
> Date: Fri, 11 Nov 2016 11:09:39 +
&g

Re: [Qgis-developer] QGIS Desktop: icelandic, a missing language?

2016-11-11 Thread DelazJ
More information at
http://lists.osgeo.org/pipermail/qgis-tr/2016-November/000745.html

Regards,
Harrissou

2016-11-11 17:59 GMT+01:00 DelazJ :

> Hi,
> Looking at QGIS Application project in Transifex, it appears that the
> icelandic is transated at 50% but not available in QGIS (actually in
> https://github.com/qgis/QGIS/tree/master/i18n) while slovak (40%) is
> available.
>
> What's the minimum translated strings required to have a language pushed
> to QGIS?
>
>
>
>
>
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] QGIS Desktop: icelandic, a missing language?

2016-11-11 Thread DelazJ
Hi,
Looking at QGIS Application project in Transifex, it appears that the
icelandic is transated at 50% but not available in QGIS (actually in
https://github.com/qgis/QGIS/tree/master/i18n) while slovak (40%) is
available.

What's the minimum translated strings required to have a language pushed to
QGIS?
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Planning code sprint in Daytona Beach, FL (please vote on dates if interested)

2016-11-11 Thread Daniel Morissette

(I apologize in advance for the cross-posting.)

We are considering holding the annual "C Tribe" Code Sprint in Daytona 
Beach, FL and are currently considering two dates.


If you are interested in attending, then please confirm your interest 
and the dates that work for you in this Doodle. We will keep the doodle 
open until early next week:


http://doodle.com/poll/vyyew4ibbwcdp6ka

You can find out more about the plan as it evolves in the wiki:

https://wiki.osgeo.org/wiki/Daytona_Beach_Code_Sprint_2017

and follow the full discussion on the "tosprint" list:

https://lists.osgeo.org/pipermail/tosprint/2016-November/000644.html


* Note that the "C Tribe Sprint" is labelled this way only for 
historical reasons since and is really open to all "tribes". The goal is 
cross-project collaboration and all OSGeo projects are invited.


Daniel
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] plugins.qgis.org

2016-11-11 Thread Alexandre Neto
That was my thinking. Having links to documentation is a much better
approach compared with the wall of text in the front page.

A sex, 11/11/2016, 06:57, Paolo Cavallini  escreveu:

> Il 11/11/2016 07:54, Alessandro Pasotti ha scritto:
>
> > BTW, I'd also like to see the front page reworked, as it is there is too
> > much text. Creating new subpages (flatpages in Django admin) is very
> > easy but maybe we should better merge all the information on the plugin
> > site into the main documentation PyQGIS Cookbook and link to the
> > appropriate sections on that site.
>
> +1
> thanks
> --
> Paolo Cavallini - www.faunalia.eu
> QGIS & PostGIS courses: http://www.faunalia.eu/training.html
> https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Alexandre Neto
-
@AlexNetoGeo
http://sigsemgrilhetas.wordpress.com
http://gisunchained.wordpress.com
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Equirectangular images PyQt

2016-11-11 Thread Luigi Pirelli
Hi Francisco, your suggestion is to move from QWebView to CEF/PyQT?

QWetKit (on qt4) has been discontinued on debia due to low secure
maintenance, but reintroduced with qt5... doo you think it could be
CEF more supported with only three contributors? CEF seems more active
and could be an interesting solution. Can you prepare a proof of
concept porting build for e.g. identify tool or plugin manager?

btw three.js is already usable in QWebView since (at least) 2011, do
you mind CEF would introduce some advantages respect QWebView?

regards
Luigi Pirelli

**
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
* 
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
**


On 10 November 2016 at 19:28, Francisco José Raga López
 wrote:
> Finally I'm using  Cef Python and three.js
>
> https://github.com/cztomczak/cefpython
>
> Is so great the result.
>
> regards
>
> Francisco José Raga López
>
> Analista/Desarrollador GIS Open Source "QGis"
>
> Móvil: (+34) 654275432 | e-Mail: franka1...@gmail.com | skype:
> francisco_raga
> Github: https://github.com/All4Gis
> Linkedin: https://es.linkedin.com/in/franciscojoseragalopez
>
> "La vida real no tiene ningún mapa.."  Ivy Compton Burnett
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer