Category : python-2.7

// a.h class A { public: void register(Base*); } // a.cpp void A::register(Base* pBase) { pBase->run(); } // Base.h class Base { public: void run()=0; } Then, I use SWIG 3.0 to wrapper this Class A’s function register with module.i // module.i %module(directors=1) myModule %{ #include "a.h" #include "Base.h" #include <boost/shared_ptr.hpp> %} %include <boost_shared_ptr.i> %shared_ptr(Base) ..

Read more

I’m doing some legacy work with Python 2.7 on Windows, if use a virtual environment of Python-2.7 32-bit, and call "pip install –force-reinstall –no-cache-dir MySQL-python" it completes all OK. However, if use Python-2.7 in 64 bit, it fails with errors attached below. I noticed message "-IC:Program Files (x86)MySQLMySQL Connector C 6.0.2include", which implies that the ..

Read more

I tried to find relevant question, but it does not seem to fix my problem. I am currently running a program using easyprocess module on python2.7 on MS Windows10, using Anaconda. DIR = D:WORKSPACEProjectPROGRAMS if verbose: print "Calling sprep96" cmd = os.path.join(DIR, ‘sprep96’) p = EasyProcess(‘"{}" -M model -PARR periods -NMOD 1 -R’.format(cmd)).call() sprep96 is ..

Read more