Ticket #1225 (new defect)

Opened 1 month ago

Last modified 1 month ago

can not run python plugins

Reported by: yqiang Assigned to: timothy
Priority: highest 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 on 04/10/08 00:32:48.

Change History

04/10/08 00:32:48 changed by yqiang

  • attachment python_plugin.patch added.

04/10/08 00:34:19 changed 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.