Basic python extension producing error: "dynamic module not initialized properly"

2012-08-31 Thread Jason Veldicott
Hi, I am trying to create an extension to call into a c++ library, a library which simply returns a string, given a string. At first, a quick and simple approach was tried (based on post http://stackoverflow.com/questions/1615813/how-to-use-c-classes-with-ctypes) in which the usual infrastructure

Calling Java jar class with parameter from Python

2012-07-21 Thread Jason Veldicott
Hi, I have read a number of posts on how this can be done, but I have not been able to replicate success with the particular command I'm wishing to execute. I am wanting to execute the following Java command from Python in Windows: java -cp c:\antlr\antlr-3.4-complete.jar org.antlr.Tool "C:\User

Re: Error importing __init__ declared variable from another package

2012-02-28 Thread Jason Veldicott
> > > Hi, > > > > I have a simple configuration of modules as beneath, but an import error > > is reported: > > > > /engine > >(__init__ is empty here) > >engine.py > > /sim > >__init__.py > > > > > > The module engine.py imports a variable instantiated in sim.__init__ as > > follows: >

Re: Error importing __init__ declared variable from another package

2012-02-28 Thread Jason Veldicott
Accidentally hit post by mistake before msg completed. Any comments appreciated. It's a very simple scenario, but not sure what the mistake is. Thanks Jason On Tue, Feb 28, 2012 at 6:55 PM, Jason Veldicott wrote: > Hi, > > I have a simple configuration of modules as beneath,

Error importing __init__ declared variable from another package

2012-02-27 Thread Jason Veldicott
Hi, I have a simple configuration of modules as beneath, but an import error is reported: /engine (__init__ is empty here) engine.py /sim __init__.py The module engine.py imports a variable instantiated in sim.__init__ as follows: from sim import var_name var_name.func() The fo

How to remove ellipses from long paths in traceback?

2012-01-12 Thread Jason Veldicott
Hi, Long paths in python traceback are contracted with ellipses. eg: TclError: couldn't load library "C:/Python26/tcl/tk8.5/../../bin/tk85.dll" Is there any way to see the full path? Surprisingly, search didn't reveal an answer to this question. Thanks Jason -- http://mail.python.org/mailm

Debug python from DLL callback?

2011-11-30 Thread Jason Veldicott
Hi, I am wondering if anyone here might be able to suggest if there is a way of switching over from python execution into debug mode of an IDE, from python code that is executed as a callback from a C++ DLL? Thanks Jason -- http://mail.python.org/mailman/listinfo/python-list