Inappropriate file type for dynamic loading
I get this when I try to start Calendar Server: ------------------------- tor% ./run Inappropriate file type for dynamic loading ------------------------- OS X 10.4.8 Darwin Tor.local 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386 Python 2.4.1 Is this a x86-problem? I see there is a Universal version of Python here: http://www.python.org/download/mac/ Should that fix it, or am I way off here? :)
Yeah, this sound like something the linker would say. Perhaps you have a bum python. If you do "sh -x ./run", it will show you what the script is trying to do and where it broke. Run that last command shown and see if you get the same error. Whatever that executable is, it's probably a broke binary. Possibly, you installed a PPC-only python. -wsv On Nov 9, 2006, at 1:57 AM, Tor Hildrum wrote:
I get this when I try to start Calendar Server: ------------------------- tor% ./run Inappropriate file type for dynamic loading -------------------------
OS X 10.4.8 Darwin Tor.local 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386
Python 2.4.1
Is this a x86-problem? I see there is a Universal version of Python here: http://www.python.org/download/mac/
Should that fix it, or am I way off here? :) _______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/calendarserver-users
On 11/17/06, Wilfredo Sánchez Vega <wsanchez@wsanchez.net> wrote:
Yeah, this sound like something the linker would say. Perhaps you have a bum python.
I traced everything, and here is what happens: -------------------------------------------------------- -------------------------------------------------------- import xml # directory /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml # /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/__init__.pyc matches /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/__init__.py import xml # precompiled from /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/__init__.pyc import _xmlplus # directory /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus # /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/__init__.pyc matches /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/__init__.py import _xmlplus # precompiled from /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/__init__.pyc import xml.parsers # directory /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/parsers # /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/parsers/__init__.pyc matches /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/parsers/__init__.py import xml.parsers # precompiled from /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/parsers/__init__.pyc # /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/parsers/expat.pyc matches /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/parsers/expat.py import xml.parsers.expat # precompiled from /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Macintosh-2.4/_xmlplus/parsers/expat.pyc Inappropriate file type for dynamic loading -------------------------------------------------------- -------------------------------------------------------- I just can't understand that it's my Python that is broken, because I use it for other things like Turbogears and it seems to be working fine. Could it be that the modules built by CalendarServer has been built for PPC by some freak coincidence? When I check PyXML it looks like everything is built for i386 though. I'll try to get a hold of another intel mac to try with. Tor
Hi Tor, --On November 17, 2006 9:57:18 AM +0100 Tor Hildrum <torhildrum@gmail.com> wrote:
Yeah, this sound like something the linker would say. Perhaps you have a bum python.
I traced everything, and here is what happens: -------------------------------------------------------- -------------------------------------------------------- import xml # directory /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml # /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/__in # it__.pyc matches /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/__ini t__.py import xml # precompiled from /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/xml/__ini t__.pyc import _xmlplus # directory /Users/tor/dev/CalendarServer/PyXML-0.8.4/build/lib.darwin-8.8.1-Power_Ma cintosh-2.4/_xmlplus
Hmm, the build directory being picked up in the path is lib.darwin-8.8.1-Power_Macintosh-2.4/ - but that's a PPC one. You ought to see something like lib.darwin-8.8.1-i386-2.4/ for an x86 build. Try this: go to the PyXML-0.8.4 directory and delete the build directory. They type 'python setup.py build'. After that look in the build directory and see what lib.xxx was built. Also try the following: python -c "from distutils.util import get_platform; print get_platform()" That should give an i386 result. -- Cyrus Daboo
On 11/17/06, Cyrus Daboo <cdaboo@apple.com> wrote:
python -c "from distutils.util import get_platform; print get_platform()"
That should give an i386 result.
-------------------------- tor% python -c "from distutils.util import get_platform; print get_platform()" darwin-8.8.1-Power_Macintosh -------------------------- *smacks head* -------------------------- tor% /usr/bin/python2.3 -c "from distutils.util import get_platform; print get_platform()" darwin-8.8.1-i386 -------------------------- Reinstalling python 2.4 now :) Tor
participants (3)
-
Cyrus Daboo
-
Tor Hildrum
-
Wilfredo Sánchez Vega