linking error after swig
Hi All, I have a mac os x, and I try to replicate the sample in swig tutorial but when I try to link, I have these linking errors: ld example.o example_wrap.o -o _example.so Undefined symbols: _PyType_Type, referenced from: _PyType_Type$non_lazy_ptr in example_wrap.o _PyExc_SystemError, referenced from: _PyExc_SystemError$non_lazy_ptr in example_wrap.o _PyDict_New, referenced from: _SWIG_Python_NewShadowInstance in example_wrap.o _SWIG_Python_NewShadowInstance in example_wrap.o _SWIG_Python_SetSwigThis in example_wrap.o _SWIG_Python_TypeCache in example_wrap.o _fputs$UNIX2003, referenced from: _PySwigObject_print in example_wrap.o _PySwigPacked_print in example_wrap.o _PySwigPacked_print in example_wrap.o _PyExc_IOError, referenced from: _PyExc_IOError$non_lazy_ptr in example_wrap.o _PyCObject_Import, referenced from: _SWIG_Python_GetModule in example_wrap.o _PyList_Append, referenced from: _SWIG_Python_AppendOutput in example_wrap.o _PyTuple_Type, referenced from: _PyTuple_Type$non_lazy_ptr in example_wrap.o _PyExc_MemoryError, referenced from: _PyExc_MemoryError$non_lazy_ptr in example_wrap.o _PyArg_ParseTuple, referenced from: __wrap_fact in example_wrap.o __wrap_my_mod in example_wrap.o __wrap_get_time in example_wrap.o _strstr, referenced from: _SWIG_Python_ConvertFunctionPtr in example_wrap.o _SWIG_Python_FixMethods in example_wrap.o _fwrite$UNIX2003, referenced from: _PySwigPacked_print in example_wrap.o _PySwigPacked_print in example_wrap.o _swig_varlink_print in example_wrap.o _PyInstance_NewRaw, referenced from: _SWIG_Python_NewShadowInstance in example_wrap.o _PyDict_SetItemString, referenced from: _SWIG_Python_SetConstant in example_wrap.o _SWIG_Python_InstallConstants in example_wrap.o _init_example in example_wrap.o _PyFloat_AsDouble, referenced from: _SWIG_AsVal_double in example_wrap.o _PyArg_UnpackTuple, referenced from: _PySwigObject_own in example_wrap.o _PyObject_Str, referenced from: _SWIG_Python_AddErrorMsg in example_wrap.o _SWIG_Python_AddErrMesg in example_wrap.o _SWIG_Python_TypeError in example_wrap.o _PyDict_GetItem, referenced from: _SWIG_Python_GetSwigThis in example_wrap.o _SWIG_Python_TypeQuery in example_wrap.o _PyExc_TypeError, referenced from: _PyExc_TypeError$non_lazy_ptr in example_wrap.o _PyString_FromString, referenced from: _PySwigObject_format in example_wrap.o _PySwigObject_str in example_wrap.o _PySwigPacked_str in example_wrap.o __SWIG_This in example_wrap.o _SWIG_Python_TypeQuery in example_wrap.o _swig_varlink_repr in example_wrap.o _swig_varlink_str in example_wrap.o _swig_varlink_str in example_wrap.o _swig_varlink_str in example_wrap.o _swig_varlink_str in example_wrap.o _PyBool_FromLong, referenced from: _PySwigObject_own in example_wrap.o _PyString_AsString, referenced from: _SWIG_Python_AddErrorMsg in example_wrap.o _PySwigObject_repr in example_wrap.o _PySwigObject_print in example_wrap.o _SWIG_Python_AddErrMesg in example_wrap.o _SWIG_Python_AddErrMesg in example_wrap.o _SWIG_Python_TypeError in example_wrap.o _swig_varlink_print in example_wrap.o _PyObject_IsTrue, referenced from: _PySwigObject_own in example_wrap.o _PyList_Type, referenced from: _PyList_Type$non_lazy_ptr in example_wrap.o _PyInt_AsLong, referenced from: _SWIG_AsVal_double in example_wrap.o _SWIG_AsVal_long in example_wrap.o _PyErr_SetString, referenced from: _SWIG_Python_SetErrorMsg in example_wrap.o _SWIG_Python_UnpackTuple in example_wrap.o _swig_varlink_getattr in example_wrap.o _swig_varlink_setattr in example_wrap.o _malloc, referenced from: _PySwigClientData_New in example_wrap.o _PySwigPacked_New in example_wrap.o _SWIG_Python_addvarlink in example_wrap.o _SWIG_Python_addvarlink in example_wrap.o _SWIG_Python_FixMethods in example_wrap.o _PyList_New, referenced from: _SWIG_Python_AppendOutput in example_wrap.o _PyErr_SetObject, referenced from: _SWIG_Python_SetErrorObj in example_wrap.o _strncmp, referenced from: _PySwigPacked_compare in example_wrap.o _SWIG_Python_FixMethods in example_wrap.o _PyObject_Malloc, referenced from: _PySwigObject_New in example_wrap.o _PySwigPacked_New in example_wrap.o _SWIG_Python_newvarlink in example_wrap.o _PyExc_RuntimeError, referenced from: _PyExc_RuntimeError$non_lazy_ptr in example_wrap.o _PyCFunction_Type, referenced from: _PyCFunction_Type$non_lazy_ptr in example_wrap.o __Py_NoneStruct, referenced from: __Py_NoneStruct$non_lazy_ptr in example_wrap.o __PyWeakref_CallableProxyType, referenced from:
pygccxml xml output file
Hi all, I start to use this module in order to produce xml( and the make other things), but differently from gccxml I don't find the variable that set the name of the xml output file after the parsing (in gccxml is - fxml), so it creates temporary files. how can I do an Is there a tutorial that explain with dectails how it works? thank you, regards w -- http://mail.python.org/mailman/listinfo/python-list
python and multithreading problem
Hi all, I made an application that use multithreading (indifferently importing thread or threading module) , but when I call some wrapped modules (with swig) from my application they run like there is only a single thread (and my application gui ,made with wxPython, freezes). If I use other modules not wrapped, but created for test that multithread works, and gui is not freezing are ok. Modules that wrap DLL are not my product but are created by another developer with VS.NET, and the only thing I can think is that they're builded without multithreaded compiler option. Can it be another cause for this behaviour, can this explanation be correct? maybe also swig have a multithreading option. thank you in advance w -- http://mail.python.org/mailman/listinfo/python-list
Calculate net transfer rate without dummy file
Hi, how can I calulate transfer rate to a host , without using a file ? can ping module (written by Jeremy Hylton) be useful ? -- http://mail.python.org/mailman/listinfo/python-list
upload file and estimation time
Hi all, unseccsefully, I try to analyze this problem. If I can only work on the client size, how can I create a module that calculate the upload time of a file, so the time for finish it? i can start with ftp protocol and after extend this logic for my requirements. thx w -- http://mail.python.org/mailman/listinfo/python-list
outgoing traffic monitor
Hi all, I have thread that call a module which upload a file in a remote repository. A possible approach to calculate the time is tomonitor outgoing traffic of that thread. How can I do in python. There are modules usefull for this kind of requests? thank you all, bye w -- http://mail.python.org/mailman/listinfo/python-list
pythonw.exe and python.exe
Hi all, I made a little application with multithreading in winxp with python2.5. An event generated from a third part software is the trigger for the creation of progress bar in a wxPython app. This python app is launched via wxExecute. I've noticed a different behaviour if the script is launched with python.exe and pythonw.exe (i.e. without dos shell), in fact in the first case it's all ok, while in the other case only the first, the third , the fifth ... progress bar is setted correctly and update its value. Now, before control again the code , what can be the origin of the problem? why python and pythonw give a result so different? thank you w -- http://mail.python.org/mailman/listinfo/python-list
wxPython and Tkinter
Hi all, I migrate some code from tkinter to wxpython. I need the equivalent Tkinter method Tkinter.Tk.after in wxPython, but I'm not able to find it. It exist or there are other trick to emulate it? thank you w -- http://mail.python.org/mailman/listinfo/python-list
Re: wxPython and Tkinter
On 29 Nov, 11:50, whatazor [EMAIL PROTECTED] wrote: Hi all, I migrate some code from tkinter to wxpython. I need the equivalent Tkinter method Tkinter.Tk.after in wxPython, but I'm not able to find it. It exist or there are other trick to emulate it? thank you w after in Tk method allows to all a function every X milliseconds. -- http://mail.python.org/mailman/listinfo/python-list
newbie swig c++ to python
Hi all, I must wrap some c++ code in python with swig. I try the swig examples for VC++ , but when I build the project it gives me that error: example fatal error LNK1181: cannot open input file 'C:\Programmi \Python25\libs.obj' Any idea? thank you w -- http://mail.python.org/mailman/listinfo/python-list
Re: newbie swig c++ to python
Now it works, the problem was in the project configuration of the example, that put the directory in Addictional Dependencies while it must be in Addictional Library Directories bye w n 7 Ott, 18:35, whatazor [EMAIL PROTECTED] wrote: Hi all, I must wrap some c++ code in python with swig. I try the swig examples for VC++ , but when I build the project it gives me that error: example fatal error LNK1181: cannot open input file 'C:\Programmi \Python25\libs.obj' Any idea? thank you w -- http://mail.python.org/mailman/listinfo/python-list