Python setup tutorial struggles

24 views
Skip to first unread message

emma redfoot

unread,
Feb 2, 2018, 4:30:03 PM2/2/18
to Cyclus Users
Hello,

I am going through the tutorial found here:http://fuelcycle.org/arche/tutorial_py/setup.html .  I have the most up to date version of cyclus.  When I enter the command cyclus -v 2 input/storage.py I get this  error out:

Entity: line 1: parser error : Start tag expected, '<' not found
SIMULATION = {
^
terminate called after throwing an instance of 'cyclus::ValidationError'
  what():  Error loading xml file: Document not well-formed.
Line 1, column 1 (fatal):
Start tag expected, '<' not found

Aborted (core dumped)

Any troubleshooting suggestions would be great!

Thanks,

Emma 

emma redfoot

unread,
Feb 6, 2018, 5:12:11 PM2/6/18
to Cyclus Users
I re-did the tutorial and it all is working now.

Thanks,

Emma

emma redfoot

unread,
Feb 7, 2018, 11:30:36 AM2/7/18
to Cyclus Users
Hi,

I moved on to the Adding State Variables and have been unable to resolve this error after updating the storage.py file and running cyclus -v 2 input/storage.py:

Traceback (most recent call last):
  File "agents.pyx", line 952, in cyclus.agents._Agent.schema.__get__
  File "/home/cyc-user/.local/lib/python2.7/site-packages/cyclus/cycpp.py", line 1799, in xml_from_ctx
    xml += self._buildschema(t, schematype, uitype, labels)
  File "/home/cyc-user/.local/lib/python2.7/site-packages/cyclus/cycpp.py", line 1706, in _buildschema
    d_type = self._type(t, schematype or uitype)
  File "/home/cyc-user/.local/lib/python2.7/site-packages/cyclus/cycpp.py", line 1685, in _type
    if given in self.alltypes:
TypeError: unhashable type: 'list'
Exception TypeError: "unhashable type: 'list'" in 'CyclusFacilityShim.schema' ignored
in_memory_buffer:108: element element: Relax-NG parser error : xmlRelaxNGParseElement: element has no content
 ERROR(core  ):Schema could not be parsed

I am not sure where there is a list in the storage facility. I tried going through the tutorial on an older version of Cyclus I have on my desktop, and it works just fine.  Any suggestions would be great.

Thanks,

Emma 
Reply all
Reply to author
Forward
0 new messages