[CIG-SHORT] pylith error
Christopher DiCaprio
dicaprio at gps.caltech.edu
Wed Sep 26 12:27:52 PDT 2007
Charles, Brad, et al.
I'm on a 32 bit machine. The only place where the pytests and
libtests directories are located are in the build directory
(everything is under a directory called pylith-build so it's a bit
misleading); is that an error?
There is no geocoordsmodule.so file only libspatialdata.so
I've tried to rebuild spataildata in a tmp directory and saved the
make logs. See attached.
The lib (install) directory looks like this (does not contain pytests
and libtests):
------------------------------------------------------------------------
------------------------------------------------------------------------
> pwd
/home/dicaprio/local/pylith-build/lib/python2.4/site-packages
> ls
Cheetah-2.0rc8-py2.4-linux-i686.egg
FIAT
merlin-1.3.egg
merlin-install.pth
merlin.pth
nemesis.egg-info
numpy
pylith
PyLith.egg-info
pyrexembed.py
pyrexembed.pyc
pythia-0.8.1.4-py2.4.egg
site.py
site.pyc
site.pyo
spatialdata-0.3.0-py2.4.egg
spatialdata.egg-info
The directory /home/dicaprio/local/pylith-build/lib/python2.4/site-
packages is in my PYTHONPATH.
------------------------------------------------------------------------
------------------------------------------------------------------------
The spatialdata modules are accesable with my PYTHONPATH as it
exists. If I run python and try some imports I get the following:
>>>
>>> import spatialdata
>>> spatialdata.__file__
'/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
spatialdata-0.3.0-py2.4.egg/spatialdata/__init__.pyc'
>>>
>>> import spatialdata.spatialdb
>>> spatialdata.spatialdb.__file__
'/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
spatialdata-0.3.0-py2.4.egg/spatialdata/spatialdb/__init__.pyc'
>>>
Thanks for your help.
- Chris

