Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 2 of 2
  1. #1
    josephox is offline Registered User
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Run script with python version 2.3?

    Have a script on my server which was working fine before I upgraded to leopard, now there are some warnings:
    RuntimeWarning: Python C API version mismatch for module rand: This Python has API version 1013, module rand has version 1012.
    import rand, crypto, SSL, tsafe
    Then an error about an 'int' object not having the attribute '__name__'

    I can see that version 2.3 is installed as well as 2.5, wondering is there anyway that I can direct the script to run on the 2.3 framework?

    Tried setting a link to 2.3 but that didn't seem to work.

    Thanks,
    Joseph

  2. #2
    josephox is offline Registered User
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Copied 2.3 from old version of os x into ../Versions/2.3/bin/. Set pointer from /usr/bin/ and ran the script from that. Works fine.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •