Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#1225 closed Defect (Fixed)

can not run python plugins

Reported by: yqiang Owned by: timothy
Component: Colloquy (Mac) Version: Local Build
Severity: Critical Keywords:


I created a Python plugin which can be found here:

However, when I drop it into the PlugIns? folder and do /reload plugins, it gives me an error about NOT being able to find the 'objc' module. I believe this is because it's using the incorrect python interpreter (in /opt/local/bin). It should be using /usr/bin/python. I tried adding a #!/usr/bin/python at the top which made no difference.

Any ideas on how to resolve this? I got the source code for Colloquy and it seems to be linking to the correct Python.framework in /System/Library/Frameworks?

Change History (6)

comment:1 Changed 12 years ago by yqiang

  • Version changed from Latest 2.1 to Built Source

Attached is a patch that compiles the Python Plugin support using -weak_library to link against Python 2.5 and Python 2.3. This fixes the 'import objc' problem for people running Leopard.

comment:2 Changed 12 years ago by uuid

The patch does not compile with latest svn and xcode 3.1. Build of Python Support Plugin fails with "framework not found Python.framework". pyobjc and python 2.5 are apple as of 10.5.4. Build output attached.

comment:3 Changed 11 years ago by Rinoa

  • Resolution set to worksforme
  • Status changed from new to closed

comment:4 Changed 11 years ago by jezdez

  • milestone set to Colloquy 2.3
  • Resolution worksforme deleted
  • Status changed from closed to reopened

This patch does indeed fix the issue for me, using Xcode 3.1 on 10.5.6. Reopining since it clearly is a bug.

comment:5 Changed 11 years ago by timothy

  • Resolution set to fixed
  • Status changed from reopened to closed

Landed the patch in r4307.

comment:6 Changed 11 years ago by jezdez

Now I'm confused, latest checkout doesn't make it work for me. I had to remove -weak_framework Python from the build configuration to make it work :/

Note: See TracTickets for help on using tickets.