Page 1 of 4

New Export error?

PostPosted: Thu May 20, 2010 6:16 pm
by Jamey
Hey all,

I was putting an imager in my age today, and came across this error:
Code: Select all
Compiled with Python version 2.5.2.
Checking for installed Python... got it!
Exporting c:\Program Files\Ubi Soft\Cyan Worlds\Uru - Ages Beyond Myst\dat\Vogok
h_Oglahn.age ...
Args are e_age_final
['e', 'age', 'final']
Exporting age Vogokh_Oglahn
[AlcScript Parser]
Traceback (most recent call last):
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 169, in open_file
    export_age(agename,basepath,selection,merge)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 62, in export_age
    AlcScript.LoadFromBlender()
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 200, in _LoadFromBlender
    AlcScript.objects = AlcScript(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 51, in __init__
    self.Read(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 63, in Read
    self.content = yaml.safe_load(text)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 75, in safe_load
    return load(stream, SafeLoader)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 57, in load
    loader = Loader(stream)
  File "C:\Python25\lib\site-packages\yaml\loader.py", line 24, in __init__
    Reader.__init__(self, stream)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 114, in __init__
    self.determine_encoding()
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 170, in determine_en
coding
    self.update(1)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 204, in update
    self.check_printable(data)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 179, in check_printa
ble
    'unicode', "special characters are not allowed")
yaml.reader.ReaderError: unacceptable character #x001f: special characters are n
ot allowed
  in "<string>", position 7387
Exporting c:\Program Files\Ubi Soft\Cyan Worlds\Uru - Ages Beyond Myst\dat\Vogok
h_Oglahn.age ...
Args are e_age_final
['e', 'age', 'final']
Exporting age Vogokh_Oglahn
[AlcScript Parser]
Traceback (most recent call last):
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 169, in open_file
    export_age(agename,basepath,selection,merge)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 62, in export_age
    AlcScript.LoadFromBlender()
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 200, in _LoadFromBlender
    AlcScript.objects = AlcScript(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 51, in __init__
    self.Read(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 63, in Read
    self.content = yaml.safe_load(text)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 75, in safe_load
    return load(stream, SafeLoader)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 57, in load
    loader = Loader(stream)
  File "C:\Python25\lib\site-packages\yaml\loader.py", line 24, in __init__
    Reader.__init__(self, stream)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 114, in __init__
    self.determine_encoding()
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 170, in determine_en
coding
    self.update(1)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 204, in update
    self.check_printable(data)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 179, in check_printa
ble
    'unicode', "special characters are not allowed")
yaml.reader.ReaderError: unacceptable character #x001f: special characters are n
ot allowed
  in "<string>", position 7387
Exporting c:\Program Files\Ubi Soft\Cyan Worlds\Uru - Ages Beyond Myst\dat\Vogok
h_Oglahn.age ...
Args are e_age_final
['e', 'age', 'final']
Exporting age Vogokh_Oglahn
[AlcScript Parser]
Traceback (most recent call last):
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 169, in open_file
    export_age(agename,basepath,selection,merge)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 62, in export_age
    AlcScript.LoadFromBlender()
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 200, in _LoadFromBlender
    AlcScript.objects = AlcScript(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 51, in __init__
    self.Read(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 63, in Read
    self.content = yaml.safe_load(text)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 75, in safe_load
    return load(stream, SafeLoader)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 57, in load
    loader = Loader(stream)
  File "C:\Python25\lib\site-packages\yaml\loader.py", line 24, in __init__
    Reader.__init__(self, stream)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 114, in __init__
    self.determine_encoding()
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 170, in determine_en
coding
    self.update(1)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 204, in update
    self.check_printable(data)
  File "C:\Python25\lib\site-packages\yaml\reader.py", line 179, in check_printa
ble
    'unicode', "special characters are not allowed")
yaml.reader.ReaderError: unacceptable character #x001f: special characters are n
ot allowed
  in "<string>", position 7387


Has anyone seen this error before?

Re: New Export error?

PostPosted: Thu May 20, 2010 6:20 pm
by kaelisebonrai
looks like you used a unicode character. =P Not sure which, though...

Re: New Export error?

PostPosted: Thu May 20, 2010 6:29 pm
by Jamey
I know I didn't edit the alc-script at all when making the imager, so it can't be there.

Where should I be looking for this character specifically?

Re: New Export error?

PostPosted: Thu May 20, 2010 7:57 pm
by kaelisebonrai
...The alcscript, by the looks of it. =P

Re: New Export error?

PostPosted: Thu May 20, 2010 9:11 pm
by Paradox
It's a non-printing character from the looks of it... 0x001F, which is a separator

Re: New Export error?

PostPosted: Fri May 21, 2010 12:47 pm
by Jamey
I looked in the alc-script and didn't find anything out of the ordinary:
Code: Select all
VOJournal:
    physical:
        pinned: true
    quickscript:
        simpleclick:
            pythonfile: Vogokh_OglahnBookGUI
            region: JournalRegion

Water:
    type: waveset
    visual:
        waveset:
            envradius: 1371.405
            envmap: ENVtestsky.png
            depthrange:
                opac:
                    start: 0
                    end: 0.5

BE1:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE1
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE2:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE2
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE3:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE3
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE4:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE4
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE5:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE5
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE6:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE6
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE7:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE7
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE8:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE8
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE9:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE9
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE10:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE10
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE11:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
             - type: objectinbox
                satisfied: true
            actions:
             - type: sittingmod
                ref: sittingmod:BE11
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE12:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE12
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

Re: New Export error?

PostPosted: Fri May 21, 2010 5:08 pm
by D'Lanor
That is because it is an invisible unit separator character. It looks just like a space. In fact there are two of them in the Alcscript of your BE11 object in the lines:
Code: Select all
             - type: objectinbox

and
Code: Select all
             - type: sittingmod

Re: New Export error?

PostPosted: Fri May 21, 2010 6:56 pm
by Jamey
Ok, I think I managed to fix that error. The only problem is after I rewrote the two lines with the invisible unicode characters, I come across this error now...dealing with BE11 still. :?
Code: Select all
Compiled with Python version 2.5.2.
Checking for installed Python... got it!
Exporting c:\Program Files\Ubi Soft\Cyan Worlds\Uru - Ages Beyond Myst\dat\Vogok
h_Oglahn.age ...
Args are e_age_final
['e', 'age', 'final']
Exporting age Vogokh_Oglahn
[AlcScript Parser]
Traceback (most recent call last):
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 169, in open_file
    export_age(agename,basepath,selection,merge)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_E
xport.py", line 62, in export_age
    AlcScript.LoadFromBlender()
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 200, in _LoadFromBlender
    AlcScript.objects = AlcScript(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 51, in __init__
    self.Read(text)
  File "c:\Program Files\Blender Foundation\Blender\.blender\scripts\PyPRP\prp_A
lcScript.py", line 63, in Read
    self.content = yaml.safe_load(text)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 75, in safe_load
    return load(stream, SafeLoader)
  File "C:\Python25\lib\site-packages\yaml\__init__.py", line 58, in load
    return loader.get_single_data()
  File "C:\Python25\lib\site-packages\yaml\constructor.py", line 42, in get_sing
le_data
    node = self.get_single_node()
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 36, in get_single_
node
    document = self.compose_document()
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 55, in compose_doc
ument
    node = self.compose_node(None, None)
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 84, in compose_nod
e
    node = self.compose_mapping_node(anchor)
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 133, in compose_ma
pping_node
    item_value = self.compose_node(node, item_key)
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 84, in compose_nod
e
    node = self.compose_mapping_node(anchor)
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 133, in compose_ma
pping_node
    item_value = self.compose_node(node, item_key)
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 84, in compose_nod
e
    node = self.compose_mapping_node(anchor)
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 133, in compose_ma
pping_node
    item_value = self.compose_node(node, item_key)
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 82, in compose_nod
e
    node = self.compose_sequence_node(anchor)
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 111, in compose_se
quence_node
    node.value.append(self.compose_node(node, index))
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 84, in compose_nod
e
    node = self.compose_mapping_node(anchor)
  File "C:\Python25\lib\site-packages\yaml\composer.py", line 127, in compose_ma
pping_node
    while not self.check_event(MappingEndEvent):
  File "C:\Python25\lib\site-packages\yaml\parser.py", line 93, in check_event
    self.current_event = self.state()
  File "C:\Python25\lib\site-packages\yaml\parser.py", line 434, in parse_block_
mapping_key
    "expected <block end>, but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
  in "<string>", line 295, column 13:
              - cursor: poised
                ^
expected <block end>, but found '<block sequence start>'
  in "<string>", line 307, column 14:
                 - type: objectinbox
                 ^

Re: New Export error?

PostPosted: Fri May 21, 2010 9:00 pm
by Paradox
BE11... you have strange characters on lines 307 and 310. They show up as ^_ in vim, not sure what character that's trying to represent :?

Re: New Export error?

PostPosted: Fri May 21, 2010 9:26 pm
by Jamey
Just checked, lines 307 and 310 are the same lines D'lanor quoted earlier. So we are dealing with multiple problems in the same line apparently? :?

What's weird is that it was working completely fine a few days ago, then I add an imager (which made no alc-script changes at all), and Blender doesn't like it...

This is what my alc-script looks like as of now:
Code: Select all
VOJournal:
    physical:
        pinned: true
    quickscript:
        simpleclick:
            pythonfile: Vogokh_OglahnBookGUI
            region: JournalRegion

Water:
    type: waveset
    visual:
        waveset:
            envradius: 1371.405
            envmap: ENVtestsky.png
            depthrange:
                opac:
                    start: 0
                    end: 0.5

BE1:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE1
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE2:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE2
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE3:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE3
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE4:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE4
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE5:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE5
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE6:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR2
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE6
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE7:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE7
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE8:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE8
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE9:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE9
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE10:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE10
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE11:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
             - type: objectinbox
                satisfied: true
            actions:
             - type: sittingmod
                ref: sittingmod:BE11
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1

BE12:
    visual:
        render: false
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: BR1
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:BE12
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1