Custom Query (171 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (37 - 39 of 171)

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Ticket Resolution Summary Owner Reporter
#44 fixed easy_install b0rked xi anseljh@…

Reported by anseljh@…, 7 years ago.

Description

All I want is to easy_install pysyck... :(

Here's what happens on my Mac (OS X 10.4.8; Python 2.4.4):

$ sudo easy_install pysyck
Password:
Searching for pysyck
Reading http://cheeseshop.python.org/pypi/pysyck/
Couldn't find index page for 'pysyck' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
Reading http://cheeseshop.python.org/pypi/PySyck/0.61.2
Reading http://pyyaml.org/wiki/PySyck
Best match: PySyck 0.61.2
Downloading http://pyyaml.org/download/pysyck/PySyck-0.61.2.zip
Processing PySyck-0.61.2.zip
Running PySyck-0.61.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-y67SG5/PySyck-0.61.2/egg-dist-tmp-pDzaUo
./_check_syck.c:2:18: error: syck.h: No such file or directory
./_check_syck.c:2:18: error: syck.h: No such file or directory
./_check_syck.c: In function 'main':
./_check_syck.c:7: error: 'SYCK_VERSION' undeclared (first use in this function)
./_check_syck.c:7: error: (Each undeclared identifier is reported only once
./_check_syck.c:7: error: for each function it appears in.)
./_check_syck.c: In function 'main':
./_check_syck.c:7: error: 'SYCK_VERSION' undeclared (first use in this function)
./_check_syck.c:7: error: (Each undeclared identifier is reported only once
./_check_syck.c:7: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccX0yyzM.out
error: Setup script exited with error: syck.h is not found, try to uncomment the include_dirs parameter in setup.cfg

...and on my Fedora Core 6 box (also Python 2.4.4):

$ sudo easy_install pysyck
Password:
Searching for pysyck
Reading http://cheeseshop.python.org/pypi/pysyck/
Couldn't find index page for 'pysyck' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
Reading http://cheeseshop.python.org/pypi/PySyck/0.61.2
Reading http://pyyaml.org/wiki/PySyck
Best match: PySyck 0.61.2
Downloading http://pyyaml.org/download/pysyck/PySyck-0.61.2.zip
Processing PySyck-0.61.2.zip
Running PySyck-0.61.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-waHbzc/PySyck-0.61.2/egg-dist-tmp-ltTkBA
./_check_syck.c:2:18: error: syck.h: No such file or directory
./_check_syck.c: In function ‘main’:
./_check_syck.c:5: warning: implicit declaration of function ‘syck_free_parser’
./_check_syck.c:5: warning: implicit declaration of function ‘syck_new_parser’
./_check_syck.c:6: warning: implicit declaration of function ‘syck_free_emitter’
./_check_syck.c:6: warning: implicit declaration of function ‘syck_new_emitter’
./_check_syck.c:7: error: ‘SYCK_VERSION’ undeclared (first use in this function)
./_check_syck.c:7: error: (Each undeclared identifier is reported only once
./_check_syck.c:7: error: for each function it appears in.)
error: Setup script exited with error: syck.h is not found, try to uncomment the include_dirs parameter in setup.cfg

Help?

#17 fixed Single quote character can break emitter output xi apopheniac.reply.pyyaml@…

Reported by apopheniac.reply.pyyaml@…, 8 years ago.

Description

If a string contains a space followed by a single quote character, PyYaml?'s emitter fails to duplicate the single quote. The resulting YAML output yields a parse error:

>>> map = {'key': " 'single quoted text'"}
>>> yaml.dump(map)
"{key: ' 'single quoted text'''}\n"
>>> yaml.load(yaml.dump(map))
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/home/apopheniac/lib/python/yaml/__init__.py", line 61, in load
    return loader.get_data()
  File "/home/apopheniac/lib/python/yaml/constructor.py", line 41, in get_data
    return self.construct_document(self.get_node())
  File "/home/apopheniac/lib/python/yaml/composer.py", line 23, in get_node
    return self.compose_document()
  File "/home/apopheniac/lib/python/yaml/composer.py", line 40, in compose_document
    node = self.compose_node(None, None)
  File "/home/apopheniac/lib/python/yaml/composer.py", line 69, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/home/apopheniac/lib/python/yaml/composer.py", line 112, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/home/apopheniac/lib/python/yaml/parser.py", line 78, in check_event
    self.current_event = self.event_generator.next()
  File "/home/apopheniac/lib/python/yaml/parser.py", line 129, in parse_stream
    for event in self.parse_block_node():
  File "/home/apopheniac/lib/python/yaml/parser.py", line 323, in parse_node
    for event in collection_events:
  File "/home/apopheniac/lib/python/yaml/parser.py", line 472, in parse_flow_mapping
    "expected ',' or '}', but got %r" % token.id, token.start_mark)
yaml.parser.ParserError: while scanning a flow mapping
  in "<string>", line 1, column 1:
    {key: ' 'single quoted text'''}
    ^
expected ',' or '}', but got '<scalar>'
  in "<string>", line 1, column 10:
    {key: ' 'single quoted text'''}
             ^

If each single quote is preceded by a non-space character, then the error disappears:

>>> map = {"key": " foo'single quoted text'"}
>>> yaml.dump(map)
"{key: ' foo''single quoted text'''}\n"
>>> yaml.load(yaml.dump(map))
{'key': " foo'single quoted text'"}

The error seems to lie in the write_single_quoted function of module emitter.py. I've only encountered this problem with scalars represented in single quoted style.

#55 invalid Why can't I do "Abilities: Skills: Meele: Sword Staff"? xi arne_bab@…

Reported by arne_bab@…, 7 years ago.

Description

Why can't I use an input document containing a line like the following?

Abilities: Skills: Meele: Sword Staff

Doesn't yaml permit that?

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Note: See TracQuery for help on using queries.