paramiko and cElementTree problems on an Intel Mac
John A Meinel
john at arbash-meinel.com
Sun Feb 19 15:38:39 GMT 2006
Jordan Mantha wrote:
> Hi all!
> First of all, thanks for bzr. I am very new to revision control but
> I've used svn a little before. I am liking bzr so far.
> Ok, so I recently got an Intel iMac at work and so I wanted to install
> bzr because I work with the Ubuntu MOTU and a fair amount is done with
> bzr. First, Darwin Ports isn't working very well for me (can't install
> python) so I installed MacPython 2.4.1 from http://undefined.org/python/
> . I downloaded the source for and installed (via "sudo python setup.py
> install") ElementTree, cElementTree, pyCrypto, paramiko, and bzr. Now,
> when I tried to test them as shown on
> http://bazaar.canonical.com/Installation, I get :
>
> $python -c "import Crypto"
...
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/paramiko/rsakey.py",
> line 25, in ?
> from Crypto.Cipher import DES3
> ImportError: Inappropriate file type for dynamic loading
>
> $python -c "import cElementTree"
> Traceback (most recent call last):
> File "<string>", line 1, in ?
> ImportError: Inappropriate file type for dynamic loading
>
>
> So it looks like there is this dynamic loading problem. I am wondering
> if this is Intel mac specific. Pertinent info is:
> Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
> [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
>
> Are the errors that I'm seeing critical? Will bzr still work? Would I
> just be missing sftp support?
>
> Thanks,
> Jordan Mantha (aka LaserJock)
>
>
This sounds very much like it is an issue of how python works on intel
Macs. I don't know of anyone else who has tried this. But it would be a
python bug, not really a bzr one.
Instead of doing 'import Crypto' you should try to do:
python -c "import Crypto.Cipher.DES3"
I think the issue is that python can't load the extension modules.
I'm wondering if it would be as simple as 'mv foo.dylib foo.so'. But I'm
guessing python distutils hasn't been updated with the Intel Mac as a
target. So it sees that it is on a Mac, and is creating the wrong binary
files.
I'm not sure that we can help you more with this. You could try IRC, we
tend to be friendly and helpful, but I don't know that we have Intel Mac
experience.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060219/43bafa70/attachment.pgp
More information about the bazaar
mailing list