Re: terminate called after throwing an instance of 'boost::python::error_already_set

2022-05-28 Thread Barry
> On 27 May 2022, at 21:17, Larry Martell wrote: > > I have a script that has literally been running for 10 years. > Suddenly, for some runs it crashes with the error: > > terminate called after throwing an instance of > 'boost::python::error_already_set This is

Re: terminate called after throwing an instance of 'boost::python::error_already_set

2022-05-27 Thread dn
; Suddenly, for some runs it crashes with the error: > > > > terminate called after throwing an instance of > 'boost::python::error_already_set > > > > No stack trace. Anyone have any thoughts on what could cause this > > and/or how

Re: terminate called after throwing an instance of 'boost::python::error_already_set

2022-05-27 Thread Larry Martell
On Fri, May 27, 2022 at 5:51 PM dn wrote: > On 28/05/2022 08.14, Larry Martell wrote: > > I have a script that has literally been running for 10 years. > > Suddenly, for some runs it crashes with the error: > > > > terminate called after throwing an i

Re: terminate called after throwing an instance of 'boost::python::error_already_set

2022-05-27 Thread dn
On 28/05/2022 08.14, Larry Martell wrote: > I have a script that has literally been running for 10 years. > Suddenly, for some runs it crashes with the error: > > terminate called after throwing an instance of > 'boost::python::error_already_set > > No stack trace. A

terminate called after throwing an instance of 'boost::python::error_already_set

2022-05-27 Thread Larry Martell
I have a script that has literally been running for 10 years. Suddenly, for some runs it crashes with the error: terminate called after throwing an instance of 'boost::python::error_already_set No stack trace. Anyone have any thoughts on what could cause this and/or how I can track it

Re: How to fit & predict in Cat-boost Algorithm

2020-03-18 Thread Barry Scott
> On 18 Mar 2020, at 08:59, princit wrote: > > I am new in python. I am trying to predict the "time_to_failure" for given > "acoustic_data" in the test CSV file using catboost algorithm. > > > def catbostregtest(X_train, y_train): ># submission format >submission = pd.read_csv('sa

How to fit & predict in Cat-boost Algorithm

2020-03-18 Thread princit
I am new in python. I am trying to predict the "time_to_failure" for given "acoustic_data" in the test CSV file using catboost algorithm. def catbostregtest(X_train, y_train): # submission format submission = pd.read_csv('sample_submission.csv', index_col='seg_id') X_test = pd.Data

Re: support for boost::python for build double object

2014-11-03 Thread Mark Lawrence
On 03/11/2014 13:53, Joseph Shen wrote: In the boost::python library there is a function boost::python::long_ and this function return a boost::python::object variable I'm trying to wrap a double variale but I can't find something just like boost::python::double_ can someo

Re: support for boost::python for build double object

2014-11-03 Thread Joseph Shen
On Monday, November 3, 2014 10:11:01 PM UTC+8, Skip Montanaro wrote: > On Mon, Nov 3, 2014 at 7:53 AM, Joseph Shen wrote: > > In the boost::python library there is a function > > > > >>> boost::python::long_ > > > > and this function return a boo

Re: support for boost::python for build double object

2014-11-03 Thread Skip Montanaro
On Mon, Nov 3, 2014 at 7:53 AM, Joseph Shen wrote: > In the boost::python library there is a function > > >>> boost::python::long_ > > and this function return a boost::python::object variable > > I'm trying to wrap a double variable but I can't find >

support for boost::python for build double object

2014-11-03 Thread Joseph Shen
In the boost::python library there is a function >>> boost::python::long_ and this function return a boost::python::object variable I'm trying to wrap a double variale but I can't find something just like >> boost::python::double_ can someone help me to build a d

boost-python: exposing constructor with an array of other class as argument

2014-01-28 Thread Ester Lopez
Hello there, I have two different classes that I want to expose using boost-python, but the constructor of the second class takes and array of the first one as argument and I can't figure out how to do it. This is the definition of the classes: class INT96{ public: uin

Re: Py++, boost and python type mismatch error

2010-06-10 Thread Thomas Jollans
On 06/10/2010 05:15 PM, Murrgon wrote: > I have a simple C++ library (from a dll) I am attempting to make > accessible through bindings to python. I used Py++ to generate some > boost code for the library that I compiled into a pyd. I can import the > pyd no problem into python, but

Py++, boost and python type mismatch error

2010-06-10 Thread Murrgon
I have a simple C++ library (from a dll) I am attempting to make accessible through bindings to python. I used Py++ to generate some boost code for the library that I compiled into a pyd. I can import the pyd no problem into python, but I can't seem to call the functions. struct M

Boost Python DLL from Boost Pro is built incorrectly?

2008-08-20 Thread Stodge
I'm having issues with Boost Python, downloaded via http://www.boostpro.com. I *think* it's related to WinXP side by side assemblies. My application that uses Boost Python fails to start. I ran dependancy walker on the Boost Python DLL and I get the following: Error: The Si

Boost reference container problem( std::vector)

2008-08-17 Thread Utku Altinkaya
Hello, I am wrapping the reference container vector as document suggests. typedef std::vector EntityContainer; class_("Entity", init()); class_("EntityContainer") .def(vector_indexing_suite() ) ; When I try to iterate in python all I get is the following error: TypeError: No to_python

Wrapping std::set in boost::python

2008-07-24 Thread Eric First
Has anybody wrapped std::set using boost::python? I'm trying to find the best way to do this. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Wrapping std::set in Boost::Python

2008-07-23 Thread Eric First
All: Has anybody had success at wrapping std::set using Boost::Python? Any ideas, snippets of code, etc... would be very helpful. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Boost Python - C++ class' private static data blown away before accessing in Python?

2008-07-09 Thread Stodge
Oops - I didn't see my post so I thought something had gone wrong and reposted. Apologies for the multiple posts. On Jul 9, 11:57 am, Stodge <[EMAIL PROTECTED]> wrote: > Could it be a boundary problem? The static data is initialised by the > application. The problem arises when the python module t

Re: Boost Python - C++ class' private static data blown away before accessing in Python?

2008-07-09 Thread Stodge
Could it be a boundary problem? The static data is initialised by the application. The problem arises when the python module tries to access it. On Jul 5, 11:14 pm, Giuseppe Ottaviano <[EMAIL PROTECTED]> wrote: > > In Python, I retrive an Entity from the EntityList: > > > elist = EntityList() > >

Re: Boost Python - C++ class' private static data blown away before accessing in Python?

2008-07-09 Thread Stodge
I wonder if it's a DLL boundary problem. On Jul 5, 11:14 pm, Giuseppe Ottaviano <[EMAIL PROTECTED]> wrote: > > In Python, I retrive an Entity from the EntityList: > > > elist = EntityList() > > elist.append(Entity()) > > elist.append(Entity()) > > > entity = elist.get_at(0) > > > entity.foo() > >

Re: Boost Python - C++ class' private static data blown away before accessing in Python?

2008-07-09 Thread Stodge
Thanks. Maybe it's a DLL boundary issue? I'll look into this too. On Jul 5, 11:14 pm, Giuseppe Ottaviano <[EMAIL PROTECTED]> wrote: > > In Python, I retrive an Entity from the EntityList: > > > elist = EntityList() > > elist.append(Entity()) > > elist.append(Entity()) > > > entity = elist.get_at(0

Re: Boost Python - C++ class' private static data blown away before accessing in Python?

2008-07-05 Thread Giuseppe Ottaviano
In Python, I retrive an Entity from the EntityList: elist = EntityList() elist.append(Entity()) elist.append(Entity()) entity = elist.get_at(0) entity.foo() But it crashes inside foo() as the private static data is empty; or rather the string array is empty. I know before that point that the

Boost Python - C++ class' private static data blown away before accessing in Python?

2008-07-04 Thread Stodge
I've exposed a C++ class to Python using Boost Python. The class, let's say it's called Entity, contains private static data, which is an array of strings. Though I think it implements it using MFC's CPtrArray. I've also exposed a public function from Entity - let&#x

Re: Pyparsing performance boost using Python 2.6b1

2008-06-20 Thread John Machin
On Jun 19, 8:40 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > I just ran my pyparsing unit tests with the latest Python 2.6b1 > (labeled internally as Python 2.6a3 - ???), Hi, Paul. If it says 2.6a3, that's what it is. Look at the thread of replies to Barry Warsaw's announcement of 2.6b1 ... [from

Re: Pyparsing performance boost using Python 2.6b1

2008-06-20 Thread dwahli
n Windows ? Just try pybench on 2.6 and 2.5, and 2.6 is 17% better than 2.5 ! Very nice ! But I suspect the new compiler with Profile Guided Optimization (PGO) to be the main cause of this nice boost... -- http://mail.python.org/mailman/listinfo/python-list

Pyparsing performance boost using Python 2.6b1

2008-06-19 Thread Paul McGuire
I just ran my pyparsing unit tests with the latest Python 2.6b1 (labeled internally as Python 2.6a3 - ???), and the current 1.5.0 version of pyparsing runs with no warnings or regressions. I was pleasantly surprised by the improved performance. The most complex parser I have is the Verilog parser

Re: boost

2008-05-29 Thread deepest1
Thanks for help. I lost more then 10 hours on boost today, but it finally works, and I'm pleased with it. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: boost

2008-05-29 Thread Ulrich Eckhardt
deepest1 wrote: > bjam --build-dir="D:\Program Files\boost_1_35_0" --toolset=gcc stage > > I got 12 failures and 8 warnings from this (other few hundrds were ok) Hmm, I remember trying to use Boost 1.35 with Python 2.5 on my Debian system and also having problems, are you sur

boost

2008-05-29 Thread deepest1
Hi everybody. I'm trying to use boost, but just don't know how to set it up. My os is winXP (installed on disk D). Python is installed in D:\Python25 MigGW compiler is installed in D:\MinGW (i downloaded it because djgpp is making much more errors with bjam) I have downloaded boost_

Re: problem boost::python::import

2008-05-22 Thread brad
Frédéric Degraeve wrote: Hello, I tried this code with vs7-8 and boost1.34.1-1.35.0 and my python is a 2.4.. Try the boost users list: To subscribe or unsubscribe via the World Wide Web, visit http://lists.boost.org/mailman/listinfo.cgi/boost-users -- http://mail.python.org/mailman

problem boost::python::import

2008-05-22 Thread Frédéric Degraeve
Hello, I tried this code with vs7-8 and boost1.34.1-1.35.0 and my python is a 2.4. The call to Cpython works well but boost::python doesn't work. I've got an exception about an access violation reading location 0x. help, please? thank you. Frédéric #include "std

Boost::Python - Question about object ownership and lifetime

2008-05-02 Thread Stodge
Hi folks, new to Boost Python and struggling to build a prototype at work. I thought I'd start with a conceptual question to help clarify my understanding. I already have a basic prototype working nicely but I'm having a few issues, which I may post about later. A brief functional rundo

boost and ctypes

2008-02-25 Thread zaley
I am a newbie to python .I know it is easy to access Windows API and DLL using ctypes in python .And it is easy to access python class and function using boost libs in C. Can boost and ctypes work together? -- http://mail.python.org/mailman/listinfo/python-list

Boost your business with Quality Web & Design Services at Bargain Prices!

2008-01-17 Thread WOSG Services
Web Outsourcing Services Group (WOSG) is a pioneering and China-based service provider, committed to delivering quality web & design, SEO and internet marketing services to clients around the world. WOSG's strength lies in our skillful staff and lower rates in China. We have over 60 strictly selec

Re: using boost to extend python with c++

2007-07-03 Thread Volodya
Please see http://lists.boost.org/boost-build/2007/05/1.php -- the solution is to add "using python ;" to tools/build/v2/user-config.jam. -- http://mail.python.org/mailman/listinfo/python-list

Re: Boost python : get the shape of a numpy ndarray in C++ code.

2007-05-10 Thread TG
What I'm trying to say here : a numpy array is supposed to have it's shape stored as a tuple. What I want to do is to access this information from my C++ code, in order to do some validity check. So, by looking around in the doc of boost/python/numeric.hpp I was able to do this :

Re: Boost python : get the shape of a numpy ndarray in C++ code.

2007-05-09 Thread Roman Yakovenko
On 9 May 2007 08:08:46 -0700, TG <[EMAIL PROTECTED]> wrote: > Hi there. > > I'm strugling here with some boost python code (damn I hate C++) : > > All I want to do is to initialize the content of an array with a numpy > ndarray parameter. I have this, which actually wo

Boost python : get the shape of a numpy ndarray in C++ code.

2007-05-09 Thread TG
Hi there. I'm strugling here with some boost python code (damn I hate C++) : All I want to do is to initialize the content of an array with a numpy ndarray parameter. I have this, which actually works. But I want to add some kind of data check such as : * is array two dimensional ? * ar

Re: using boost to extend python with c++

2007-05-06 Thread noagbodjivictor
On May 6, 4:12 pm, "mr_gees100_peas" <[EMAIL PROTECTED]> wrote: > Hi, > >I've been trying for days to make either boost.python or swig to > work for me. The one I have gotten the closest to is boost. Note that > this is for windows XP. I'm not much of

using boost to extend python with c++

2007-05-06 Thread mr_gees100_peas
Hi, I've been trying for days to make either boost.python or swig to work for me. The one I have gotten the closest to is boost. Note that this is for windows XP. I'm not much of an unix person besides doing simple ls and copy paste. What I have done is to download the boost l

Re: Boost Problem! Boost.Build not found

2007-04-16 Thread Soren
On 16 Apr., 14:28, "Rob Wolfe" <[EMAIL PROTECTED]> wrote: > Soren wrote: > > > Try to create boost-build.jam file like this: > > > > # boost-build.jam > > > boost-build C:\boost\boost_1_33_1\tools\build\v1 ; > > > Hi Rob, Thanks for the ans

Re: Boost Problem! Boost.Build not found

2007-04-16 Thread Soren
On 16 Apr., 14:28, "Rob Wolfe" <[EMAIL PROTECTED]> wrote: > Soren wrote: > > > Try to create boost-build.jam file like this: > > > > # boost-build.jam > > > boost-build C:\boost\boost_1_33_1\tools\build\v1 ; > > > Hi Rob, Thanks for the ans

Re: Boost Problem! Boost.Build not found

2007-04-16 Thread Rob Wolfe
Soren wrote: > > Try to create boost-build.jam file like this: > > > > # boost-build.jam > > boost-build C:\boost\boost_1_33_1\tools\build\v1 ; > > > Hi Rob, Thanks for the answer! > > It did solve the error.. but produced a new one: > > C:\boost\b

Re: Boost Problem! Boost.Build not found

2007-04-16 Thread Soren
On 16 Apr., 12:53, "Rob Wolfe" <[EMAIL PROTECTED]> wrote: > Soren wrote: > > Unable to load Boost.Build: could not find "boost-build.jam" > > --- > > Attempted search from C:\boost\boost_1

Re: Boost Problem! Boost.Build not found

2007-04-16 Thread Soren
On 16 Apr., 12:53, "Rob Wolfe" <[EMAIL PROTECTED]> wrote: > Soren wrote: > > Unable to load Boost.Build: could not find "boost-build.jam" > > --- > > Attempted search from C:\boost\boost_1

Re: Boost Problem! Boost.Build not found

2007-04-16 Thread Rob Wolfe
Soren wrote: > Unable to load Boost.Build: could not find "boost-build.jam" > --- > Attempted search from C:\boost\boost_1_33_1\libs\python\example > \tutorial up to t > he root and in these directories

Boost Problem! Boost.Build not found

2007-04-16 Thread Soren
Hi! I'm trying to extend my python program with some C++ code. Right now I've spent hours just trying to get boost to work! I'm trying to get the example hello.cpp to work. Using Windows XP and Visual Studio 8 (.NET 2005) I've set BOOST_BUILD_PATH = C:\boost\boost_1_33_1

Re: Boost Python properties/getter functions for strings

2007-03-19 Thread Shawn McGrath
getname is defined as: > > > const std::string &Entity::getName() const; > > > After more reading I found the copy_const_reference, and replaced: > > boost::python::return_internal_reference<>()); > > with: > > > boost::python::return_value_policy()

Re: Boost Python properties/getter functions for strings

2007-03-19 Thread Jon Clements
more reading I found the copy_const_reference, and replaced: > boost::python::return_internal_reference<>()); > with: > > boost::python::return_value_policy()); > > and it fixed my problem. Is there any downside to using > copy_const_reference over return_internal_re

