64 bit Python in GRASS 6.4.2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

64 bit Python in GRASS 6.4.2

Orr, Andrew B.

Hello all,

I’ve been working on a r.cost and r.drain python script that is using very large rasters. I’ve been running into some memory issues with this script due to the size of the rasters. I read about setting the amount of memory that the map can be stored in with the “percent_memory=xx” argument for r.cost, however the performance of running the script is becoming a problem (it takes too long to run for our goal).

 

I then started watching the Task Manager and noticed it was peaked out at less ~4 gigs of ram and I realized it’s only a 32 bit version of Python installed with GRASS.

My question is: is there a compatible 64 bit version of Python for GRASS 6.4.x, and if so, how does one install it?

 

Thanks for your help!

-Andy


_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: 64 bit Python in GRASS 6.4.2

Saber Razmjooei

Hi Andy,

 

You can try this:

http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe

 

Cheers,

Saber

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Orr, Andrew B.
Sent: 26 September 2014 15:46
To: '[hidden email]'
Subject: [GRASS-user] 64 bit Python in GRASS 6.4.2

 

Hello all,

I’ve been working on a r.cost and r.drain python script that is using very large rasters. I’ve been running into some memory issues with this script due to the size of the rasters. I read about setting the amount of memory that the map can be stored in with the “percent_memory=xx” argument for r.cost, however the performance of running the script is becoming a problem (it takes too long to run for our goal).

 

I then started watching the Task Manager and noticed it was peaked out at less ~4 gigs of ram and I realized it’s only a 32 bit version of Python installed with GRASS.

My question is: is there a compatible 64 bit version of Python for GRASS 6.4.x, and if so, how does one install it?

 

Thanks for your help!

-Andy




This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Whilst reasonable care has been taken to avoid virus transmission, no responsibility for viruses is taken and it is your responsibility to carry out such checks as you feel appropriate.

If this email contains a quote or offer to sell products, carry out work or perform services then our standard terms and conditions shall apply unless explicitly stated otherwise.

Saber Razmjooei and Peter Wells trading as Lutra Consulting.




_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: 64 bit Python in GRASS 6.4.2

Orr, Andrew B.

Thanks Saber,

I already have GRASS installed, and if I recall the application you linked me to is an interface for installing GRASS? What I’m hoping for is upgrading the version of Python to 64 bit that GRASS is using.

 

When I open GRASS and go to the Python shell it says it’s using a 32 bit version of Python 2.7.2.

I know it’s a separate installation for ArcGIS to get a 64 bit version of Python installed so I was thinking that GRASS may be the same procedure?

Thanks,

-Andy

 

 

 

From: Saber Razmjooei [mailto:[hidden email]]
Sent: Friday, September 26, 2014 10:23 AM
To: Orr, Andrew B.; [hidden email]
Subject: RE: [GRASS-user] 64 bit Python in GRASS 6.4.2

 

Hi Andy,

 

You can try this:

http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe

 

Cheers,

Saber

 

 

From: [hidden email] [[hidden email]] On Behalf Of Orr, Andrew B.
Sent: 26 September 2014 15:46
To: '[hidden email]'
Subject: [GRASS-user] 64 bit Python in GRASS 6.4.2

 

Hello all,

I’ve been working on a r.cost and r.drain python script that is using very large rasters. I’ve been running into some memory issues with this script due to the size of the rasters. I read about setting the amount of memory that the map can be stored in with the “percent_memory=xx” argument for r.cost, however the performance of running the script is becoming a problem (it takes too long to run for our goal).

 

I then started watching the Task Manager and noticed it was peaked out at less ~4 gigs of ram and I realized it’s only a 32 bit version of Python installed with GRASS.

My question is: is there a compatible 64 bit version of Python for GRASS 6.4.x, and if so, how does one install it?

 

Thanks for your help!

-Andy

 


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Whilst reasonable care has been taken to avoid virus transmission, no responsibility for viru ses is taken and it is your responsibility to carry out such checks as you feel appropriate.

If this email contains a quote or offer to sell products, carry out work or perform services then our standard terms and conditions shall apply unless explicitly stated otherwise.

Saber Razmjooei and Peter Wells trading as Lutra Consulting.

 


_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: 64 bit Python in GRASS 6.4.2

Alex Mandel-2
The suggestion is that your reinstall GRASS using the OSGeo4w64
installer. You likely used the OSGeo4w previously, which is a 32 bit
bundle of open source geo software. You can't just swap out the python
you have to get everything compiled for 64bit.

Thanks,
Alex

On 09/26/2014 08:30 AM, Orr, Andrew B. wrote:

> Thanks Saber,
> I already have GRASS installed, and if I recall the application you linked me to is an interface for installing GRASS? What I'm hoping for is upgrading the version of Python to 64 bit that GRASS is using.
>
> When I open GRASS and go to the Python shell it says it's using a 32 bit version of Python 2.7.2.
> I know it's a separate installation for ArcGIS to get a 64 bit version of Python installed so I was thinking that GRASS may be the same procedure?
> Thanks,
> -Andy
>
>
>
> From: Saber Razmjooei [mailto:[hidden email]]
> Sent: Friday, September 26, 2014 10:23 AM
> To: Orr, Andrew B.; [hidden email]
> Subject: RE: [GRASS-user] 64 bit Python in GRASS 6.4.2
>
> Hi Andy,
>
> You can try this:
> http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe
>
> Cheers,
> Saber
>
>
> From: [hidden email]<mailto:[hidden email]> [mailto:[hidden email]] On Behalf Of Orr, Andrew B.
> Sent: 26 September 2014 15:46
> To: '[hidden email]'
> Subject: [GRASS-user] 64 bit Python in GRASS 6.4.2
>
> Hello all,
> I've been working on a r.cost and r.drain python script that is using very large rasters. I've been running into some memory issues with this script due to the size of the rasters. I read about setting the amount of memory that the map can be stored in with the "percent_memory=xx" argument for r.cost, however the performance of running the script is becoming a problem (it takes too long to run for our goal).
>
> I then started watching the Task Manager and noticed it was peaked out at less ~4 gigs of ram and I realized it's only a 32 bit version of Python installed with GRASS.
> My question is: is there a compatible 64 bit version of Python for GRASS 6.4.x, and if so, how does one install it?
>
> Thanks for your help!
> -Andy
>
> ________________________________
>
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
>
> Whilst reasonable care has been taken to avoid virus transmission, no responsibility for viru ses is taken and it is your responsibility to carry out such checks as you feel appropriate.
>
> If this email contains a quote or offer to sell products, carry out work or perform services then our standard terms and conditions<http://www.lutraconsulting.co.uk/downloads/Lutra%20Consulting%20Standard%20Terms%20and%20Conditions.pdf> shall apply unless explicitly stated otherwise.
>
> Saber Razmjooei and Peter Wells trading as Lutra Consulting.
>
>
>
>
> _______________________________________________
> grass-user mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/grass-user
>

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: 64 bit Python in GRASS 6.4.2

Orr, Andrew B.
Thank you everyone that helped with this. I was able to get the 64 bit version of Python and GRASS to play nicely together.
For the recods, it took uninstalling GRASS and  OSGeo4W from my machine and then reinstalling it with the link Saber provided @ http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe

-Andy


-----Original Message-----
From: Alex Mandel [mailto:[hidden email]]
Sent: Friday, September 26, 2014 11:37 AM
To: Orr, Andrew B.; [hidden email]
Subject: Re: [GRASS-user] 64 bit Python in GRASS 6.4.2

The suggestion is that your reinstall GRASS using the OSGeo4w64 installer. You likely used the OSGeo4w previously, which is a 32 bit bundle of open source geo software. You can't just swap out the python you have to get everything compiled for 64bit.

Thanks,
Alex

On 09/26/2014 08:30 AM, Orr, Andrew B. wrote:

> Thanks Saber,
> I already have GRASS installed, and if I recall the application you linked me to is an interface for installing GRASS? What I'm hoping for is upgrading the version of Python to 64 bit that GRASS is using.
>
> When I open GRASS and go to the Python shell it says it's using a 32 bit version of Python 2.7.2.
> I know it's a separate installation for ArcGIS to get a 64 bit version of Python installed so I was thinking that GRASS may be the same procedure?
> Thanks,
> -Andy
>
>
>
> From: Saber Razmjooei [mailto:[hidden email]]
> Sent: Friday, September 26, 2014 10:23 AM
> To: Orr, Andrew B.; [hidden email]
> Subject: RE: [GRASS-user] 64 bit Python in GRASS 6.4.2
>
> Hi Andy,
>
> You can try this:
> http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe
>
> Cheers,
> Saber
>
>
> From: [hidden email]<mailto:[hidden email]> [mailto:[hidden email]] On Behalf Of Orr, Andrew B.
> Sent: 26 September 2014 15:46
> To: '[hidden email]'
> Subject: [GRASS-user] 64 bit Python in GRASS 6.4.2
>
> Hello all,
> I've been working on a r.cost and r.drain python script that is using very large rasters. I've been running into some memory issues with this script due to the size of the rasters. I read about setting the amount of memory that the map can be stored in with the "percent_memory=xx" argument for r.cost, however the performance of running the script is becoming a problem (it takes too long to run for our goal).
>
> I then started watching the Task Manager and noticed it was peaked out at less ~4 gigs of ram and I realized it's only a 32 bit version of Python installed with GRASS.
> My question is: is there a compatible 64 bit version of Python for GRASS 6.4.x, and if so, how does one install it?
>
> Thanks for your help!
> -Andy
>
> ________________________________
>
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
>
> Whilst reasonable care has been taken to avoid virus transmission, no responsibility for viru ses is taken and it is your responsibility to carry out such checks as you feel appropriate.
>
> If this email contains a quote or offer to sell products, carry out work or perform services then our standard terms and conditions<http://www.lutraconsulting.co.uk/downloads/Lutra%20Consulting%20Standard%20Terms%20and%20Conditions.pdf> shall apply unless explicitly stated otherwise.
>
> Saber Razmjooei and Peter Wells trading as Lutra Consulting.
>
>
>
>
> _______________________________________________
> grass-user mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/grass-user
>

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: 64 bit Python in GRASS 6.4.2

Glynn Clements
In reply to this post by Alex Mandel-2

Alex Mandel wrote:

> The suggestion is that your reinstall GRASS using the OSGeo4w64
> installer. You likely used the OSGeo4w previously, which is a 32 bit
> bundle of open source geo software. You can't just swap out the python
> you have to get everything compiled for 64bit.

FWIW, the grass.script library doesn't require that GRASS uses the
same architecture (32-bit or 64-bit) as the Python interpreter.

The grass.lib library (and grass.pygrass and grass.temporal, which use
it) accesses the GRASS dynamic libraries from the Python interpreter,
so the Python interpreter has to match the architecture for which
GRASS was built.

--
Glynn Clements <[hidden email]>
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user