Custom Query (132 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (52 - 54 of 132)

Ticket Resolution Summary Owner Reporter
#156 fixed libyaml fails to identify simple keys in very long files on 32-bit platforms xi ppelletier@…

Reported by ppelletier@…, 4 years ago.

Description

I have file which contains thousands of relatively short YAML documents, so the file is large (nearly a gigabyte) but the individual documents are not.

I can provide this file if necessary, but I'm not attaching it because it's so large (982M uncompressed, and still 45M when bzip2'ed).

I was getting this error:

Parser error: while parsing a block mapping at line 9259457, column 5
did not find expected key at line 9260367, column 5

This error occurs in both libyaml-0.1.2 and libyaml-0.1.3, but only on 32-bit machines (I tried Ubuntu 8.04 for x86-32, and Intel Mac OS X 10.5 with the compiler in 32-bit mode). If I parse the same file with libyaml on a 64-bit machine (e. g. Ubuntu 8.04 for x86-64), it parses successfully with no error.

I eventually tracked this problem down to an overflow in pointer arithmetic in yaml_parser_save_simple_key(), in yaml-0.1.3/src/scanner.c on line 1125. I changed this:

        simple_key.token_number = 
            parser->tokens_parsed + parser->tokens.tail - parser->tokens.head;

to this:

        simple_key.token_number = 
            parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head);

which caused my file to be parsed successfully, even on 32-bit platforms. So, I would recommend adding this fix to libyaml-0.1.4. Thanks!

#163 fixed PyYAML is not installable with Jython xi olt@…

Reported by olt@…, 4 years ago.

Description

Installing PyYaml? with pip install under Jython doesn't work on a system that has a compiler. It checks for libyaml compatibility and then errors: "Compiling extensions is not supported on Jython"

Solution: Don't add ext_module for platform.system() == Java. See patch.

#170 fixed PyYAML 3.09 + Python 2.7 — easy_install installation broken, binary installer absent xi anonymous

Reported by anonymous, 4 years ago.

Description
C:\Python27\Scripts>easy_install.exe pyyaml
install_dir c:\Python27\Lib\site-packages\
Searching for pyyaml
Reading http://pypi.python.org/simple/pyyaml/
Reading http://pyyaml.org/wiki/PyYAML
Best match: PyYAML 3.09
Downloading http://pyyaml.org/download/pyyaml/PyYAML-3.09.zip
Processing PyYAML-3.09.zip
Running PyYAML-3.09\setup.py -q bdist_egg --dist-dir d:\temp\easy_install-02p1z8\PyYAML-3.09\egg-dist-tmp-6im7x1
Creating lexicon...
Done (0.03 seconds)
error: Setup script exited with error: SandboxViolation: open('c:\\Python27\\lib\\site-packages\\pyrex-0.9.9-py2.7.egg\\Pyrex\\C
ompiler\\Lexicon.pickle', 'wb') {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
Note: See TracQuery for help on using queries.