Ticket #185 (new defect)

Opened 3 years ago

Last modified 27 hours ago

cyaml doesn't work on Mac OS X.6.6 with Python 2.6 or 3.2

Reported by: anonymous Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:


1) in _yaml.h #include <yaml.h> doesn't find "/usr/local/include/yaml.h"

2) with #include "/usr/local/include/yaml.h" it seems to work OK but whith the following warning:

gcc-4.2 -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -isysroot /Developer/SDKs/MacOSX10.6.sdk -g build/temp.macosx-10.6-intel-3.2/ext/_yaml.o -lyaml -o build/lib.macosx-10.6-intel-3.2/ ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libyaml.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

3) then python3 --with-libyaml install seems also to work OK but when I try to use it I pinpoint the following error:

from yaml import CLoader

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

ImportError?: cannot import name CLoader

to a more explicite one:

import yaml.cyaml

Traceback (most recent call last):

File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python?.framework/Versions/3.2/lib/python3.2/site-packages/yaml/", line 5, in <module>

from _yaml import CParser, CEmitter

ImportError?: dlopen(/Library/Frameworks/Python?.framework/Versions/3.2/lib/python3.2/site-packages/, 2): Symbol not found: _PyCObject_FromVoidPtr

Referenced from: /Library/Frameworks/Python?.framework/Versions/3.2/lib/python3.2/site-packages/ Expected in: flat namespace

in /Library/Frameworks/Python?.framework/Versions/3.2/lib/python3.2/site-packages/

Thank you.


Change History

comment:1 Changed 27 hours ago by maskodok <galihadiputro87@…>

The only thing more I could hope for is documentation of all these features (other than reading through the code).  Cipto Junaedy Is this in process? Can I help? About  Unit Link Terbaik di Indonesia Commonwealth Life Investra Link


Add a comment

Modify Ticket

Change Properties
<Author field>
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.