Re: [Qgis-developer] Calling GRASS From a Python QGIS Script

2011-06-28 Thread G. Allegri
The problem is probably related to the way the Subprocess module handles the
I/O inside the QGis python console. It's a problem I've read about various
times, and is specific of the Windows environemnt.
Two thread I recently read about this are [1] and [2], and both consider it
a Subprocess bug.
I hope to find some time to reproduce it...

giovanni

[1] http://bugs.python.org/issue3905
[2]
http://bytes.com/topic/python/answers/634409-subprocess-handle-invalid-error

2011/6/28 romain riviere romain.riviere@gmail.com

 Hi all,

 I'm using windows XP and QGIS 1.7 (classic installation, python 2.5, grass
 6.4.1 ). My Goal is to create a QGIS plugin for complex network analysis
 (TSP,steinman tree,...), using GRASS capabilities. It aims to be very
 user-friendly, and cross-platform.
 I'm trying to call GRASS from within a QGIS python plugin, but I get the
 following error (python console module):

 Code:  (inspired by:
 http://grass.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly
 )

 import os
 import sys

 gisbase = os.environ['GISBASE'] = r path to QGIS 
 sys.path.append(os.path.join(os.environ['GISBASE'], etc, python))



 import grass.script as grass


 Error:

  import grass.script as grass

 Traceback (most recent call last):

 File input, line 1, in module

 File C:/PROGRA~1/QUANTU~2/apps/qgis/./python\qgis\utils.py, line 283, in
 _import

 mod = _builtin_import(name, globals, locals, fromlist, level)

 File C:\Program Files\Quantum GIS
 Wroclaw\apps\grass\grass-6.4.1\etc\python\grass\script\__init__.py, line 1,
 in module

 from core import *

 File C:/PROGRA~1/QUANTU~2/apps/qgis/./python\qgis\utils.py, line 283, in
 _import

 mod = _builtin_import(name, globals, locals, fromlist, level)

 File C:\Program Files\Quantum GIS
 Wroclaw\apps\grass\grass-6.4.1\etc\python\grass\script\core.py, line 1073,
 in module

 debug_level = int(gisenv().get('DEBUG', 0))

 File C:\Program Files\Quantum GIS
 Wroclaw\apps\grass\grass-6.4.1\etc\python\grass\script\core.py, line 514,
 in gisenv

 s = read_command(g.gisenv, flags='n')

 File C:\Program Files\Quantum GIS
 Wroclaw\apps\grass\grass-6.4.1\etc\python\grass\script\core.py, line 225,
 in read_command

 ps = pipe_command(*args, **kwargs)

 File C:\Program Files\Quantum GIS
 Wroclaw\apps\grass\grass-6.4.1\etc\python\grass\script\core.py, line 202,
 in pipe_command

 return start_command(*args, **kwargs)

 File C:\Program Files\Quantum GIS
 Wroclaw\apps\grass\grass-6.4.1\etc\python\grass\script\core.py, line 164,
 in start_command

 return Popen(args, **popts)

 File C:\Program Files\Quantum GIS
 Wroclaw\apps\grass\grass-6.4.1\etc\python\grass\script\core.py, line 55, in
 __init__

 startupinfo, creationflags)

 File C:\PROGRA~1\QUANTU~2\apps\Python25\lib\subprocess.py, line 587, in
 __init__

 errread, errwrite) = self._get_handles(stdin, stdout, stderr)

 File C:\PROGRA~1\QUANTU~2\apps\Python25\lib\subprocess.py, line 700, in
 _get_handles

 p2cread = self._make_inheritable(p2cread)

 File C:\PROGRA~1\QUANTU~2\apps\Python25\lib\subprocess.py, line 745, in
 _make_inheritable

 DUPLICATE_SAME_ACCESS)

 WindowsError: [Error 6] The handle is invalid



 I am pretty sure this is due to the Python Path, because the same code
 works well in a classic python console (outside QGIS). But I'm not able to
 resolve this issue. I haven't test yet, but I'm pretty sure it's working on
 ubuntu.

 Another Question:

 Does anyone know how to import QGIS  vector layer directly into GRASS ( as
 v.in.ogr.qgis.loc from the GRASS Plugin)


 Any help is welcome.

 Romain,
 *
 *


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


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


Re: [Qgis-developer] Re: MeteoIO

2011-06-28 Thread Marco Hugentobler
Hi Mathias

Anyway, for now, I would propose the solar radiation code (that I would 
copy/past in place, not to depend on MeteoIO), that would bring a 
self-contained feature that I have never seen in GIS.

Sounds like the code for terrain shadowing and interpolation would be a nice 
addition to the analysis library of QGIS (code under src/analysis). Currently 
this library contains code for raster calculation, zonal statistics, some 
vector analysis and a bit of spatial interpolation (IDW and TIN). It would be 
great to have more content inside this library and especially more people 
maintaining it.

Code inside the analysis library will be accessible from all the plugins (C++ 
and python) and if needed also from the server. 

