PyYAML with Python 3.x -


i've problem using yaml (pyyaml 3.11) library in python 3.x. when call import yaml following error:

python 3.4.3+ (default, oct 14 2015, 16:03:50)  [gcc 5.2.1 20151010] on linux type "help", "copyright", "credits" or "license" more information. >>> import yaml traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "/home/mlohr/python-libs/yaml/__init__.py", line 2, in <module>     error import * importerror: no module named 'error' 

error file located in yaml directory, __init__.py yaml use absolute imports. guess that's problem, i#'m not sure.

in http://pyyaml.org/wiki/pyyamldocumentation#python3support short path (supposed) python 3 support, i'm not sure if i'm using wrong way.

the same issue occurs (that's way found problem) when using python 3 python scripts using yaml.

with python 2.7 , 2.6 works without problems.

any idea/suggestion how working?

it seem you're either using old version of pyyaml after or using python2 installation of pyyaml python3 suggested in other answer, because in traceback see

from error import * 

which not absolute import. should either upgrade, reinstall pyyaml python3 sources in environment, or create new environment python3 packages.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -