[Pythonmac-SIG] Pythonw and VPython and Fink
Hello, I would like to use SPE (cool Python editor) with vpython, that I installed with fink (unfortunately there is no other possibility yet). My vpython stuff is located in /sw/lib/python2.4/site-packages/ visual, but I run SPE with /usr/local/bin/pythonw2.4. When I try to run any vpython script I encounter the following error: /// Traceback (most recent call last): File bounce.py, line 1, in ? from visual import * File /sw/lib/python2.4/site-packages/visual/__init__.py, line 15, in ? import array_backend File /sw/lib/python2.4/site-packages/visual/array_backend.py, line 1, in ? import cvisual ImportError: Failure linking new module: /sw/lib/python2.4/site- packages/cvisualmodule.so: Symbol not found: _PyObject_IsInstance Referenced from: /sw/lib/python2.4/site-packages/cvisualmodule.so Expected in: /Library/Frameworks/Python.framework/Versions/2.4/ Resources/Python.app/Contents/MacOS/Python /// I assume that the solution of this problem would be to somehow get a fink-based pythonw, but this seems to be not avaiable. Can anybody help me with this? Thanks a lot!! Matthias ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Pythonw and VPython and Fink
On Feb 14, 2006, at 1:28 PM, Matthias Milczynski wrote: I would like to use SPE (cool Python editor) with vpython, that I installed with fink (unfortunately there is no other possibility yet). My vpython stuff is located in /sw/lib/python2.4/site-packages/ visual, but I run SPE with /usr/local/bin/pythonw2.4. When I try to run any vpython script I encounter the following error: /// Traceback (most recent call last): File bounce.py, line 1, in ? from visual import * File /sw/lib/python2.4/site-packages/visual/__init__.py, line 15, in ? import array_backend File /sw/lib/python2.4/site-packages/visual/array_backend.py, line 1, in ? import cvisual ImportError: Failure linking new module: /sw/lib/python2.4/site- packages/cvisualmodule.so: Symbol not found: _PyObject_IsInstance Referenced from: /sw/lib/python2.4/site-packages/cvisualmodule.so Expected in: /Library/Frameworks/Python.framework/Versions/2.4/ Resources/Python.app/Contents/MacOS/Python /// I assume that the solution of this problem would be to somehow get a fink-based pythonw, but this seems to be not avaiable. Can anybody help me with this? You can't (reliably) import modules from one Python with another. It simply just doesn't work like that. Not too much you can do about it. pythonw is totally irrelevant. There is *nothing special* about pythonw, it is just a shell script or simple C program that effectively manipulates argv[0] and then launches a real Python interpreter. I can think of three possible workarounds: 1. Somehow configure SPE to use /sw/bin/python to fork its subprocesses (hopefully it uses subprocesses!) 2. Get or build a VPython that is compatible with Python.framework 3. Get or build a SPE for Fink. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Pythonw and VPython and Fink
On 14-Feb-06, at 1:28 PM, Matthias Milczynski wrote: I assume that the solution of this problem would be to somehow get a fink-based pythonw, but this seems to be not avaiable. Can anybody help me with this? I think the solution is for VPython to be ported to Aqua instead of using X11 (so it can use regular OS X Python, not Fink, among other good things). Unfortunately the times I've tried to take this on, the VPython build system has thwarted me. Periodically I make time to try again, because I'd really like to have VPython, but refuse to install Fink again. --Dethe Every day computers are making people easier to use. --David Tompkin ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Pythonw and VPython and Fink
On Feb 14, 2006, at 8:58 PM, Dethe Elza wrote: On 14-Feb-06, at 1:28 PM, Matthias Milczynski wrote: I assume that the solution of this problem would be to somehow get a fink-based pythonw, but this seems to be not avaiable. Can anybody help me with this? I think the solution is for VPython to be ported to Aqua instead of using X11 (so it can use regular OS X Python, not Fink, among other good things). Unfortunately the times I've tried to take this on, the VPython build system has thwarted me. Periodically I make time to try again, because I'd really like to have VPython, but refuse to install Fink again. If someone buys me a quad g5, I'll gladly port VPython. The last time I looked into it, it just took too damn long any time I wanted to fiddle with the build. I have very little patience for slow edit +run cycles. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Pythonw and VPython and Fink
Dethe Elza wrote: I think the solution is for VPython to be ported to Aqua instead of using X11 (so it can use regular OS X Python, not Fink, among other good things). Framework builds of Python can use X11 just fine. I'm not sure that's the holdup. -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of dreams allowed to die. -- Richard Harter ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig