Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work

2013-04-24 Thread Alexander Bruy
Hi,

seems this caused by recent Python upgrade in OSGeo4W. I think rebuilding QGIS 
will solve this issue.

On Wed, 24 Apr 2013 08:09:45 +
Stott James  wrote:

> Hi all,
> 
> I have noticed that since I updated OSGeo4W yesterday, I cannot launch QGIS 
> 1.8. It stops loading when the splash screen gets to Loading Python.
> 
> I also get the following error when trying to run a python script from the 
> OSGeo4W shell:
> 
> G:\>zip_data_test.py
> Traceback (most recent call last):
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 563, in 
> main()
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 545, in main
> known_paths = addusersitepackages(known_paths)
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 278, in 
> addusersitepackages
> 
> user_site = getusersitepackages()
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 253, in 
> getusersitepackages
> 
> user_base = getuserbase() # this will also set USER_BASE
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 243, in getuserbase
> USER_BASE = get_config_var('userbase')
>   File "C:\OSGeo4W\apps\Python27\lib\sysconfig.py", line 472, in 
> get_config_var
> return get_config_vars().get(name)
>   File "C:\OSGeo4W\apps\Python27\lib\sysconfig.py", line 405, in 
> get_config_vars
> 
> import re
>   File "C:\OSGeo4W\apps\Python27\lib\re.py", line 105, in 
> import sre_compile
>   File "C:\OSGeo4W\apps\Python27\lib\sre_compile.py", line 14, in 
> import sre_parse
>   File "C:\OSGeo4W\apps\Python27\lib\sre_parse.py", line 17, in 
> from sre_constants import *
>   File "C:\OSGeo4W\apps\Python27\lib\sre_constants.py", line 18, in 
> from _sre import MAXREPEAT
> ImportError: cannot import name MAXREPEAT
> 
> Does anyone here know how to fix this? Is this a problem for the OSGeo4W 
> people instead?
> 
> Many thanks,
> 
> James


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


Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work

2013-04-24 Thread Stott James
I install QGIS from the OSGeo4W installer.

Does that mean I need to wait for a rebuild of QGIS to be put out in the 
installer?

James

-Opprinnelig melding-
Fra: Alexander Bruy [mailto:alexander.b...@gmail.com] 
Sendt: 24. april 2013 10:13
Til: Stott James
Kopi: qgis-developer@lists.osgeo.org
Emne: Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work

Hi,

seems this caused by recent Python upgrade in OSGeo4W. I think rebuilding QGIS 
will solve this issue.

On Wed, 24 Apr 2013 08:09:45 +
Stott James  wrote:

> Hi all,
> 
> I have noticed that since I updated OSGeo4W yesterday, I cannot launch QGIS 
> 1.8. It stops loading when the splash screen gets to Loading Python.
> 
> I also get the following error when trying to run a python script from the 
> OSGeo4W shell:
> 
> G:\>zip_data_test.py
> Traceback (most recent call last):
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 563, in 
> main()
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 545, in main
> known_paths = addusersitepackages(known_paths)
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 278, in 
> addusersitepackages
> 
> user_site = getusersitepackages()
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 253, in 
> getusersitepackages
> 
> user_base = getuserbase() # this will also set USER_BASE
>   File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 243, in getuserbase
> USER_BASE = get_config_var('userbase')
>   File "C:\OSGeo4W\apps\Python27\lib\sysconfig.py", line 472, in 
> get_config_var
> return get_config_vars().get(name)
>   File "C:\OSGeo4W\apps\Python27\lib\sysconfig.py", line 405, in 
> get_config_vars
> 
> import re
>   File "C:\OSGeo4W\apps\Python27\lib\re.py", line 105, in 
> import sre_compile
>   File "C:\OSGeo4W\apps\Python27\lib\sre_compile.py", line 14, in 
> import sre_parse
>   File "C:\OSGeo4W\apps\Python27\lib\sre_parse.py", line 17, in 
> from sre_constants import *
>   File "C:\OSGeo4W\apps\Python27\lib\sre_constants.py", line 18, in 
> from _sre import MAXREPEAT
> ImportError: cannot import name MAXREPEAT
> 
> Does anyone here know how to fix this? Is this a problem for the OSGeo4W 
> people instead?
> 
> Many thanks,
> 
> James


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


Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work

2013-04-24 Thread Stott James
Thanks for the reply.

I have tried 2. QGIS opens but then complains about sip. This doesn't fix the 
command line problem.

So I am awaiting for 1. to happen :) 