Regards,
Marco




-- 
Dr. Marco Hugentobler
Sourcepole -  Linux  Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentob...@sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS Processing Framework

2011-06-28 Thread Camilo Polymeris
On Mon, Jun 27, 2011 at 3:59 PM, Camilo Polymeris cpolyme...@gmail.com wrote:
 Given that there are no objections  I have studied the traits docs
 without finding any reason against it, I'll start migration of the
 framework.

Having trouble with that.. QGIS segfaults when I try to load any of
the modules in enthought.traits, e.g.:

import enthought.traits.api

When running the import through pdb it seems to hang. Can someone
please confirm?

Thanks,
Camilo
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


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

2011-06-28 Thread Pirmin Kalberer
Anita, Carson, Jean Roc,

I'm replying from the Nabble qgis-developer forum now...


Anita Graser wrote:
 
 Some forum users are already cross-posting on gis.stackexchange. Maybe
 that
 would be a solution.
 

I support using gis.stackexchange instead of phpBB forum as well. It does
not fullfill the ultimate wish to have only one place for user support, but
gis.stackechange at least adds some quality to an old-school forum. I like
especially that you don't have to create another account and can login with
OpenID instead.


Anita Graser wrote:
 
 Regards,
 Anita
 
 
 On Mon, Jun 27, 2011 at 9:25 PM, MORREALE Jean Roc
 lt;jr.morre...@enoreth.netgt;wrote:
 
 In the french-speaking community there is two big forums where users come
 to get support for qgis, they are better referenced than our forum on
 google
 so it is often their first stop. I'm sure that there must be an
 equivalent
 place for english speakers, if so it would better to redirect non-ML
 people
 to these forums rather than keeping our own with a lower reply rate.

 Le 27/06/2011 21:16, Carson J Q Farmer a écrit :

  I think we have to be careful here, there are a lot of users out
 there who don't use mailing lists as a general rule. Mailing lists
 tend to be a bit more of a 'commitment' than forums, and I think we'd
 be alienating a lot of users if we drop the forums completely... Is
 there anyway to set it up so that forum questions are routed to the
 mailing list, while still appearing to be within the forums for those
 that prefer this? A new forum structure would probably be fine/nice,
 but mailing lists tend to be quite 'developer-centric'... I prefer
 mailing lists myself... But many of my students are 'afraid' or weary
 of them...

 


AFAIK the only difference between Nabble and phpBB forum is, that Nabble
requires you to subscribe to the mailing list as well, before you can post a
message. Subscribing can be done with one button click. But maybe this is
realla too much 'commitment' for a new user.

Regards
Pirmin


 On the other hand, the mailing list format works well for the R
 project...

 Just some thoughts to throw around before we completely abandon the
 forums... And possibly some users...

 Carson

 -- Carson J. Q. Farmer ISSP Doctoral Fellow National Centre for
 Geocomputation National University of Ireland, Maynooth
 www.carsonfarmer.com

 On 27 Jun 2011, at 05:36 p.m., Anita Graserlt;anitagra...@gmx.atgt;
 wrote:

  +1 from your forum mod ;)

 Anything that reduces complexity in our web infrastructure is a
 plus. The forums attract a lot of spam (= work cleaning up) and I
 feel like there's a much bigger audience following the mailing list
 anyway.

 Best wishes, Anita




 On Mon, Jun 27, 2011 at 5:47 PM, Pirmin
 Kalbererlt;pi...@sourcepole.comgt;  wrote: Hi all, Some time ago it
 was
 mentioned that forum.qgis.org should be replaced. Why not simply
 redirect to
 http://osgeo-org.1803224.n2.nabble.com/qgis-user-f2036571.html ?
 Regards Pirmin




--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/forum-qgis-org-tp6521024p6523909.html
Sent from the qgis-developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


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

2011-06-28 Thread Paolo Cavallini
Il giorno mar, 28/06/2011 alle 00.20 -0700, Pirmin Kalberer ha scritto: 
 gis.stackechange at least adds some quality to an old-school forum. I like
 especially that you don't have to create another account and can login with
 OpenID instead.

Good point. I do not like (nobody likes it, I guess) having I do not
know how many IDs to access the various parts of QGIS infrastructure
(wiki, redmine, git, joomla, ...).
Anybody interested in helping to develop a simpler solution?
Thanks.
-- 
Paolo Cavallini: http://www.faunalia.it/pc

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


Re: [Qgis-developer] Re: MeteoIO

2011-06-28 Thread Paolo Cavallini
Il giorno mar, 28/06/2011 alle 08.45 +0200, Marco Hugentobler ha
scritto: 
 Sounds like the code for terrain shadowing and interpolation would be a nice 
 addition to the analysis library of QGIS (code under src/analysis). Currently 

Agreed, it would be good to have it.
Mathias, do you expect major problems in merging it as suggested by
Marco?
All the best, and thanks.
-- 
Paolo Cavallini: http://www.faunalia.it/pc

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


Re: [Qgis-developer] QGIS Processing Framework

