From: Flavio C. <fcc...@gm...> - 2006-01-30 12:40:39
|
Hi, which version of boost do you recomend? I am running vpython 3.2.6 with boost 1.33.0 and I am getting the following error when I instantiate a gcurve plot: /usr/lib/python2.4/site-packages/visual/graph.py in __init__(self, **args) 487 class gcurve: 488 def __init__(self, **args): --> 489 pos =3D constructorargs(self,args) 490 self.gcurve =3D curve(display=3Dself.gdisplay.display, colo= r=3D self.co lor) 491 if pos is not None: /usr/lib/python2.4/site-packages/visual/graph.py in constructorargs(obj, argumen ts) 461 else: 462 if lastgdisplay is None: --> 463 obj.gdisplay =3D getgdisplay() 464 else: 465 obj.gdisplay =3D lastgdisplay /usr/lib/python2.4/site-packages/visual/graph.py in getgdisplay() 454 455 def getgdisplay(): --> 456 return gdisplay() 457 458 def constructorargs(obj,arguments): /usr/lib/python2.4/site-packages/visual/graph.py in __init__(self, x, y, width, height, title, xtitle, ytitle, xmax, xmin, ymax, ymin, foreground, background) 190 self.setrangey() 191 --> 192 currentdisplay.select() 193 194 def setxyparams(self): RuntimeError: boost::bad_weak_ptr thanks, -- Fl=E1vio Code=E7o Coelho registered Linux user # 386432 --------------------------- "Laws are like sausages. It's better not to see them being made." Otto von Bismark |
From: Bruce S. <Bru...@nc...> - 2006-01-31 02:38:11
|
I tried using Boost 1.33.0 and ran into problems, though I don't=20 remember the details. I retreated to 1.31.0 and that worked. Not=20 encouraging..... Bruce Sherwood Flavio Coelho wrote: > > Hi, > > which version of boost do you recomend? I am running vpython 3.2.6=20 > with boost 1.33.0 and I am getting the following error when I=20 > instantiate a gcurve plot: > > > /usr/lib/python2.4/site-packages/visual/graph.py in __init__(self,=20 > **args) > 487 class gcurve: > 488 def __init__(self, **args): > --> 489 pos =3D constructorargs(self,args) > 490 self.gcurve =3D curve(display=3Dself.gdisplay.display,=20 > color=3D self.co <http://self.co> > lor) > 491 if pos is not None: > > /usr/lib/python2.4/site-packages/visual/graph.py in=20 > constructorargs(obj, argumen > ts) > 461 else: > 462 if lastgdisplay is None: > --> 463 obj.gdisplay =3D getgdisplay() > 464 else: > 465 obj.gdisplay =3D lastgdisplay > > /usr/lib/python2.4/site-packages/visual/graph.py in getgdisplay() > 454 > 455 def getgdisplay(): > --> 456 return gdisplay() > 457 > 458 def constructorargs(obj,arguments): > > /usr/lib/python2.4/site-packages/visual/graph.py in __init__(self, x,=20 > y, width, height, title, xtitle, ytitle, xmax, xmin, ymax, ymin,=20 > foreground, background) > 190 self.setrangey() > 191 > --> 192 currentdisplay.select() > 193 > 194 def setxyparams(self): > > RuntimeError: boost::bad_weak_ptr > > thanks, > --=20 > Fl=E1vio Code=E7o Coelho > registered Linux user # 386432 > --------------------------- > "Laws are like sausages. It's better not to see them being made." > Otto von Bismark=20 |
From: Jonathan B. <jbr...@ea...> - 2006-02-14 03:16:49
|
On Mon, 2006-01-30 at 10:40 -0200, Flavio Coelho wrote: > > Hi, > > which version of boost do you recomend? I am running vpython 3.2.6 > with boost 1.33.0 and I am getting the following error when I > instantiate a gcurve plot: Sorry it took so long for me to take a look at this. I'm running the latest VPython, with Boost 1.33.1, Python 2.4.2, and gcc 4.0.2 (Debian 4.0.2-8) with no problems. I did see this error on my machine a long time ago and I think it was due to either building two parts of the system with different versions of G++ or different builds of Python. Can you run $ ldd /usr/local/lib/python2.4/site-packages/cvisualmodule.so | grep "python\|libstdc" The output should include only one libpython..., only one libboost_python..., and only one libstdc++... -Jonathan |
From: Jonathan B. <jbr...@ea...> - 2006-02-14 19:35:18
|
On Tue, 2006-02-14 at 12:20 -0200, Flavio Coelho wrote: > Hi Jonathan, > > I ran the ldd as you suggested and got nothing in return. > > then I remove the grep and got this: > > libboost_python.so.1.33.0 => not found > libstdc++.so.5 > => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5 > (0xb79f4000) First off, be sure that you built Boost with GCC 3.3.6, and not 4.something. Second - since cvisualmodule.so linked correctly, but the boost-python library cannot be found by the runtime linker, find out where Boost.Python was installed and also find out if that location is on the library search path. See ld.so(8) and ldconfig(8). My hunch is that Boost was installed under /usr/local and /usr/local/lib isn't in /etc/ld.so.conf. Finally, since libboost_python.so.1.33.0 cannot be found at all, if this extension module was loaded by Python, you should get an ImportError or somesuch when you try to "from visual import *". Make sure you don't have an older version of Visual installed somewhere. -Jonathan |
From: Flavio C. <fcc...@gm...> - 2006-02-17 13:55:02
|
Solved. Just copying to the list in cased anyone runs into the same problem... ---------- Forwarded message ---------- From: Flavio Coelho <fcc...@gm...> Date: 16/02/2006 14:04 Subject: Re: [Visualpython-users] boost bug To: Jonathan Brandmeyer <jbr...@ea...> I actually had an old visual under python2.3/site-packages. I removed it an= d recompiled/reinstalled vpython. Curiously, > > # ldd /usr/local/lib/python2.4/site-packages/cvisualmodule.so > linux-gate.so.1 =3D> (0xffffe000) > libgtk-1.2.so.0 =3D> /usr/lib/libgtk-1.2.so.0 (0xb7ce1000) > libgdk-1.2.so.0 =3D> /usr/lib/libgdk- 1.2.so.0 (0xb7ca9000) > libgmodule-1.2.so.0 =3D> /usr/lib/libgmodule-1.2.so.0 (0xb7ca6000= ) > libdl.so.2 =3D> /lib/libdl.so.2 (0xb7ca2000) > libXi.so.6 =3D> /usr/lib/libXi.so.6 (0xb7c9a000) > libXext.so.6 =3D> /usr/lib/libXext.so.6 (0xb7c8c000) > libX11.so.6 =3D> /usr/lib/libX11.so.6 (0xb7bc0000) > libgtkgl.so.5 =3D> /usr/lib/libgtkgl.so.5 (0xb7bbc000) > libGL.so.1 =3D> /usr/lib/opengl/nvidia/lib/libGL.so.1 (0xb7b4e000= ) > libgthread-1.2.so.0 =3D> /usr/lib/libgthread-1.2.so.0 (0xb7b4b000= ) > libpthread.so.0 =3D> /lib/libpthread.so.0 (0xb7af9000) > libglib-1.2.so.0 =3D> /usr/lib/libglib-1.2.so.0 (0xb7ad4000) > libboost_python.so.1.33.0 =3D> not found > libstdc++.so.5 =3D> > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5 (0xb7a16000) > libm.so.6 =3D> /lib/libm.so.6 (0xb79f3000) > libc.so.6 =3D> /lib/libc.so.6 (0xb78dd000) > libgcc_s.so.1 =3D> > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libgcc_s.so.1 (0xb78d5000) > /lib/ld-linux.so.2 (0x80000000) > libGLU.so.1 =3D> /usr/lib/libGLU.so.1 (0xb7858000) > libGLcore.so.1 =3D> /usr/lib/opengl/nvidia/lib/libGLcore.so.1 > (0xb7167000) > libnvidia-tls.so.1 =3D> /usr/lib/opengl/nvidia/lib/libnvidia- > tls.so.1 (0xb7165000) it still tries fo find the old libboost which is no longer there. # locate libboost_python /usr/lib/libboost_python.a /usr/lib/libboost_python.so /usr/lib/libboost_python.so.1.33.1 First off, be sure that you built Boost with GCC 3.3.6, and not > 4.something. I Used 3.3.6 Second - since cvisualmodule.so linked correctly, but the boost-python > library cannot be found by the runtime linker, find out where > Boost.Python was installed and also find out if that location is on the > library search path. See ld.so(8) and ldconfig(8). My hunch is that > Boost was installed under /usr/local and /usr/local/lib isn't > in /etc/ld.so.conf. No, see above. Finally, since libboost_python.so.1.33.0 cannot be found at all, if this > extension module was loaded by Python, you should get an ImportError or > somesuch when you try to "from visual import *". Make sure you don't > have an older version of Visual installed somewhere. interestingly enough, after all these maneuvers made my original problem go away... thanks Fl=E1vio -- Fl=E1vio Code=E7o Coelho registered Linux user # 386432 --------------------------- "Laws are like sausages. It's better not to see them being made." Otto von Bismark -- Fl=E1vio Code=E7o Coelho registered Linux user # 386432 --------------------------- "Laws are like sausages. It's better not to see them being made." Otto von Bismark |