Qgis + python portable ?

7 messages Options
Embed this post
Permalink
kimaidou

Qgis + python portable ?

Reply Threaded More More options
Print post
Permalink
Hi all,
Before the python bindings, Qgis was completely portable (under windows)
: I could copy the installation folder on a usb disk, and use it from here.
Now, because Qgis uses the pre installed python on each computer, it is
not possible anymore : we loose the python plugins when moving the
installation folder.

What do you think of building a complete portable application (as for
the grass tools), including the last python version (now python25)) ?
Is it possible ?
What do you think ?

Waiting for your comments
Michaël DOUCHIN

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Martin Dobias

Re: Qgis + python portable ?

Reply Threaded More More options
Print post
Permalink
Hi,
it's possible to do what you want. You can modify your local
installation as follows:
- copy or move your python installation directory inside QGIS directory
- copy or move python25.dll from your c:\windows\system32 to QGIS directory

Now you must set PYTHONPATH appropriately - this actually is a
downside since QGIS doesn't do it automatically for you - so when the
path of your python installation changes, you must always change it
too. There are two ways of doing that:
- permanent: modify PythonPath in registry: HKEY_LOCAL_MACHINE \
SOFTWARE \ Python \ PythonCore \ 2.5 \ PythonPath
- temporary: set PYTHONPATH environment variable

One example - I have qgis installed in c:\martin\dev\inst
- I've copied to that directory python25.dll and the whole
installation of python: Python25 directory
- I've created a small .bat script in QGIS directory that sets
PYTHONPATH and runs QGIS:

set PYTHONPATH=%CD%\Python25\Lib;%CD%\Python25\DLLs
qgis


Hope that helps.
Regarding some official QGIS package shipping Python with itself - I
don't know, it's more a question for Tisham...

Martin

On Wed, Feb 27, 2008 at 3:39 PM, Michaël Douchin
<[hidden email]> wrote:

> Hi all,
>  Before the python bindings, Qgis was completely portable (under windows)
>  : I could copy the installation folder on a usb disk, and use it from here.
>  Now, because Qgis uses the pre installed python on each computer, it is
>  not possible anymore : we loose the python plugins when moving the
>  installation folder.
>
>  What do you think of building a complete portable application (as for
>  the grass tools), including the last python version (now python25)) ?
>  Is it possible ?
>  What do you think ?
>
>  Waiting for your comments
>  Michaël DOUCHIN
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Tisham Dhar

Qgis + python portable ?

Reply Threaded More More options
Print post
Permalink
In reply to this post by kimaidou
Hi,

Qgis installer for 0.9.2rc1 includes Python25.dll and all python
dependencies so it should be full movable to a location of your choice.
Which version were you testing ?
The latest rc1 is available here:
http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_05_02_2008.exe
Use this one if you need latest Grass:
http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_16_02_2008.exe

I am rebuilding my MSYS install from scratch so please be patient for
new installers.

Regards,

Tishampati Dhar

 Remote Sensing Software Developer

 APOGEE IMAGING INTERNATIONAL

 Building 12B

 1 Adelaide - Lobethal Road

 Lobethal SA 5241

  Telephone: +61 - 8 - 8389 5499

 Fax: +61 - 8 - 8389 5488

 Mobile: +61 - 406114165

Email: [hidden email] mailto:[hidden email]>

Web: www.apogee.com.au <http://www.apogee.com.au>

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"The information in this e-mail may be confidential and/or commercially
privileged. It is intended solely for the addressee. Access to this
e-mail by anyone else is unauthorised. If you are not the
intendedrecipient, any disclosure, copying, distribution or action taken
or omitted to be taken in reliance on it, is prohibited and may be
unlawful."

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
kimaidou

Re: Qgis + python portable ?

Reply Threaded More More options
Print post
Permalink
Hi Tisham and Martin,

Thanks for your replies !
Martin : I tried the procedure, it worked perfectly.
Tisham : thanks for your work on the installer. I will be patient. I was
testing the 0.9.2rc1_05_02_2008. Il will try with the next one too.