2011-06-28 Thread Paolo Cavallini
Il giorno mar, 28/06/2011 alle 03.09 -0400, Camilo Polymeris ha
scritto: 
 On Mon, Jun 27, 2011 at 3:59 PM, Camilo Polymeris cpolyme...@gmail.com 
 wrote:
  Given that there are no objections  I have studied the traits docs
  without finding any reason against it, I'll start migration of the
  framework.
 
 Having trouble with that.. QGIS segfaults when I try to load any of
 the modules in enthought.traits, e.g.:
 
 import enthought.traits.api
 
 When running the import through pdb it seems to hang. Can someone
 please confirm?
 
 Thanks,
 Camilo
Confirmed, it crashes with
Loaded symbols
for /usr/lib/python2.7/dist-packages/enthought/traits/ctraits.so
Reading symbols
from 
/usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so...(no 
debugging symbols found)...done.
Loaded symbols
for /usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so
Core was generated by `/usr/bin/qgis.bin'.
Program terminated with signal 11, Segmentation fault.
#0  0x7f3bf98764c8 in ?? ()

from /usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so


traits from official deb package.
All the best.
-- 
Paolo Cavallini: http://www.faunalia.it/pc

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


[Qgis-developer] forum.qgis.org

2011-06-28 Thread Nick Hopton
 From: Paolo Cavallini cavall...@faunalia.it
 Subject: Re: [Qgis-developer] forum.qgis.org
 To: qgis-developer@lists.osgeo.org

 I had reports of people disappointed from not having a response through the 
 forum (I
 understand few devs and power users hang out there).

I know from personal experience that this is correct.

 If true, this would not be a positive thing for qgis.

Agreed.

 What are from your point of view the differences between a ML and a forum?

These things are a matter of personal preference. In my case, I feel
more at home in a forum, but that said I could live happily enough
with the mailing list. There are problems with the forum, it does go
down sometimes, it can be slow to respond and of course it also
attracts spam. The upside is that it provides a friendly place of
first resort for newcomers to QGIS.

I'm ancient and as a result wary about talk of rationalisation and
simplification g. Very often all that happens is that things become
vastly more complex and difficult to manage (there is a law of
unexpected consequences).

Regards, Nick.

-- 
Nick Hopton, Caversham, Reading, England.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


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

2011-06-28 Thread Otto Dassau
Am Tue, 28 Jun 2011 12:16:04 +0200
schrieb Paolo Cavallini cavall...@faunalia.it:

 Il giorno mar, 28/06/2011 alle 09.38 +0200, Paolo Cavallini ha scritto: 
  Good point. I do not like (nobody likes it, I guess) having I do not
  know how many IDs to access the various parts of QGIS infrastructure
  (wiki, redmine, git, joomla, ...).
  Anybody interested in helping to develop a simpler solution?
 
 BTW: the registration to the wiki currently AFAIK requires manual
 intervention. Wouldn't it be better to move the content to redmine
 integrated wiki, so to have one less piece to maintain, one more login
 etc.?
 All the best.

yes, that would make sense. We need to find out, if and how a migration could
work.

regards, Otto 
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


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

2011-06-28 Thread Pirmin Kalberer
Am Dienstag, 28. Juni 2011, um 12.21:21 schrieb Otto Dassau:
 Am Tue, 28 Jun 2011 12:16:04 +0200
 
 schrieb Paolo Cavallini cavall...@faunalia.it:
  Il giorno mar, 28/06/2011 alle 09.38 +0200, Paolo Cavallini ha scritto:
   Good point. I do not like (nobody likes it, I guess) having I do not
   know how many IDs to access the various parts of QGIS infrastructure
   (wiki, redmine, git, joomla, ...).
   Anybody interested in helping to develop a simpler solution?
  
  BTW: the registration to the wiki currently AFAIK requires manual
  intervention. Wouldn't it be better to move the content to redmine
  integrated wiki, so to have one less piece to maintain, one more login
  etc.?
  All the best.
 
 yes, that would make sense. We need to find out, if and how a migration
 could work.

There is only an old migration script, which is not working anymore  
(http://www.redmine.org/issues/1224). So migrating MediaWiki 1.15 to the 
Redmine Wiki will require some work (from my side e.g.).

Advantages:
-Same (OSGEO)-Login as for bug tracker
-Direct Wiki links from Bug trackers

Disadvantages:
-Different Wiki Syntax
-Some Media wiki features will be missing (Tab menu?, Categories?, HTML 
embedding?, What links here?, Maintenance reports?)

Regards
Pirmin

-- 
Pirmin Kalberer
Sourcepole  -  Linux  Open Source Solutions
http://www.sourcepole.com
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


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

2011-06-28 Thread Nathan Woodrow
+1 for moving to redmine for wiki.  Having everything in one place would be
a good thing, less logins; one syntax; good time to clean up dead links and
old info; etc etc

- Nathan

On Tue, Jun 28, 2011 at 8:37 PM, Pirmin Kalberer pi...@sourcepole.comwrote:

 Am Dienstag, 28. Juni 2011, um 12.21:21 schrieb Otto Dassau:
  Am Tue, 28 Jun 2011 12:16:04 +0200
 
  schrieb Paolo Cavallini cavall...@faunalia.it:
   Il giorno mar, 28/06/2011 alle 09.38 +0200, Paolo Cavallini ha scritto:
Good point. I do not like (nobody likes it, I guess) having I do not
know how many IDs to access the various parts of QGIS infrastructure
(wiki, redmine, git, joomla, ...).
Anybody interested in helping to develop a simpler solution?
  
   BTW: the registration to the wiki currently AFAIK requires manual
   intervention. Wouldn't it be better to move the content to redmine
   integrated wiki, so to have one less piece to maintain, one more login
   etc.?
   All the best.
 
  yes, that would make sense. We need to find out, if and how a migration
  could work.

 There is only an old migration script, which is not working anymore
 (http://www.redmine.org/issues/1224). So migrating MediaWiki 1.15 to the
 Redmine Wiki will require some work (from my side e.g.).

 Advantages:
 -Same (OSGEO)-Login as for bug tracker
 -Direct Wiki links from Bug trackers

 Disadvantages:
 -Different Wiki Syntax
 -Some Media wiki features will be missing (Tab menu?, Categories?, HTML
 embedding?, What links here?, Maintenance reports?)

 Regards
 Pirmin

 --
 Pirmin Kalberer
 Sourcepole  -  Linux  Open Source Solutions
 http://www.sourcepole.com
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

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


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

2011-06-28 Thread Paolo Cavallini
Il giorno mar, 28/06/2011 alle 12.37 +0200, Pirmin Kalberer ha scritto:

 Disadvantages:
 -Different Wiki Syntax
 -Some Media wiki features will be missing (Tab menu?, Categories?, HTML 
 embedding?, What links here?, Maintenance reports?)

Thanks Pirmin for the analysis. IMHO the only serious drawback is the
migration cost; I think we can live without the Mediawiki fancies, and
we are all used to more than one wiki sintax, I guess (no unification in
wikis, rather surprising and disappointing).
All the best.
-- 
Paolo Cavallini: http://www.faunalia.it/pc

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


[Qgis-developer] Re: Please add git http method instructions for proxy...

2011-06-28 Thread marco bra
2011/6/27 marco bra marcobra.ubu...@gmail.com:
 Hi all

 Tim, i use git thru cntlm proxy and to get git working i must do

 export http_proxy=http://127.0.0.1:3128
 git clone http://github.com/qgis/Quantum-GIS.git

 the git:// do not traverse the proxy...

 export http_proxy=http://127.0.0.1:3128
 git clone git://github.com/qgis/Quantum-GIS.git

 Please put some row about this to help other users, into:

 https://github.com/qgis/Quantum-GIS/blob/master/INSTALL

 git section...


Then if i try to made

cd $HOME/src/Quantum-GIS
export http_proxy=http://127.0.0.1:3128
git pull

i get this
error: RPC failed; result=22, HTTP code = 417

so i try:

export http_proxy=http://127.0.0.1:3128
cd $HOME/src/Quantum-GIS
git pull http://github.com/qgis/Quantum-GIS.git master

i get

remote: Counting objects: 9, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 5 (delta 4), reused 5 (delta 4)
Unpacking objects: 100% (5/5), done.
From http://github.com/qgis/Quantum-GIS
 * branchmaster - FETCH_HEAD
Updating 6509df2..c769cdd
Fast-forward
 src/mapserver/qgswmsserver.cpp |   33 ++---
 1 files changed, 6 insertions(+), 27 deletions(-)

seems this is fine...

Hope this helps

Best regards
Marco

-- 
Linux Infinite Freedom
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-user] Re: [Qgis-developer] qgis-saga-python bindings in ubuntu

2011-06-28 Thread Johan Van de Wauw
On Thu, Jun 23, 2011 at 11:10 AM, Agustin Lobo alobolis...@gmail.comwrote:

 Is it possible to install the python bindings for a saga installation
 from binaries friom ubuntugis-unstable?


I'm currently busy uploading the new versions. After uploading it will take
approximately one hour to compile.
Once this is done the package you are looking for is called: python-saga


Also, while I do have the ubuntugis-unstable repository in the
 synaptic list, synaptic finds saga 2.05+dfsg-0.1~lucid
 while 
 https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstablehttps://launchpad.net/%7Eubuntugis/+archive/ubuntugis-unstable
 lists saga 2.0.6+dfsg-0~lucid. Why?


Because it was uploaded but (for some reason) did not compile. Not your
fault.



 Thanks
 Agus


 -- Forwarded message --
 From: MALIK Julien julien.ma...@c-s.fr
 Date: 2011/6/23
 Subject: [Qgis-user] Re: [Qgis-developer] qgis-saga-python bindings in
 ubuntu
 To: cavall...@faunalia.it cavall...@faunalia.it
 Cc: qgis-user qgis-u...@lists.osgeo.org, qgis-developer
 qgis-developer@lists.osgeo.org, agustin.l...@ija.csic.es


 For ubuntu, you are probably looking for this :
 https://launchpad.net/~johanvdw

 Julien

 Quoting cavall...@faunalia.it cavall...@faunalia.it:

  A debian plugin is under preparation. Otherwise you'll have to build it
 yourself.
  All the best.
 
  http://faunalia.it/pc
 
  - Reply message -
  Da: Agustin Lobo alobolis...@gmail.com
  A: qgis-user qgis-u...@lists.osgeo.org, qgis-developer 
 qgis-developer@lists.osgeo.org
  Oggetto: [Qgis-developer] qgis-saga-python bindings in ubuntu
  Data: gio, giu 23, 2011 07:04
 
 
  Does anyone know if there is any way to get the required (by the qgis
  saga plugin) python bindings for the binary distribution of
  saga for debian and ubuntu?
 
  Thanks
 
  Agus
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 



 
 This message was sent using IMP, the Internet Messaging Program.


 ___
 Qgis-user mailing list
 qgis-u...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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


Re: [Qgis-developer] Announcing the release of QGIS 1.7 'Wrocław'

2011-06-28 Thread Tim Sutton
Hi William

On Mon, Jun 27, 2011 at 12:31 AM, William Kyngesburye
wokl...@kyngchaos.com wrote:
 On Jun 20, 2011, at 6:51 AM, Tim Sutton wrote:

 I just did some long-overdue catching up on my webserver logs.  I can put 
 together counts of OS X downloads if you like.


 Oh - I'd like to see those stats too!

 Regards

 Tim

 Took me a while... I found that the web logs counted requests and bytes, but 
 not necessarily completed downloads (didn't account for aborted downloads), 
 and had to do it over using downloaded byte counts and lookups to file sizes. 
  The * below was very exaggerated at over 8000 hits, most others were 
 exaggerated approx 2x.

 Very crude table:

 1.4         2010-1  2       3       4       5       6       7
    snow    548     583     754     642     634     547     551
    leo     254     257     380     294     263     235     194
    ssnow   585     721     858     733     763     715     649
    sleo    360     437     546     473     482     362     293

 1.5         2010-8  9       10      11
    snow    569     632     918     808
    leo     166     237     313     253
    ppc     -       -       65      76
    ssnow   825*    967     1106    838
    sleo    311     378     486     342

 1.6         2010-11 12      2011-1  2       3       4       5       6
    snow    297     1992    2060    1994    2079    1899    1671
    leo     136     611     608     588     606     521     451
    ppc     15      155     139     153     139     112     100

 'snow' and 'leo' are the 2 main OS X systems, 10.6 and 10.5 respectively.  
 'ssnow' and 'sleo' are the standalone packages. 'ppc' is when I split the leo 
 package because the new Qt Cocoa builds don't do PPC.


Thanks for the stats - very interesting. Hopefully the numbers support
the effort you put into building mac packages. I wonder how linux
fares against that. Alex Mandel was working on ubuntu download stats
once - I see if I can find the link to get them. Its a pity that the
useage of QGIS is so skewed towards windows, but hopefully that will
change over time to a more even spread.

Regards

Tim

 -
 William Kyngesburye kyngchaos*at*kyngchaos*dot*com
 http://www.kyngchaos.com/

 History is an illusion caused by the passage of time, and time is an 
 illusion caused by the passage of history.

 - Hitchhiker's Guide to the Galaxy






-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] QGIS crashes when loading Traits from Python console. [Was: QGIS Processing Framework]

2011-06-28 Thread Camilo Polymeris
 On Mon, Jun 27, 2011 at 3:59 PM, Camilo Polymeris cpolyme...@gmail.com 
 wrote:
  Given that there are no objections  I have studied the traits docs
  without finding any reason against it, I'll start migration of the
  framework.

 Having trouble with that.. QGIS segfaults when I try to load any of
 the modules in enthought.traits, e.g.:

 import enthought.traits.api

 When running the import through pdb it seems to hang. Can someone
 please confirm?

 Thanks,
 Camilo
 Confirmed, it crashes with
 Loaded symbols
 for /usr/lib/python2.7/dist-packages/enthought/traits/ctraits.so
 Reading symbols
 from 
 /usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so...(no
  debugging symbols found)...done.
 Loaded symbols
 for /usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so
 Core was generated by `/usr/bin/qgis.bin'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x7f3bf98764c8 in ?? ()

 from /usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so


 traits from official deb package.
 All the best.
 --
 Paolo Cavallini: http://www.faunalia.it/pc




