Hi guys, I have a problem when trying to make an exe with PyInstaller
that uses PyYaml. Here is the code:


-------
import yaml

def main():
    print yaml.load(open('in.yaml').read())

if __name__ == '__main__':
    main()
-------

When trying to run I get this:

c:\PyInstaller\fyaml\dist\fyaml>fyaml.exe
Traceback (most recent call last):
  File "<string>", line 13, in <module>
  File "<string>", line 8, in main
  File "fyaml\build\pyi.win32\fyaml\outPYZ1.pyz/yaml", line 58, in load
  File "fyaml\build\pyi.win32\fyaml\outPYZ1.pyz/yaml.constructor",
line 44, in get_single_data
  File "fyaml\build\pyi.win32\fyaml\outPYZ1.pyz/yaml.constructor",
line 53, in construct_document
  File "fyaml\build\pyi.win32\fyaml\outPYZ1.pyz/yaml.constructor",
line 403, in construct_yaml_map
  File "fyaml\build\pyi.win32\fyaml\outPYZ1.pyz/yaml.constructor",
line 213, in construct_mapping
  File "fyaml\build\pyi.win32\fyaml\outPYZ1.pyz/yaml.constructor",
line 132, in construct_mapping
  File "fyaml\build\pyi.win32\fyaml\outPYZ1.pyz/yaml.constructor",
line 93, in construct_object
  File "fyaml\build\pyi.win32\fyaml\outPYZ1.pyz/yaml.constructor",
line 391, in construct_yaml_str
LookupError: unknown encoding: ascii

Any ideas how to fix this? I didn't use "--ascii" option, if that matters.

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to