As suggested on the OSGeo4W mailing list 
(http://osgeo-org.1560.x6.nabble.com/ANN-Python-2-7-4-td5048404.html), renaming 
the python27.dll in windows\system32 (or syswow64) works, but it means ArcGIS 
wont.

-Opprinnelig melding-
Fra: Ramon Andiñach [mailto:cust...@westnet.com.au] 
Sendt: 24. april 2013 12:26
Til: Stott James
Emne: Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work

I think it means that for us there are two options,

1. In a little bit they'll rebuild 1.8 and put it on the installer.

2. Find the python upgrade that just changed and run it back a version. (When 
you run the update, things that you have installed will say either the new 
version that it's about to install or Keep if there's nothing to do. If you 
click on the Keep it will cycle through a few things, one of which should be 
the last installed version) No guarantees about what will happen though - I'd 
try 1 first.

-ramon.

On 24/04/2013, at 16:25 , Stott James wrote:

> I install QGIS from the OSGeo4W installer.
> 
> Does that mean I need to wait for a rebuild of QGIS to be put out in the 
> installer?
> 
> James
> 
> -Opprinnelig melding-
> Fra: Alexander Bruy [mailto:alexander.b...@gmail.com]
> Sendt: 24. april 2013 10:13
> Til: Stott James
> Kopi: qgis-developer@lists.osgeo.org
> Emne: Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work
> 
> Hi,
> 
> seems this caused by recent Python upgrade in OSGeo4W. I think rebuilding 
> QGIS will solve this issue.
> 
> On Wed, 24 Apr 2013 08:09:45 +
> Stott James  wrote:
> 
>> Hi all,
>> 
>> I have noticed that since I updated OSGeo4W yesterday, I cannot launch QGIS 
>> 1.8. It stops loading when the splash screen gets to Loading Python.
>> 
>> I also get the following error when trying to run a python script from the 
>> OSGeo4W shell:
>> 
>> G:\>zip_data_test.py
>> Traceback (most recent call last):
>>  File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 563, in 
>>main()
>>  File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 545, in main
>>known_paths = addusersitepackages(known_paths)  File 
>> "C:\OSGeo4W\\apps\Python27\lib\site.py", line 278, in 
>> addusersitepackages
>> 
>>user_site = getusersitepackages()
>>  File "C:\OSGeo4W\\apps\Python27\lib\site.py", line 253, in 
>> getusersitepackages
>> 
>>user_base = getuserbase() # this will also set USER_BASE  File 
>> "C:\OSGeo4W\\apps\Python27\lib\site.py", line 243, in getuserbase
>>USER_BASE = get_config_var('userbase')  File 
>> "C:\OSGeo4W\apps\Python27\lib\sysconfig.py", line 472, in get_config_var
>>return get_config_vars().get(name)  File 
>> "C:\OSGeo4W\apps\Python27\lib\sysconfig.py", line 405, in 
>> get_config_vars
>> 
>>import re
>>  File "C:\OSGeo4W\apps\Python27\lib\re.py", line 105, in 
>>import sre_compile
>>  File "C:\OSGeo4W\apps\Python27\lib\sre_compile.py", line 14, in 
>>import sre_parse
>>  File "C:\OSGeo4W\apps\Python27\lib\sre_parse.py", line 17, in 
>>from sre_constants import *
>>  File "C:\OSGeo4W\apps\Python27\lib\sre_constants.py", line 18, in 
>>from _sre import MAXREPEAT
>> ImportError: cannot import name MAXREPEAT
>> 
>> Does anyone here know how to fix this? Is this a problem for the OSGeo4W 
>> people instead?
>> 
>> Many thanks,
>> 
>> James
> 
> 
> --
> Alexander Bruy
> ___
> 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] OSGeo4W QGIS 1.8 Doesnt Work

2013-04-24 Thread Jürgen E . Fischer
Hi James,

On Wed, 24. Apr 2013 at 10:48:02 +, Stott James wrote:
> As suggested on the OSGeo4W mailing list
> (http://osgeo-org.1560.x6.nabble.com/ANN-Python-2-7-4-td5048404.html),
> renaming the python27.dll in windows\system32 (or syswow64) works, but it
> means ArcGIS wont.

No way around that - you can put ArcGIS' python27.dll somewhere ArcGIS will
find it first (bin?), but won't force everything else to use that particular
version.


Jürgen

-- 
Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-31
Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
Software Engineer D-26506 Norden   http://www.norbit.de
committ(ed|ing) to Quantum GIS IRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

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


Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work

2013-04-26 Thread Stephane Goldstein
Just updated OSGeo4W ans it's fixed now
- Original Message -
From: Stephane Goldstein
Sent: 04/26/13 04:07 PM
To: qgis-developer@lists.osgeo.org
Subject: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work

Hello.

I'm having the exact same problem.
I think maybe it's related to a Grass RC2 to RC3 update.
The file called when you open QGIS 1.8 is C:\OSGeo4W\bin\qgis.bat
I opened that file and I have:

@echo off
SET OSGEO4W_ROOT=C:\OSGeo4W
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
call "%OSGEO4W_ROOT%"\apps\grass\grass-6.4.3RC2\etc\env.bat
@echo off
path 
%PATH%;%OSGEO4W_ROOT%\apps\qgis\bin;%OSGEO4W_ROOT%\apps\grass\grass-6.4.3RC2\lib
start "Quantum GIS" /B "%OSGEO4W_ROOT%"\apps\qgis\bin\qgis.exe %*

But since I updated Grass, the file
C:\OSGeo4W\apps\grass\grass-6.4.3RC2\etc\env.bat
and the folder
C:\OSGeo4W\apps\grass\grass-6.4.3RC2\lib
don't existe anymore.

I opened the file that calls QGIS-dev (C:\OSGeo4W\bin\qgis-dev.bat) and it 
points to the new install of GRASS 6.4.3RC3:

@echo off
SET OSGEO4W_ROOT=C:\OSGeo4W
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
call "%OSGEO4W_ROOT%"\apps\grass\grass-6.4.3RC3\etc\env.bat
@echo off
path 
%PATH%;%OSGEO4W_ROOT%\apps\qgis-dev\bin;%OSGEO4W_ROOT%\apps\grass\grass-6.4.3RC3\lib
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis-dev
start "Quantum GIS" /B "%OSGEO4W_ROOT%"\bin\qgis-dev.exe %*

I tried then to tweak C:\OSGeo4W\bin\qgis.bat but with no sucess.

Can anyone help ?

Thanks

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