Yes. Same here. No idea what those _speedups.so could be... Any ideas?
Can't continue if we don't solve this.


Regards,
Camilo

debian, Traits v 3.0.0

Program received signal SIGSEGV, Segmentation fault.
0x7fffd22c56b4 in ?? () from
/usr/lib/python2.6/dist-packages/enthought/traits/protocols/_speedups.so

bt

#0  0x7fffd22c56b4 in ?? () from
/usr/lib/python2.6/dist-packages/enthought/traits/protocols/_speedups.so
#1  0x7fffd22c7e7d in ?? () from
/usr/lib/python2.6/dist-packages/enthought/traits/protocols/_speedups.so
#2  0x7fffe1aeaf80 in PyEval_EvalFrameEx () from
/usr/lib/libpython2.6.so.1.0
#3  0x7fffe1aeccc0 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#4  0x7fffe1aeaffb in PyEval_EvalFrameEx () from
/usr/lib/libpython2.6.so.1.0
#5  0x7fffe1aeccc0 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#6  0x7fffe1aeaffb in PyEval_EvalFrameEx () from
/usr/lib/libpython2.6.so.1.0
#7  0x7fffe1aeccc0 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#8  0x7fffe1aecd92 in PyEval_EvalCode () from /usr/lib/libpython2.6.so.1.0
#9  0x7fffe1afe0d2 in PyImport_ExecCodeModuleEx () from
/usr/lib/libpython2.6.so.1.0
#10 0x7fffe1b0099e in ?? () from /usr/lib/libpython2.6.so.1.0
#11 0x7fffe1b017df in ?? () from /usr/lib/libpython2.6.so.1.0
#12 0x7fffe1b01a6f in ?? () from /usr/lib/libpython2.6.so.1.0
#13 0x7fffe1b020b0 in ?? () from /usr/lib/libpython2.6.so.1.0
#14 0x7fffe1b02604 in PyImport_ImportModuleLevel () from
/usr/lib/libpython2.6.so.1.0
#15 0x7fffe1ae4baf in ?? () from /usr/lib/libpython2.6.so.1.0
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Jython with QGIS

