Changes between Initial Version and Version 1 of Ticket #267


Ignore:
Timestamp:
Feb 17, 2012, 9:47:05 AM (12 years ago)
Author:
maphew
Comment:

David, the system python variables needs to be removed from the environment before starting the o4w python. To see the existing python env, open a command prompt and type:

set |findstr /i "python"

If you see something like the below you'll have a conflict with the Osgeo4W python:

Path=C:\Python26;C:\Python26\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\sysWOW64
PYTHONHOME=C:\Python26
PYTHONPATH=C:\Python26;C:\Python26\Lib;C:\Python26\DLLs

To fix this you'll need to remove the existing python settings from the system default ([Winkey]-[pause/break] > Advanced > Environment) or take care to always start python from inside a new shell which resets those variables, e.g. from a batch file:

@echo off
set PYTHONHOME=
set PYTHONPATH=
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\sysWOW64;
call c:\osgeo4w\osgeo4w.bat

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #267 – Description

    initial v1  
    55
    66GDAL 1.8.1, released 2011/07/09
    7 
     7{{{
    88H:\>python
    9 Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win
    10 32
     9Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
    1110Type "help", "copyright", "credits" or "license" for more information.
    1211>>> import numpy
     
    2322Exception: ('Version number mismatch', '1.0.2', '1.1.0')
    2423>>>
     24}}}
    2525
    26