On Sep 26, 2007, at 11:43 AM, Charles Williams wrote:
> I was confused because your install directory name looked like a
> build directory. Here's another thought. Are you on a 64-bit
> machine? When I set things up on our Opteron machine I end up with
> two different lib directories in my install directory:
>
> /home/willic3/geoframe/export64/debug/lib/python2.4/site-packages
> /home/willic3/geoframe/export64/debug/lib64/python2.4/site-packages
>
> I add both of these to my PYTHONPATH.
>
> Charles
>
>
> On Sep 26, 2007, at 2:21 PM, Matthew Knepley wrote:
>
>> Wherever you installed 'spatialdata' needs to be in your PYTHONPATH.
>>
>> Matt
>>
>> On 9/26/07, Christopher DiCaprio <dicaprio at gps.caltech.edu> wrote:
>>> Charles,
>>>
>>>
>>>
>>> 1. Is your installation directory the same as your build directory?
>>> No, there are separate directories for build and install
>>>
>>>
>>>
>>> 2. What does your PYTHONPATH look like?
>>>
>>>> echo $PYTHONPATH
>>> /home/dicaprio/local/pylith-build/lib/python2.4/site-packages:/
>>> home/dicaprio/Python
>>>
>>>
>>>
>>> 3. Do you have configure and build logs from when you installed
>>> spatialdata?
>>>
>>> I have the configure log, but no build log. See attached config.log
>>>
>>> 4. If you go to tests/libtests/geocoords in your top-level
>>> spatialdat
>>> directory, and type 'make check', what happens?
>>>
>>> tests fail. see attached libtests.log
>>>
>>> 5. Try the same thing in tests/pytests/geocoords.
>>>
>>> tests fail. see attached pytests.log
>>>
>>>
>>> Cheers,
>>> Chris
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Let me know what happens with this.
>>>
>>> Cheers,
>>> Charles
>>>
>>>
>>>
>>> On Sep 26, 2007, at 3:12 AM, Christopher DiCaprio wrote:
>>>
>>> I have built pylith from source and when I try to run it I get
>>> the following
>>> error:
>>>
>>> klaki:~> pylith --help
>>> Traceback (most recent call last):
>>> File "/home/dicaprio/local/pylith-build/bin/pylith", line
>>> 31, in ?
>>> from pylith.PyLithApp import PyLithApp
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/PyLithApp.py",
>>> line 20, in ?
>>> class PyLithApp(Application):
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/PyLithApp.py",
>>> line 27, in PyLithApp
>>> class Inventory(Application.Inventory):
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/PyLithApp.py",
>>> line 50, in Inventory
>>> from pylith.problems.TimeDependent import TimeDependent
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/problems/TimeDependent.py",
>>> line 20, in ?
>>> from Problem import Problem
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/problems/Problem.py",
>>> line 22, in ?
>>> class Problem(Component):
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/problems/Problem.py",
>>> line 31, in Problem
>>> class Inventory(Component.Inventory):
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/problems/Problem.py",
>>> line 51, in Inventory
>>> from pylith.materials.Homogeneous import Homogeneous
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/materials/Homogeneous.py",
>>> line 22, in ?
>>> class Homogeneous(ObjectBin):
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/materials/Homogeneous.py",
>>> line 31, in Homogeneous
>>> class Inventory(ObjectBin.Inventory):
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/materials/Homogeneous.py",
>>> line 47, in Inventory
>>> from ElasticIsotropic3D import ElasticIsotropic3D
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/materials/ElasticIsotropic3D.py",
>>> line 19, in ?
>>> from ElasticMaterial import ElasticMaterial
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/materials/ElasticMaterial.py",
>>> line 20, in ?
>>> from Material import Material
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/materials/Material.py",
>>> line 30, in ?
>>> class Material(Component):
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/materials/Material.py",
>>> line 43, in Material
>>> class Inventory(Component.Inventory):
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> pylith/materials/Material.py",
>>> line 67, in Inventory
>>> from spatialdata.spatialdb.SimpleDB import SimpleDB
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> spatialdata-0.3.0-py2.4.egg/spatialdata/spatialdb/SimpleDB.py",
>>> line 19, in ?
>>> from SpatialDB import SpatialDB
>>> File
>>> "/home/dicaprio/local/pylith-build/lib/python2.4/site-packages/
>>> spatialdata-0.3.0-py2.4.egg/spatialdata/spatialdb/SpatialDB.py",
>>> line 21, in ?
>>> import spatialdb as bindings
>>> ImportError: No module named spatialdb
>>>
>>>
>>> At a glance the spataildata directory in my installation doesn't
>>> look
>>> different from the one in the prebuilt tarball.
>>>
>>> Thanks,
>>> Chris
>>> _______________________________________________
>>> CIG-SHORT mailing list
>>> CIG-SHORT at geodynamics.org
>>> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short
>>>
>>>
>>>
>>> Charles A. Williams
>>> Dept. of Earth & Environmental Sciences
>>> Science Center, 2C01B
>>> Rensselaer Polytechnic Institute
>>> Troy, NY 12180
>>> Phone: (518) 276-3369
>>> FAX: (518) 276-2012
>>> e-mail: willic3 at rpi.edu
>>>
>>>
>>>
>>> _______________________________________________
>>> CIG-SHORT mailing list
>>> CIG-SHORT at geodynamics.org
>>> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short
>>>
>>>
>>>
>>
>>
>> --
>> What most experimenters take for granted before they begin their
>> experiments is infinitely more interesting than any results to which
>> their experiments lead.
>> -- Norbert Wiener
>>
>
> Charles A. Williams
> Dept. of Earth & Environmental Sciences
> Science Center, 2C01B
> Rensselaer Polytechnic Institute
> Troy, NY 12180
> Phone: (518) 276-3369
> FAX: (518) 276-2012
> e-mail: willic3 at rpi.edu
>
>
-------------- next part --------------
Skipped content of type multipart/mixed
More information about the CIG-SHORT
mailing list