2011-06-28 Thread Ornélio Hinterholz Junior
Hi guys,

Is there a way for developing in QGIS using Jython or Java?

Thanks,

Ornélio Hinterholz Junior
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Ubuntu] Re: [Qgis-user] Re: [Qgis-developer] qgis-saga-python bindings in ubuntu

2011-06-28 Thread Agustin Lobo
Johan,

Problem solved by adding your repository:
deb http://ppa.launchpad.net/johanvdw/sagacvs/ubuntu lucid main
deb-src http://ppa.launchpad.net/johanvdw/sagacvs/ubuntu lucid main

Unfortunately, this does not entirely solve the problem of the saga
plugin in QGIS, but this is
another story.

Thanks!

Agus

2011/6/28 Agustin Lobo alobolis...@gmail.com:
 Johan,

 Do not find python-saga in
 https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable
 Instead, I find now     2.0.7+dfsg-0.5~lucid , but synaptic still finds 2.05 
 only
 Thanks for taking care of ubuntu saga binaries.

 Agus


 2011/6/28 Johan Van de Wauw johan.vandew...@gmail.com:
 On Thu, Jun 23, 2011 at 11:10 AM, Agustin Lobo alobolis...@gmail.com
 wrote:

 Is it possible to install the python bindings for a saga installation
 from binaries friom ubuntugis-unstable?


 I'm currently busy uploading the new versions. After uploading it will take
 approximately one hour to compile.
 Once this is done the package you are looking for is called: python-saga


 Also, while I do have the ubuntugis-unstable repository in the
 synaptic list, synaptic finds saga 2.05+dfsg-0.1~lucid
 while https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable
 lists saga 2.0.6+dfsg-0~lucid. Why?

 Because it was uploaded but (for some reason) did not compile. Not your
 fault.


 Thanks
 Agus


 -- Forwarded message --
 From: MALIK Julien julien.ma...@c-s.fr
 Date: 2011/6/23
 Subject: [Qgis-user] Re: [Qgis-developer] qgis-saga-python bindings in
 ubuntu
 To: cavall...@faunalia.it cavall...@faunalia.it
 Cc: qgis-user qgis-u...@lists.osgeo.org, qgis-developer
 qgis-developer@lists.osgeo.org, agustin.l...@ija.csic.es


 For ubuntu, you are probably looking for this :
 https://launchpad.net/~johanvdw

 Julien

 Quoting cavall...@faunalia.it cavall...@faunalia.it:

  A debian plugin is under preparation. Otherwise you'll have to build it
  yourself.
  All the best.
 
  http://faunalia.it/pc
 
  - Reply message -
  Da: Agustin Lobo alobolis...@gmail.com
  A: qgis-user qgis-u...@lists.osgeo.org, qgis-developer
  qgis-developer@lists.osgeo.org
  Oggetto: [Qgis-developer] qgis-saga-python bindings in ubuntu
  Data: gio, giu 23, 2011 07:04
 
 
  Does anyone know if there is any way to get the required (by the qgis
  saga plugin) python bindings for the binary distribution of
  saga for debian and ubuntu?
 
  Thanks
 
  Agus
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 



 
 This message was sent using IMP, the Internet Messaging Program.


 ___
 Qgis-user mailing list
 qgis-u...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


 ___
 UbuntuGIS mailing list
 ubu...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/ubuntu
 http://trac.osgeo.org/ubuntugis/wiki



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