Michael


Tisham Dhar a écrit :

> Hi,
>
> Qgis installer for 0.9.2rc1 includes Python25.dll and all python
> dependencies so it should be full movable to a location of your choice.
> Which version were you testing ?
> The latest rc1 is available here:
> http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_05_02_2008.exe
> Use this one if you need latest Grass:
> http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_16_02_2008.exe
>
> I am rebuilding my MSYS install from scratch so please be patient for
> new installers.
>
> Regards,
>
> Tishampati Dhar
>
>  Remote Sensing Software Developer
>
>  APOGEE IMAGING INTERNATIONAL
>
>  Building 12B
>
>  1 Adelaide - Lobethal Road
>
>  Lobethal SA 5241
>
>   Telephone: +61 - 8 - 8389 5499
>
>  Fax: +61 - 8 - 8389 5488
>
>  Mobile: +61 - 406114165
>
> Email: [hidden email] mailto:[hidden email]>
>
> Web: www.apogee.com.au <http://www.apogee.com.au>
>
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> "The information in this e-mail may be confidential and/or commercially
> privileged. It is intended solely for the addressee. Access to this
> e-mail by anyone else is unauthorised. If you are not the
> intendedrecipient, any disclosure, copying, distribution or action taken
> or omitted to be taken in reliance on it, is prohibited and may be
> unlawful."
>
> _______________________________________________
> Qgis-developer mailing list
> [hidden email]
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>
>
>  
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Richard Duivenvoorde

Re: Qgis + python portable ?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Tisham Dhar
Hi Tisham,
thanks for you work on this! One 'older' question of \me:
is it possible (or do you have plans/time) to build a windows debug
version also? This is handy for developing python plugins. By printing
to console you can do some debugging then (like when working on linux :-) )
Don't know how easy it is for you, and I do not want to confuse 'normal
windows users' with this, but maybe it's possible to do a
'developers-version' download besides the normal release build?
TIA
Richard Duivenvoorde


Tisham Dhar wrote:

> Hi,
>
> Qgis installer for 0.9.2rc1 includes Python25.dll and all python
> dependencies so it should be full movable to a location of your choice.
> Which version were you testing ?
> The latest rc1 is available here:
> http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_05_02_2008.exe
> Use this one if you need latest Grass:
> http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_16_02_2008.exe
>
> I am rebuilding my MSYS install from scratch so please be patient for
> new installers.
>
> Regards,
>
> Tishampati Dhar
>
>  Remote Sensing Software Developer
>
>  APOGEE IMAGING INTERNATIONAL
>
>  Building 12B
>
>  1 Adelaide - Lobethal Road
>
>  Lobethal SA 5241
>
>   Telephone: +61 - 8 - 8389 5499
>
>  Fax: +61 - 8 - 8389 5488
>
>  Mobile: +61 - 406114165
>
> Email: [hidden email] mailto:[hidden email]>
>
> Web: www.apogee.com.au <http://www.apogee.com.au>
>
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> "The information in this e-mail may be confidential and/or commercially
> privileged. It is intended solely for the addressee. Access to this
> e-mail by anyone else is unauthorised. If you are not the
> intendedrecipient, any disclosure, copying, distribution or action taken
> or omitted to be taken in reliance on it, is prohibited and may be
> unlawful."
>
> _______________________________________________
> Qgis-developer mailing list
> [hidden email]
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>
>

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
kimaidou

Re: Qgis + python portable ?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Tisham Dhar
Re-Hi Tisham
I tried to install qgis_setup0.9.2rc1_05_02_2008.exe directly on my usb key.
During the installation process, it is told 'python25 located'.
Then, when I look into the installation folder, no Python25.dll can be
found. Then, when I tried to load qgis from another computer with no
python installed in C:\python25\, qgis could not load.

Have I done stg wrong ?
Thanks again