Re: Boost Python properties/getter functions for strings

2007-03-19 Thread Shawn McGrath
On Mar 19, 12:00 pm, "Shawn McGrath" <[EMAIL PROTECTED]> wrote: > I forgot to mention, getname is defined as: > const std::string &Entity::getName() const; After more reading I found the copy_const_reference, and replaced: boost::python::return_internal_reference&l

Re: Boost Python properties/getter functions for strings

2007-03-19 Thread Shawn McGrath
I forgot to mention, getname is defined as: const std::string &Entity::getName() const; -- http://mail.python.org/mailman/listinfo/python-list

Boost Python properties/getter functions for strings

2007-03-19 Thread Shawn McGrath
Hi, I'm trying to expose a C++ class' internals to python via boost::python. I can do integer/boolean functions fine, but as soon as I do a string get/set it craps out. boost::python::class_ >("Entity") //publics .def("isActive

Assigning pointer to PySwigObject in Boost

2007-02-05 Thread willievdm
Hi all I'm working with Boost.Python at the moment and have to do the following: -Using Boost, assign a char* in C++ to a PySwigObject (SWIG exposed object) of type uchar*, which is received in C++ as a boost::python::object class. The uchar* pointer in the PySwigObject points to a b

How to get BOOST working on XP and Visual C++ 2005

