[CIG-SHORT] Pylithapp error

Charles Williams willic3 at gmail.com
Sun Nov 9 14:40:23 PST 2014


Dear Rishabh,

This looks like a configuration problem.  You must have one or more additional .cfg files, correct?  It would be helpful to see those as well, and the command you are using to run PyLith.

Cheers,
Charles


> On 10/11/2014, at 5:26 am, Rishabh Dutta <rishabh.dutta at kaust.edu.sa> wrote:
> 
> Dear Brad et. al., 
> 
> I am trying to run a 2D toy problem where a give a displacement field on the boundary of the domain and try to estimate the response of a fault with static friction. It is a compliant fault zone problem. I am using pylith2.0.3. 
> 
>  I am getting an error with the mesh reader I guess. The error comes before the mesh is read: 
> 
> ---------------------
>  Traceback (most recent call last):
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/bin/pylith", line 27, in <module>
>     start(applicationClass=PyLithApp)
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/applications/__init__.py", line 41, in start
>     shell.run(**kwds)
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/applications/Shell.py", line 73, in run
>     self.initializeConfiguration(context)
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/inventory/Configurable.py", line 55, in initializeConfiguration
>     return self.inventory.initializeConfiguration(context)
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/inventory/Inventory.py", line 26, in initializeConfiguration
>     extraDepositories=self._priv_depositories)
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/inventory/odb/Curator.py", line 37, in getTraits
>     errorHandler=self._recordTraitLookup):
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/odb/fs/Curator.py", line 70, in loadSymbol
>     shelf = codec.open(spec, 'r')
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/odb/fs/CodecODB.py", line 33, in open
>     self._decode(shelf)
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/inventory/cfg/CodecConfig.py", line 37, in _decode
>     parser.read(shelf.name <http://shelf.name/>)
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/ConfigParser.py", line 305, in read
>     self._read(fp, filename)
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/site-packages/pythia-0.8.1.16-py2.7.egg/pyre/inventory/cfg/Parser.py", line 98, in _read
>     SafeConfigParser._read(self, self._sections.fp, fpname)
>   File "/home/duttar/Desktop/softwares/pylith-2.0.3-linux-x86_64/lib/python2.7/ConfigParser.py", line 493, in _read
>     cursect[optname].append(value)
> AttributeError: 'str' object has no attribute 'append'
> ----------------------------------------------------------
> 
> I am attaching the .exo file (created in Trelis 15) and the pylithapp.cfg file. 
> 
> Thanks,
> Rishabh Dutta
> 
> -- 
> Rishabh Dutta,
> 
> Ph. D. Student, Department of Earth Sciences 
> King Abdullah University of Science and Technology (KAUST)
> Al-Khawarizmi Applied Mathematics Building (Bldg. #1) | Office Cubicle # 3139-WS55
> Mail Box 1720 | Thuwal 23955-6900 | Makkah Province | Kingdom of Saudi Arabia
> 
> Office Phone: +966 2 808-0351 <>
> Personal Mobile No, : +966 544 700 852 <>
> Email: rishabh.dutta at kaust.edu.sa <mailto:rishabh.dutta at kaust.edu.sa>
> Website: http://cdi.kaust.edu.sa/Pages/Dutta.aspx <http://cdi.kaust.edu.sa/Pages/Dutta.aspx>
> This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.<pylithapp.cfg><CFZ.exo>_______________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/cig-short

Charles A. Williams
Scientist
GNS Science
1 Fairway Drive, Avalon
PO Box 30368
Lower Hutt  5040
New Zealand
ph (office): 0064-4570-4566
fax (office): 0064-4570-4600
C.Williams at gns.cri.nz <mailto:C.Williams at gns.cri.nz>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/cig-short/attachments/20141110/74238d5c/attachment.html>


More information about the CIG-SHORT mailing list