Ticket #1225 (new defect)

Opened 8 months ago

Last modified 5 months 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.
build-output.txt (1.3 kB) - added by uuid on 07/15/08 11:33:11.
Output of failed build with patch

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.

07/15/08 11:32:43 changed 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.

07/15/08 11:33:11 changed by uuid

  • attachment build-output.txt added.

Output of failed build with patch