2007-01-02 Thread Osiris
My experiences with BOOST on Windows XP and Visual C++ 2005 I'm new to Python. I built software in more than ten other computer languages. I'm not sure if that is not a handicap, when reading documentation of a system like BOOST. However: It took me more than four full working day

BOOST confuses me: a few assumptions: true or false.....

2007-01-01 Thread Osiris
I read a lot of the html pages on installing boost etc. Still a lot of confusion. Here is what I want: I have old, stable wonderful C-code I want to use in Python projects. So I encapsulate the C-code in some C++ stuf and try to compile it into a DLL. 1: I DL-ed boost_1_33_1.exe (I use WinXP

BOOST again: how to proceed from here....

2007-01-01 Thread Osiris
I'm trying to work with Boost, trying to use my C-code from Python.. So now I have generated a C_test2.dll and a C_test2.lib with Visual C++ 2005, from code like this: === #include #include namespace { // Avoid cluttering the global namespace. int my_int; /* a global intege

Re: python , Boost and straight (but complex) C code

2006-12-31 Thread Roman Yakovenko
On 12/31/06, Osiris <[EMAIL PROTECTED]> wrote: > In short: it's all rather confusing > > I think it must be like this: > > To use my C/C++ code with Python, add some stuff in the C/C++ source > and compile it into a DLL, that must be combined with some boost-D

Re: python , Boost and straight (but complex) C code

2006-12-31 Thread Osiris
oc/building.html ) contains pretty >good explanation how to do this. That explanation I find confusing: "To build boost_python, use Boost.Build...": Where is boost.build and what is it ? in my D:\boost\libs\python\build there is no boost.build... in D:\boost there is a build-boost.jam file.

Re: python , Boost and straight (but complex) C code