Re: [Qgis-developer] Jython with QGIS

2011-06-28 Thread G. Allegri
QGIS is written in C++, and supports (C)Python scripting. Even if a C++/Java
binding is technically possible, IMHO it isn't a advisable.
Natural softwares for Jyhon/Java development can be gvSIG, uDig, OpenJump,
and the rest of the Java gfoss tools..

giovanni

2011/6/28 Ornélio Hinterholz Junior ohjrr2...@gmail.com

 **
 Hi guys,

 Is there a way for developing in QGIS using Jython or Java?

 Thanks,

 Ornélio Hinterholz Junior

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


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


[Qgis-developer] qgis crash with qwt

2011-06-28 Thread ludovic mercier

Hi all,

i have create a new plugin in python and in my code when i can use a 
specific qwt function like setAxisScaleDraw qgis crash.


This is the error message :

qgis: 
/build/buildd-sip4-qt3_4.10.2-1-i386-SoYLd5/sip4-qt3-4.10.2/siplib/siplib.c :2600 : sip_api_parse_result: 
 L'assertion « assign_helper != ((void *)0) » a échoué.


I use qgis 1.6 on a debian squeeze. Perhaps a problem with package sip ?
I have rebuild my packages :
python-qwt5-qt4 and python-qwt5-qt3 but same result qgis crash


