Modify ↓
Ticket #135 (closed defect: invalid)
PyYaml 3.08 w/ python 3.1 os x
| Reported by: | jjdenis@… | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | pyyaml |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by xi) (diff)
I can not setup PyYaml? 3.08 to work with python 3.1 under os x
imac:PyYAML-3.08 jjdenis$ python setup.py install running install running build running build_py creating build creating build/lib.macosx-10.5-i386-2.5 creating build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/__init__.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/composer.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/constructor.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/cyaml.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/dumper.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/emitter.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/error.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/events.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/loader.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/nodes.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/parser.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/reader.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/representer.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/resolver.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/scanner.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/serializer.py -> build/lib.macosx-10.5-i386-2.5/yaml copying lib/yaml/tokens.py -> build/lib.macosx-10.5-i386-2.5/yaml running build_ext creating build/temp.macosx-10.5-i386-2.5 checking if libyaml is compilable gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c build/temp.macosx-10.5-i386-2.5/check_libyaml.c -o build/temp.macosx-10.5-i386-2.5/check_libyaml.o unable to execute gcc: No such file or directory libyaml is not found or a compiler error: forcing --without-libyaml (if libyaml is installed correctly, you may need to specify the option --include-dirs or uncomment and modify the parameter include_dirs in setup.cfg) running install_lib running install_egg_info Removing /Library/Python/2.5/site-packages/PyYAML-3.08-py2.5.egg-info Writing /Library/Python/2.5/site-packages/PyYAML-3.08-py2.5.egg-info imac:PyYAML-3.08 jjdenis$ python3 Python 3.1 (r31:73578, Jun 27 2009, 21:49:46) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import yaml Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named yaml >>> quit() imac:PyYAML-3.08 jjdenis$ python2.5 Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import yaml >>> quit() imac:PyYAML-3.08 jjdenis$
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

You have installed PyYAML using Python 2.5, so it works under Python 2.5. To install PyYAML under Python 3.1, run python3.1 setup.py install.