2006-12-31 Thread Osiris
e pieces of C-code (NOT C++ !!) I want to call from Python. >>>> I found Boost. >>>> I have MS Visual Studio 2005 with C++. >>>> >>>> is this the idea: >>>> I write the following C source file: >>>> &

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Christophe Cavalaria
Osiris wrote: > On Sat, 30 Dec 2006 13:19:28 -0800, Erik Max Francis <[EMAIL PROTECTED]> > wrote: > >>Osiris wrote: >> >>> I have these pieces of C-code (NOT C++ !!) I want to call from Python. >>> I found Boost. >>> I have MS Visual Studio

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Erik Max Francis
Osiris wrote: > yes, but C can be compiled with a C++ compiler, One can put C code in > C++ source Boost should not complain... should it ? > Boost text is all about C++.. so... C should not be a problem... That you're dealing with a `boost` namespace below clearly indicate

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
On Sat, 30 Dec 2006 13:19:28 -0800, Erik Max Francis <[EMAIL PROTECTED]> wrote: >Osiris wrote: > >> I have these pieces of C-code (NOT C++ !!) I want to call from Python. >> I found Boost. >> I have MS Visual Studio 2005 with C++. >> >> is this the id

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Roman Yakovenko
On 12/30/06, Osiris <[EMAIL PROTECTED]> wrote: > Visual C++ build log at: > > http://213.10.133.192/BuildLog.htm It is better to ask Boost.Python related questions on it mailing list: http://mail.python.org/mailman/listinfo/c++-sig/ You should add to the link line boost_python.lib, thus you will

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Erik Max Francis
Osiris wrote: > I have these pieces of C-code (NOT C++ !!) I want to call from Python. > I found Boost. > I have MS Visual Studio 2005 with C++. > > is this the idea: > I write the following C source file: > > #include > #include

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
Visual C++ build log at: http://213.10.133.192/BuildLog.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Sebastian 'lunar' Wiesner
Osiris <[EMAIL PROTECTED]> typed > I have these pieces of C-code (NOT C++ !!) I want to call from Python. > I found Boost. > I have MS Visual Studio 2005 with C++. > > is this the idea: > I write the following C source file: > > #incl

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
I get, from Visual C++, these linker errors, 8 in total, trying to build the above C++ source: C_test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl boost::python::detail::init_module(char const *,void (__cdecl*)(void))" ([EMAIL PROTECTED]@[EMAIL

python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
I have these pieces of C-code (NOT C++ !!) I want to call from Python. I found Boost. I have MS Visual Studio 2005 with C++. is this the idea: I write the following C source file: #include #include namespace { // Avoid cluttering the global namespace. int my_int

Re: Boost Python tutorial needs MSVC?

2006-12-20 Thread Max Wilson
Cancel that--I found the answer. http://groups.google.com/group/boost-list/browse_frm/thread/5a17077679a33dca/7360f2038d6e6cca?lnk=gst&q=bjam+mingw&rnum=3#7360f2038d6e6cca Short answer: bjam.exe should not be in /bin or /usr/bin because MinGW treats programs in there differently. In m

Boost Python tutorial needs MSVC?

2006-12-20 Thread Max Wilson
Hi, Has anyone here built Boost.Python modules under MinGW? I'm trying to build the Boost.Python tutorial under MinGW and getting an error that says it depends on MSVC, which puzzles me because Boost built using g++. Here's some of my output: [EMAIL PROTECTED] /c/Boost/libs/pyth

Re: boost::python embedding example running error

2006-11-12 Thread Roman Yakovenko
On 12 Nov 2006 19:10:24 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I use boost 1.33_1, there's an example on boost::python named > embedding.cpp. When I tried to build and run it in visual studio 2005, > I got an error on this line: > > std::string hello() {

boost::python embedding example running error

2006-11-12 Thread could . net
I use boost 1.33_1, there's an example on boost::python named embedding.cpp. When I tried to build and run it in visual studio 2005, I got an error on this line: std::string hello() { return python::call_method(self, "hello"); } It's a back ptr error. I don't know wher

Re: Big speed boost in os.walk in Python 2.5

2006-10-13 Thread Martin v. Löwis
looping schrieb: > Maybe this improvement could be backported in Python 2.4 branch for the > next release ? As Fredrik explains, this is probably the side-effect of a from-scratch rewrite of the relevant functions. Another (undesirable) side-effect is that the resulting binary won't work on Window

Re: Big speed boost in os.walk in Python 2.5

2006-10-13 Thread looping
Fredrik Lundh wrote: > looping wrote: > > > > > Very nice, but somewhat strange... > > Is Python 2.4.3 os.walk buggy ??? > > > Why are you asking if something's buggy when you've already figured out > what's been improved? > You're right, buggy isn't the right word... Anyway thanks for your detail

Re: Big speed boost in os.walk in Python 2.5

