Ticket #1225 (closed Defect: fixed)

Opened 2 years ago

Last modified 16 months ago

can not run python plugins

Reported by: yqiang Owned by: timothy
Priority: Highest Milestone: Colloquy 2.3
Component: Python Support Version: Built Source
Severity: Critical Keywords:
Cc:

Description

I created a Python plugin which can be found here:

 http://yiqiang.org/sage-devel-trac.py

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

Attachments

python_plugin.patch (3.5 KB) - added by yqiang 2 years ago.
build-output.txt (1.3 KB) - added by uuid 2 years ago.
Output of failed build with patch

Change History

Changed 2 years ago by yqiang

Changed 2 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.

Changed 2 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.

Changed 2 years ago by uuid

Output of failed build with patch

Changed 21 months ago by Rinoa

  • status changed from new to closed
  • resolution set to worksforme

Changed 16 months ago by jezdez

  • status changed from closed to reopened
  • resolution worksforme deleted
  • milestone set to Colloquy 2.3

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

Changed 16 months ago by timothy

  • status changed from reopened to closed
  • resolution set to fixed

Landed the patch in r4307.

Changed 16 months 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.