Dear Jeff & ALL,
In trying to freeze my app using bb-freeze
(http://pypi.python.org/pypi/bbfreeze/), I stumbled upon a problem:
the app is correctly freezed, but it then looks for the Basemap
datafiles and since cannot find them, fails to start (with a message
complaining that the above mentioned files are missing). So, my
question is: can Basemap data files be installed in a directory other
than the default one? And if so, how to instruct a program to look for
them in another location?
Thanks in advance for any assistance you can provide.
Best regards,
···
--
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: maurobio@...287...
Web: http://studio.infobio.net
Linux Registered User #473524 * Ubuntu User #22717
"Life is complex. It consists of real and imaginary parts."
Mauro Cavalcanti wrote:
Dear Jeff & ALL,
In trying to freeze my app using bb-freeze
(bbfreeze · PyPI), I stumbled upon a problem:
the app is correctly freezed, but it then looks for the Basemap
datafiles and since cannot find them, fails to start (with a message
complaining that the above mentioned files are missing). So, my
question is: can Basemap data files be installed in a directory other
than the default one? And if so, how to instruct a program to look for
them in another location?
Thanks in advance for any assistance you can provide.
Best regards,
Mauro: If you set the env var BASEMAPDATA, it will look for the basemap data files there. There is no way supported way to install the files in a different directory using setup.py, so if you want them somewhere other than the default location you'll have to install them there manually.
-Jeff
···
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory
Dear Jeff,
Thanks for your fast reply. No problem with manually installing the
Basemap data files -- indeed, this is just what I do intend in order
to create a frozen application. But other than setting up the
BASEMAPDATA environment variable, is there any way to tell an
application to look for the data in a specific directory?
Best regards,
2009/7/7 Jeff Whitaker <jswhit@...146...>:
···
Mauro Cavalcanti wrote:
Dear Jeff & ALL,
In trying to freeze my app using bb-freeze
(bbfreeze · PyPI), I stumbled upon a problem:
the app is correctly freezed, but it then looks for the Basemap
datafiles and since cannot find them, fails to start (with a message
complaining that the above mentioned files are missing). So, my
question is: can Basemap data files be installed in a directory other
than the default one? And if so, how to instruct a program to look for
them in another location?
Thanks in advance for any assistance you can provide.
Best regards,
Mauro: If you set the env var BASEMAPDATA, it will look for the basemap
data files there. There is no way supported way to install the files in a
different directory using setup.py, so if you want them somewhere other than
the default location you'll have to install them there manually.
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...2583...9...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory
--
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: maurobio@...287...
Web: http://studio.infobio.net
Linux Registered User #473524 * Ubuntu User #22717
"Life is complex. It consists of real and imaginary parts."