thanks a lot for helping

Cheers

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


Re: [Qgis-developer] QGIS crashes when loading Traits from Python console. [Was: QGIS Processing Framework]

2011-06-28 Thread Joona Lehtomäki

Hi,

I can confirm the crash on Fedora 15, QGIS 1.6 and ETS 3.5. However, 
after installing the fresh ETS 4.0 from Github 
(http://code.enthought.com/source/) I can import traits.api (namespace 
'enthought' has been removed in 4.0) through QGIS Python console. Same 
applies to openSUSE 11.4 (64-bit) with QGIS 1.7. Official RPMs seem to 
be available at least for openSUSE.


Cheers,

Joona


On 06/28/2011 06:50 PM, Julien Malik wrote:

Hello,

Same here on Ubuntu Maverick.
The package can be imported in a standalone interpreter (python or ipython)
I start qgis, runs the Python console, do the import
enthought.traits.api : crash.

Julien


Le 28/06/2011 17:41, Camilo Polymeris a écrit :

On Mon, Jun 27, 2011 at 3:59 PM, Camilo
Polymeriscpolyme...@gmail.com wrote:

Given that there are no objections I have studied the traits docs
without finding any reason against it, I'll start migration of the
framework.

Having trouble with that.. QGIS segfaults when I try to load any of
the modules in enthought.traits, e.g.:

import enthought.traits.api

When running the import through pdb it seems to hang. Can someone
please confirm?

Thanks,
Camilo

Confirmed, it crashes with
Loaded symbols
for /usr/lib/python2.7/dist-packages/enthought/traits/ctraits.so
Reading symbols
from
/usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so...(no
debugging symbols found)...done.
Loaded symbols
for
/usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so
Core was generated by `/usr/bin/qgis.bin'.
Program terminated with signal 11, Segmentation fault.
#0 0x7f3bf98764c8 in ?? ()

from
/usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so


traits from official deb package.
All the best.
--
Paolo Cavallini: http://www.faunalia.it/pc




Yes. Same here. No idea what those _speedups.so could be... Any ideas?
Can't continue if we don't solve this.


Regards,
Camilo

debian, Traits v 3.0.0

Program received signal SIGSEGV, Segmentation fault.
0x7fffd22c56b4 in ?? () from
/usr/lib/python2.6/dist-packages/enthought/traits/protocols/_speedups.so

bt

#0 0x7fffd22c56b4 in ?? () from
/usr/lib/python2.6/dist-packages/enthought/traits/protocols/_speedups.so
#1 0x7fffd22c7e7d in ?? () from
/usr/lib/python2.6/dist-packages/enthought/traits/protocols/_speedups.so
#2 0x7fffe1aeaf80 in PyEval_EvalFrameEx () from
/usr/lib/libpython2.6.so.1.0
#3 0x7fffe1aeccc0 in PyEval_EvalCodeEx () from
/usr/lib/libpython2.6.so.1.0
#4 0x7fffe1aeaffb in PyEval_EvalFrameEx () from
/usr/lib/libpython2.6.so.1.0
#5 0x7fffe1aeccc0 in PyEval_EvalCodeEx () from
/usr/lib/libpython2.6.so.1.0
#6 0x7fffe1aeaffb in PyEval_EvalFrameEx () from
/usr/lib/libpython2.6.so.1.0
#7 0x7fffe1aeccc0 in PyEval_EvalCodeEx () from
/usr/lib/libpython2.6.so.1.0
#8 0x7fffe1aecd92 in PyEval_EvalCode () from
/usr/lib/libpython2.6.so.1.0
#9 0x7fffe1afe0d2 in PyImport_ExecCodeModuleEx () from
/usr/lib/libpython2.6.so.1.0
#10 0x7fffe1b0099e in ?? () from /usr/lib/libpython2.6.so.1.0
#11 0x7fffe1b017df in ?? () from /usr/lib/libpython2.6.so.1.0
#12 0x7fffe1b01a6f in ?? () from /usr/lib/libpython2.6.so.1.0
#13 0x7fffe1b020b0 in ?? () from /usr/lib/libpython2.6.so.1.0
#14 0x7fffe1b02604 in PyImport_ImportModuleLevel () from
/usr/lib/libpython2.6.so.1.0
#15 0x7fffe1ae4baf in ?? () from /usr/lib/libpython2.6.so.1.0
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


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

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


Re: [Qgis-developer] QGIS crashes when loading Traits from Python console. [Was: QGIS Processing Framework]

2011-06-28 Thread Camilo Polymeris
 I can confirm the crash on Fedora 15, QGIS 1.6 and ETS 3.5. However, after
 installing the fresh ETS 4.0 from Github (http://code.enthought.com/source/)
 I can import traits.api (namespace 'enthought' has been removed in 4.0)
 through QGIS Python console. Same applies to openSUSE 11.4 (64-bit) with
 QGIS 1.7. Official RPMs seem to be available at least for openSUSE.

 Cheers,

 Joona


Works for me, too. (version 4.0.1 from github) Thanks!
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Ubuntu] Re: [Qgis-user] Re: [Qgis-developer] qgis-saga-python bindings in ubuntu

2011-06-28 Thread Camilo Polymeris
The saga-qgis interface is pretty much non-functional yet. Could you specify
which problems you have encountered?

Are you using the faunalia version?

Camilo
El jun 28, 2011 12:35 p.m., Agustin Lobo alobolis...@gmail.com escribió:
 Johan,

 Problem solved by adding your repository:
 deb http://ppa.launchpad.net/johanvdw/sagacvs/ubuntu lucid main
 deb-src http://ppa.launchpad.net/johanvdw/sagacvs/ubuntu lucid main

 Unfortunately, this does not entirely solve the problem of the saga
 plugin in QGIS, but this is
 another story.

 Thanks!

 Agus

 2011/6/28 Agustin Lobo alobolis...@gmail.com:
 Johan,

 Do not find python-saga in
 https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable
 Instead, I find now 2.0.7+dfsg-0.5~lucid , but synaptic still finds
2.05 only
 Thanks for taking care of ubuntu saga binaries.

 Agus


 2011/6/28 Johan Van de Wauw johan.vandew...@gmail.com:
 On Thu, Jun 23, 2011 at 11:10 AM, Agustin Lobo alobolis...@gmail.com
 wrote:

 Is it possible to install the python bindings for a saga installation
 from binaries friom ubuntugis-unstable?


 I'm currently busy uploading the new versions. After uploading it will
take
 approximately one hour to compile.
 Once this is done the package you are looking for is called: python-saga


 Also, while I do have the ubuntugis-unstable repository in the
 synaptic list, synaptic finds saga 2.05+dfsg-0.1~lucid
 while https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable
 lists saga 2.0.6+dfsg-0~lucid. Why?

 Because it was uploaded but (for some reason) did not compile. Not your
 fault.


 Thanks
 Agus


 -- Forwarded message --
 From: MALIK Julien julien.ma...@c-s.fr
 Date: 2011/6/23
 Subject: [Qgis-user] Re: [Qgis-developer] qgis-saga-python bindings in
 ubuntu
 To: cavall...@faunalia.it cavall...@faunalia.it
 Cc: qgis-user qgis-u...@lists.osgeo.org, qgis-developer
 qgis-developer@lists.osgeo.org, agustin.l...@ija.csic.es


 For ubuntu, you are probably looking for this :
 https://launchpad.net/~johanvdw

 Julien

 Quoting cavall...@faunalia.it cavall...@faunalia.it:

  A debian plugin is under preparation. Otherwise you'll have to build
it
  yourself.
  All the best.
 
  http://faunalia.it/pc
 
  - Reply message -
  Da: Agustin Lobo alobolis...@gmail.com
  A: qgis-user qgis-u...@lists.osgeo.org, qgis-developer
  qgis-developer@lists.osgeo.org
  Oggetto: [Qgis-developer] qgis-saga-python bindings in ubuntu
  Data: gio, giu 23, 2011 07:04
 
 
  Does anyone know if there is any way to get the required (by the qgis
  saga plugin) python bindings for the binary distribution of
  saga for debian and ubuntu?
 
  Thanks
 
  Agus
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 



 
 This message was sent using IMP, the Internet Messaging Program.


 ___
 Qgis-user mailing list
 qgis-u...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


 ___
 UbuntuGIS mailing list
 ubu...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/ubuntu
 http://trac.osgeo.org/ubuntugis/wiki



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