Tisham Dhar a écrit :

> Hi,
>
> Qgis installer for 0.9.2rc1 includes Python25.dll and all python
> dependencies so it should be full movable to a location of your choice.
> Which version were you testing ?
> The latest rc1 is available here:
> http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_05_02_2008.exe
> Use this one if you need latest Grass:
> http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_16_02_2008.exe
>
> I am rebuilding my MSYS install from scratch so please be patient for
> new installers.
>
> Regards,
>
> Tishampati Dhar
>
>  Remote Sensing Software Developer
>
>  APOGEE IMAGING INTERNATIONAL
>
>  Building 12B
>
>  1 Adelaide - Lobethal Road
>
>  Lobethal SA 5241
>
>   Telephone: +61 - 8 - 8389 5499
>
>  Fax: +61 - 8 - 8389 5488
>
>  Mobile: +61 - 406114165
>
> Email: [hidden email] mailto:[hidden email]>
>
> Web: www.apogee.com.au <http://www.apogee.com.au>
>
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> "The information in this e-mail may be confidential and/or commercially
> privileged. It is intended solely for the addressee. Access to this
> e-mail by anyone else is unauthorised. If you are not the
> intendedrecipient, any disclosure, copying, distribution or action taken
> or omitted to be taken in reliance on it, is prohibited and may be
> unlawful."
>
> _______________________________________________
> Qgis-developer mailing list
> [hidden email]
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>
>
>  
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Leonardo Lami

Re: Qgis + python portable ?

Reply Threaded More More options
Print post
Permalink
Hi Michael,
try to install this package in this order:

- python 2.5 (http://www.python.org/download/)
- pyQT 4.3.3-2
(http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/PyQt-Py2.5-gpl-4.3.3-2.exe);
- Qgis 0.9.2rc1
(http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1__02_2008.exe)

Ignore Python error in the start of QGIS.


Hi
Leonardo




Michaël Douchin ha scritto:

> Re-Hi Tisham
> I tried to install qgis_setup0.9.2rc1_05_02_2008.exe directly on my usb key.
> During the installation process, it is told 'python25 located'.
> Then, when I look into the installation folder, no Python25.dll can be
> found. Then, when I tried to load qgis from another computer with no
> python installed in C:\python25\, qgis could not load.
>
> Have I done stg wrong ?
> Thanks again
>
> Tisham Dhar a écrit :
>  
>> Hi,
>>
>> Qgis installer for 0.9.2rc1 includes Python25.dll and all python
>> dependencies so it should be full movable to a location of your choice.
>> Which version were you testing ?
>> The latest rc1 is available here:
>> http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_05_02_2008.exe
>> Use this one if you need latest Grass:
>> http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_16_02_2008.exe
>>
>> I am rebuilding my MSYS install from scratch so please be patient for
>> new installers.
>>
>> Regards,
>>
>> Tishampati Dhar
>>
>>  Remote Sensing Software Developer
>>
>>  APOGEE IMAGING INTERNATIONAL
>>
>>  Building 12B
>>
>>  1 Adelaide - Lobethal Road
>>
>>  Lobethal SA 5241
>>
>>   Telephone: +61 - 8 - 8389 5499
>>
>>  Fax: +61 - 8 - 8389 5488
>>
>>  Mobile: +61 - 406114165
>>
>> Email: [hidden email] mailto:[hidden email]>
>>
>> Web: www.apogee.com.au <http://www.apogee.com.au>
>>
>>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> "The information in this e-mail may be confidential and/or commercially
>> privileged. It is intended solely for the addressee. Access to this
>> e-mail by anyone else is unauthorised. If you are not the
>> intendedrecipient, any disclosure, copying, distribution or action taken
>> or omitted to be taken in reliance on it, is prohibited and may be
>> unlawful."
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> [hidden email]
>> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>>
>>
>>  
>>    
> _______________________________________________
> Qgis-developer mailing list
> [hidden email]
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>
>  

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer