From: Nick F. <ni...@bi...> - 2010-01-10 03:31:37
|
Does anyone have this combination working "out of the box" so to speak?? Is there tweaking involved? Long Story follows... thanks nickf ======================================================================================== I have a Mac OSX 10.6.2 Intel Core Duo: 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 I have Python from darwinPorts: 2.6.4 (I also have 2.5 and 2.3, but I have code that I have tested so it points to the latest version by default)) After a successful vpython install from http://vpython.org/contents/download_mac.html When I try to run any Python Visual code, I get the message: site-packages/visual/cvisual.so: mach-o, but wrong architecture This seems to be to be an error of a 32 bit shared object, whereas I believe I want a 64 bit shared object. file shows: /site-packages/visual/cvisual.so: Mach-O bundle i386 whereas I believe I need: Mach-O 64-bit bundle x86_64 I have started looking for the source to cvisual.so....but so far unsuccessful. The closest source I have found is cvisualmodule.cpp in the visual-5.12_release of the source .... but I am not convinced that is correct. I have installed all pre-requisites for VisualPython including "boost", GTK2, GTKMM, etc again from DarwinPorts. So I am ready.... BUT after a successful configure, I get to the "make" stage...which mostly succeeds TILL I get an error: Compiling ./python/arrayprim.cpp ... make[1]: *** [arrayprim.lo] Error 1 make: *** [all-recursive] Error 1 It is the same error reported in Nov 2009 by: http://www.mail-archive.com/pyt...@py.../msg267326.html (Coincidently this is the 1st directory that includes "boost" if that helps ....) Has anyone solved this problem? Thanks nickf |
From: Lenore H. <lh...@si...> - 2010-01-10 04:27:54
|
On Jan 9, 2010, at 21:31 , Nick Frisina wrote: > Does anyone have this combination working "out of the box" so to > speak?? > Is there tweaking involved? > > Long Story follows... > thanks > nickf > > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > ====================================================================== > I have a Mac OSX 10.6.2 Intel Core Duo: > 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; > root:xnu-1486.2.11~1/RELEASE_I386 i386 > > I have Python from darwinPorts: > 2.6.4 > (I also have 2.5 and 2.3, but I have code that I have tested so it > points to > the latest version by default)) > > After a successful vpython install from > http://vpython.org/contents/download_mac.html > > When I try to run any Python Visual code, I get the message: > site-packages/visual/cvisual.so: mach-o, but wrong architecture > > This seems to be to be an error of a 32 bit shared object, whereas I > believe I want a 64 bit shared object. > file shows: > /site-packages/visual/cvisual.so: Mach-O bundle i386 > whereas I believe I need: > Mach-O 64-bit bundle x86_64 From the MacPorts side, this looks like you need to build +universal?? (I'm not an expert, you might try asking there.) > > I have started looking for the source to cvisual.so....but so far > unsuccessful. > The closest source I have found is cvisualmodule.cpp > in the visual-5.12_release of the source .... but I am not convinced > that is correct. > > I have installed all pre-requisites for VisualPython including > "boost", GTK2, GTKMM, etc again from DarwinPorts. You should be using MacPorts (http://www.macports.org/ which has an active and helpful user list), not DarwinPorts (somewhere there's a web page explaining the history, but the upshot is that MacPorts is where the work is being done and where the answers are available). > So I am ready.... > > BUT after a successful configure, I get to the "make" stage...which > mostly succeeds TILL I get an error: > > Compiling ./python/arrayprim.cpp ... > make[1]: *** [arrayprim.lo] Error 1 > make: *** [all-recursive] Error 1 > > It is the same error reported in Nov 2009 by: > http://www.mail-archive.com/pyt...@py.../msg267326.html > > (Coincidently this is the 1st directory that includes "boost" if > that helps ....) > > Has anyone solved this problem? You're brave. I tried to use my MacPorts python rather than installing the recommended MacPython and gave up pretty quickly. Vpython pages say there are special bits in MacPython (my words) necessary for VPython but I don't think they say what the special bits are. Lenore |
From: Bruce S. <Bru...@nc...> - 2010-01-10 22:46:07
|
As Lenore says, the easy way to get Visual 5 to work on the Mac is to follow the instructions on the Mac download page at vpython.org, which includes installing Mac Python 2.6.2 before installing Visual. Visual will definitely not work with some other Python. The only way I've ever been able to build Visual 5 from scratch on the Mac is by checking out the source files from CVS on sourceforge.net and following the instructions in MAC-OSX.txt. I built for Mac Python 2.6.2. Recently I attempted to build for Mac Python 2.6.4 but failed with a problem in the latest Boost libraries, which I reported here. Steve Spicklemire said he would look into the problem. Bruce Sherwood Lenore Horner wrote: > On Jan 9, 2010, at 21:31 , Nick Frisina wrote: > > >> Does anyone have this combination working "out of the box" so to >> speak?? >> Is there tweaking involved? >> >> Long Story follows... >> thanks >> nickf >> >> = >> ====================================================================== >> I have a Mac OSX 10.6.2 Intel Core Duo: >> 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; >> root:xnu-1486.2.11~1/RELEASE_I386 i386 >> >> I have Python from darwinPorts: >> 2.6.4 >> (I also have 2.5 and 2.3, but I have code that I have tested so it >> points to >> the latest version by default)) >> >> After a successful vpython install from >> http://vpython.org/contents/download_mac.html >> >> When I try to run any Python Visual code, I get the message: >> site-packages/visual/cvisual.so: mach-o, but wrong architecture >> >> This seems to be to be an error of a 32 bit shared object, whereas I >> believe I want a 64 bit shared object. >> file shows: >> /site-packages/visual/cvisual.so: Mach-O bundle i386 >> whereas I believe I need: >> Mach-O 64-bit bundle x86_64 >> > From the MacPorts side, this looks like you need to build > +universal?? (I'm not an expert, you might try asking there.) > >> I have started looking for the source to cvisual.so....but so far >> unsuccessful. >> The closest source I have found is cvisualmodule.cpp >> in the visual-5.12_release of the source .... but I am not convinced >> that is correct. >> >> I have installed all pre-requisites for VisualPython including >> "boost", GTK2, GTKMM, etc again from DarwinPorts. >> > You should be using MacPorts (http://www.macports.org/ which has an > active and helpful user list), not DarwinPorts (somewhere there's a > web page explaining the history, but the upshot is that MacPorts is > where the work is being done and where the answers are available). > > >> So I am ready.... >> >> BUT after a successful configure, I get to the "make" stage...which >> mostly succeeds TILL I get an error: >> >> Compiling ./python/arrayprim.cpp ... >> make[1]: *** [arrayprim.lo] Error 1 >> make: *** [all-recursive] Error 1 >> >> It is the same error reported in Nov 2009 by: >> http://www.mail-archive.com/pyt...@py.../msg267326.html >> >> (Coincidently this is the 1st directory that includes "boost" if >> that helps ....) >> >> Has anyone solved this problem? >> > You're brave. I tried to use my MacPorts python rather than > installing the recommended MacPython and gave up pretty quickly. > Vpython pages say there are special bits in MacPython (my words) > necessary for VPython but I don't think they say what the special bits > are. > > Lenore > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Steve S. <st...@sp...> - 2010-01-10 23:07:27
|
My "snow leopard" just came in a couple days ago.. but of course now I'm starting a new semester and that has consumed most of my attention. Hopefully I'll get a chance to breathe soon and try a build on 10.6. -steve On Jan 10, 2010, at 5:44 PM, Bruce Sherwood wrote: > As Lenore says, the easy way to get Visual 5 to work on the Mac is to > follow the instructions on the Mac download page at vpython.org, which > includes installing Mac Python 2.6.2 before installing Visual. Visual > will definitely not work with some other Python. > > The only way I've ever been able to build Visual 5 from scratch on the > Mac is by checking out the source files from CVS on sourceforge.net > and > following the instructions in MAC-OSX.txt. I built for Mac Python > 2.6.2. > > Recently I attempted to build for Mac Python 2.6.4 but failed with a > problem in the latest Boost libraries, which I reported here. Steve > Spicklemire said he would look into the problem. > > Bruce Sherwood > > Lenore Horner wrote: >> On Jan 9, 2010, at 21:31 , Nick Frisina wrote: >> >> >>> Does anyone have this combination working "out of the box" so to >>> speak?? >>> Is there tweaking involved? >>> >>> Long Story follows... >>> thanks >>> nickf >>> >>> = >>> ==================================================================== >>> == >>> I have a Mac OSX 10.6.2 Intel Core Duo: >>> 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; >>> root:xnu-1486.2.11~1/RELEASE_I386 i386 >>> >>> I have Python from darwinPorts: >>> 2.6.4 >>> (I also have 2.5 and 2.3, but I have code that I have tested so it >>> points to >>> the latest version by default)) >>> >>> After a successful vpython install from >>> http://vpython.org/contents/download_mac.html >>> >>> When I try to run any Python Visual code, I get the message: >>> site-packages/visual/cvisual.so: mach-o, but wrong architecture >>> >>> This seems to be to be an error of a 32 bit shared object, whereas I >>> believe I want a 64 bit shared object. >>> file shows: >>> /site-packages/visual/cvisual.so: Mach-O bundle i386 >>> whereas I believe I need: >>> Mach-O 64-bit bundle x86_64 >>> >> From the MacPorts side, this looks like you need to build >> +universal?? (I'm not an expert, you might try asking there.) >> >>> I have started looking for the source to cvisual.so....but so far >>> unsuccessful. >>> The closest source I have found is cvisualmodule.cpp >>> in the visual-5.12_release of the source .... but I am not convinced >>> that is correct. >>> >>> I have installed all pre-requisites for VisualPython including >>> "boost", GTK2, GTKMM, etc again from DarwinPorts. >>> >> You should be using MacPorts (http://www.macports.org/ which has an >> active and helpful user list), not DarwinPorts (somewhere there's a >> web page explaining the history, but the upshot is that MacPorts is >> where the work is being done and where the answers are available). >> >> >>> So I am ready.... >>> >>> BUT after a successful configure, I get to the "make" stage...which >>> mostly succeeds TILL I get an error: >>> >>> Compiling ./python/arrayprim.cpp ... >>> make[1]: *** [arrayprim.lo] Error 1 >>> make: *** [all-recursive] Error 1 >>> >>> It is the same error reported in Nov 2009 by: >>> http://www.mail-archive.com/pyt...@py.../msg267326.html >>> >>> (Coincidently this is the 1st directory that includes "boost" if >>> that helps ....) >>> >>> Has anyone solved this problem? >>> >> You're brave. I tried to use my MacPorts python rather than >> installing the recommended MacPython and gave up pretty quickly. >> Vpython pages say there are special bits in MacPython (my words) >> necessary for VPython but I don't think they say what the special >> bits >> are. >> >> Lenore >> >> >> --------------------------------------------------------------------- >> --------- >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution >> fast and easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Visualpython-users mailing list >> Vis...@li... >> https://lists.sourceforge.net/lists/listinfo/visualpython-users >> > > ---------------------------------------------------------------------- > -------- > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast > and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Bruce S. <Bru...@nc...> - 2010-01-11 12:53:52
|
This presumably produces a Unix-like version, right? The problem somehow is with creating a Carbon-based Mac-specific version. But thanks for the information. Bruce Sherwood Martin Costabel wrote: > Bruce Sherwood wrote: >> As Lenore says, the easy way to get Visual 5 to work on the Mac is to >> follow the instructions on the Mac download page at vpython.org, >> which includes installing Mac Python 2.6.2 before installing Visual. >> Visual will definitely not work with some other Python. >> >> The only way I've ever been able to build Visual 5 from scratch on >> the Mac is by checking out the source files from CVS on >> sourceforge.net and following the instructions in MAC-OSX.txt. I >> built for Mac Python 2.6.2. >> >> Recently I attempted to build for Mac Python 2.6.4 but failed with a >> problem in the latest Boost libraries, which I reported here. Steve >> Spicklemire said he would look into the problem. > > The fink package for visualpython 5.12 (visual-py26-5.12-3) builds OK > on Snow Leopard 64bit. It uses Fink's python-2.6.4 and boost1.35. I > haven't tried using later versions of boost. > |
From: Martin C. <cos...@wa...> - 2010-01-12 21:20:05
|
Bruce Sherwood wrote: > This presumably produces a Unix-like version, right? The problem somehow > is with creating a Carbon-based Mac-specific version. But thanks for the > information. Yes, this is the X11 version. It works with Fink's python26, which uses X11, too. I should perhaps add that after Fink's python26 was updated from 2.6.2 to 2.6.4 and boost1.35 compiled against the latter version of python, I first got the same breakage of vpython as anyone else ("AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only"). The latest version of boost1.35.python26 in Fink is now patched so that this error does not appear any more. -- Martin |
From: Martin C. <cos...@wa...> - 2010-01-11 09:47:35
|
Bruce Sherwood wrote: > As Lenore says, the easy way to get Visual 5 to work on the Mac is to > follow the instructions on the Mac download page at vpython.org, which > includes installing Mac Python 2.6.2 before installing Visual. Visual > will definitely not work with some other Python. > > The only way I've ever been able to build Visual 5 from scratch on the > Mac is by checking out the source files from CVS on sourceforge.net and > following the instructions in MAC-OSX.txt. I built for Mac Python 2.6.2. > > Recently I attempted to build for Mac Python 2.6.4 but failed with a > problem in the latest Boost libraries, which I reported here. Steve > Spicklemire said he would look into the problem. The fink package for visualpython 5.12 (visual-py26-5.12-3) builds OK on Snow Leopard 64bit. It uses Fink's python-2.6.4 and boost1.35. I haven't tried using later versions of boost. -- Martin |