2006-10-13 Thread Fredrik Lundh
looping wrote: > Results on Windows XP after some run to fill the disk cache (with > ~59000 files and ~3500 folders): > Python 2.4.3 : 45s > Python 2.5 : 10s > > Very nice, but somewhat strange... > Is Python 2.4.3 os.walk buggy ??? No. A few "os" function are now implemented in terms of Window

Big speed boost in os.walk in Python 2.5

2006-10-13 Thread looping
Hi, I noticed a big speed improvement in some of my script that use os.walk and I write a small script to check it: import os for path, dirs, files in os.walk('D:\\FILES\\'): pass Results on Windows XP after some run to fill the disk cache (with ~59000 files and ~3500 folders): Python 2.4.3 :

Re: Boost Python Issue

2006-08-31 Thread Neal Becker
JDJMSon wrote: > > Neal Becker wrote: > >> Shouldn't that be: >> .def("TestFunction",&TestClass::TestFunction) >> > ; > > > Yes, you're right, but I'm still getting the error. I'm using a > prebuilt python library, so later I'm going to rebuild python myself > and see if that helps, as has bee

Re: Boost Python Issue

2006-08-31 Thread JDJMSon
Neal Becker wrote: > Shouldn't that be: > .def("TestFunction",&TestClass::TestFunction) > > ; Yes, you're right, but I'm still getting the error. I'm using a prebuilt python library, so later I'm going to rebuild python myself and see if that helps, as has been suggested. Thanks. -- http://ma

Re: Boost Python Issue

2006-08-31 Thread Neal Becker
JDJMSon wrote: > I was wondering if someone here could help me with a problem I'm having > building Python extensions with the Boost.Python library. > Basically, if I have a wrapper class with something like this: > > string TestFunc() > { > return "Hello World"; > } > > BOOST_PYTHON_MODULE(Test

Re: Boost Python Issue

2006-08-31 Thread [EMAIL PROTECTED]
the threading type, debugging modes, etc. If these don't match between you VC compilation and the BOOST library complitation you can get those errors. I had similar problems and it took me forever to figure it out. Let me know if this helps, look at the command line from visual studio and co

Boost Python Issue

2006-08-31 Thread JDJMSon
; }; BOOST_PYTHON_MODULE(TestClass) { class_("TestClass") .def("TestFunction",&TestClass.TestFunction) ; } I get the following error: vc-C++ bin\PythonTest\TestClass.pyd\vc-8_0\debug\threading-multi\TestClass.obj TestClass.cpp TestClass.cpp(27) : error

Re: Boost Build Warning

2006-08-14 Thread Roman Yakovenko
On 14 Aug 2006 10:29:08 -0700, Hoop <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to run the Hello World example in Boost.Python from the > Building Hello World documentation. I believe that I have everything > set up right but I get these three warnings, > > warning: no toolsets are configured. >

Boost Build Warning

2006-08-14 Thread Hoop
Hi, I am trying to run the Hello World example in Boost.Python from the Building Hello World documentation. I believe that I have everything set up right but I get these three warnings, warning: no toolsets are configured. warning: you won't be able to build C++ programs. warning: please consult t

Re: Boost Install

2006-08-11 Thread Neil Hodgson
=2.4] and just get a > statement saying that bjam is not recognized. Really is no batch file > or executable with that name in the boost directory. IIRC it was an extra step although I remember getting quite confused installing Boost.Python. http://www.boost.org/more/getting_started.

Re: Boost Install

2006-08-11 Thread missdeer
You should set PYTHON_ROOT & PYTHON_VERSION environment variable first, then set the VC toolset path, compile bjam.exe yourself and run bjam with -sTOOLS parameter. It seems Boost has not been totally tested under VS2005, but works fine with VS2003. Good luck!   miss

Boost Install

2006-08-11 Thread Hoop
Hi All, I am wondering if any have done an install of Boost for Python embedding? I have downoaded boost_1_33_1.exe, ran that and now have a boost_1_33_1 directory with plenty of items ine it. I have attempted to follow some online install directions which do not seem to work. I am using VS2005. I

Re: Need help building boost python on mac os x.

2006-08-04 Thread Simon Forman
KraftDiner wrote: > Could someone point me to step by step instructions on building boost > python on mac os x? > I have bjam running.. I have the boost source... but the tests are > failing.. > Probably something to do with environement variables... > Anyone with time? You mig

Need help building boost python on mac os x.

2006-08-04 Thread KraftDiner
Could someone point me to step by step instructions on building boost python on mac os x? I have bjam running.. I have the boost source... but the tests are failing.. Probably something to do with environement variables... Anyone with time? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Boost.

2006-07-25 Thread Roman Yakovenko
On 25 Jul 2006 08:01:30 -0700, KraftDiner <[EMAIL PROTECTED]> wrote: > Hi, I'm trying to call a C++ class from python. > I've looked around and the solution would appear to be boost. Right! > I'm not sure but maybe I've downloaded and installed the enti

Python and Boost.

2006-07-25 Thread KraftDiner
Hi, I'm trying to call a C++ class from python. I've looked around and the solution would appear to be boost. I'm not sure but maybe I've downloaded and installed the entire boost library, when there is probably a separate tar ball for python / C++ integration. Can someone plea

PyThreadState_SetAsyncExc, PyErr_Clear and boost::python

2006-05-10 Thread gabriel . becedillas
t for some reason calls PyErr_Clear. That code happens to be inside boost::python. I do need to stop the thread from executing Python code as soon as possible (as soon as it returns from a native function is also acceptable). Because we have embedded Python's VM in our product, I'm thinki

Re: boost python tutorial

2006-03-23 Thread Roman Yakovenko
On 23 Mar 2006 12:36:17 -0800, MakaMaka <[EMAIL PROTECTED]> wrote: > I checked and it is. I can't use news servers at work b/c of the > firewall. Is there another way to access this mailing list? Yes, try to subscribe: http://www.python.org/community/sigs/. See c++-sig If you can use your mail o

Re: boost python tutorial

2006-03-23 Thread MakaMaka
I checked and it is. I can't use news servers at work b/c of the firewall. Is there another way to access this mailing list? -- http://mail.python.org/mailman/listinfo/python-list

Re: boost python tutorial

2006-03-23 Thread Roman Yakovenko
On 23 Mar 2006 11:17:46 -0800, MakaMaka <[EMAIL PROTECTED]> wrote: > Hi, > I'm trying to build the basic boost.python tutorial that comes with the > distribution. I'm using bjam and mingw. It builds the module, but > upon import, it gives this error: > > ImportError: dynamic module does not defin

boost python tutorial

2006-03-23 Thread MakaMaka
Hi, I'm trying to build the basic boost.python tutorial that comes with the distribution. I'm using bjam and mingw. It builds the module, but upon import, it gives this error: ImportError: dynamic module does not define init function (inithello) I've found other threads with this problem as a t

Bjam Boost Python Build

2006-02-13 Thread timsson
; extension Dummy: Dummy.cpp @boost/libs/python/build/extension ; stage $(TOP)/Tie : Dummy; InstallFile $(TOP)\\Tie : test_Dummy.py ; -- http://mail.python.org/mailman/listinfo/python-list

Re: need an example of Python numarray to C++ and back again, Boost / SWIG?

2005-11-10 Thread Fernando Perez
PL wrote: > I looked at Stefan's post - but he remarks that "Unfortunately, Blitz > jealously guards its data (restricted pointers), so that it is not so > easy to do the conversion in the other direction. If anyone knows an > answer to this problem, I'd be glad to hear it" > > I've previously l

Re: need an example of Python numarray to C++ and back again, Boost / SWIG?

2005-11-10 Thread PL
e before and will revisit it to see if it will work. But I was intending to do this with a compiled extension. I wish there was a simple example of this in either the SWIG or Boost docs or a faq/howto posted somewhere . . . -Paul Fernando Perez wrote: > PL wrote: > > > I want to

Re: need an example of Python numarray to C++ and back again, Boost / SWIG?

2005-11-09 Thread Fernando Perez
ith Python, but > less so with C++ and Boost or SWIG. > > Does anyone have an example with all steps that I can follow? More > specifically I am looking for the C++ code, ".i" file for SWIG and/or > the analagous setup files that Boost would need to do this. You may want

  1   2   >