www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Is PyD working?

reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Anyone had any luck building the PyD examples with a recent checkout of 
PyD from SVN?

The 'hello' example works fine, but the samples that use wrap_class don't.

I posted on the PyD forum a few days back but no response, hence the 
post here to see if anyone knows anything about the situation.

--bb
Aug 12 2007
parent reply Kirk McDonald <kirklin.mcdonald gmail.com> writes:
Bill Baxter wrote:
 Anyone had any luck building the PyD examples with a recent checkout of 
 PyD from SVN?
 
 The 'hello' example works fine, but the samples that use wrap_class don't.
 
 I posted on the PyD forum a few days back but no response, hence the 
 post here to see if anyone knows anything about the situation.
 
 --bb
Heh. I don't check that forum very often. :-) It compiled the last time I tried. Give me a little while, and I'll double check that I haven't broken things horribly. -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd: Connecting D and Python http://pyd.dsource.org
Aug 12 2007
parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Kirk McDonald wrote:
 Bill Baxter wrote:
 Anyone had any luck building the PyD examples with a recent checkout 
 of PyD from SVN?

 The 'hello' example works fine, but the samples that use wrap_class 
 don't.

 I posted on the PyD forum a few days back but no response, hence the 
 post here to see if anyone knows anything about the situation.

 --bb
Heh. I don't check that forum very often. :-) It compiled the last time I tried. Give me a little while, and I'll double check that I haven't broken things horribly.
Thanks. It compiles, it just generates a runtime error saying it can't convert the Py class to a D class. I spent about 30 minutes trying to debug it, but there's way too much going on there in that class wrapping stuff for me to spot the problem. FWIW, I'm on WinXP with Python 2.5, DMD 1.020 --bb
Aug 12 2007
parent reply Kirk McDonald <kirklin.mcdonald gmail.com> writes:
Bill Baxter wrote:
 Kirk McDonald wrote:
 
 Bill Baxter wrote:

 Anyone had any luck building the PyD examples with a recent checkout 
 of PyD from SVN?

 The 'hello' example works fine, but the samples that use wrap_class 
 don't.

 I posted on the PyD forum a few days back but no response, hence the 
 post here to see if anyone knows anything about the situation.

 --bb
Heh. I don't check that forum very often. :-) It compiled the last time I tried. Give me a little while, and I'll double check that I haven't broken things horribly.
Thanks. It compiles, it just generates a runtime error saying it can't convert the Py class to a D class. I spent about 30 minutes trying to debug it, but there's way too much going on there in that class wrapping stuff for me to spot the problem. FWIW, I'm on WinXP with Python 2.5, DMD 1.020 --bb
I have tracked down what I think is the precise problem: Instantiating a class with an Init!() specified from Python doesn't work. (The resulting Python object is useless.) I'm tentatively putting it down to the stuff I did recently to soften the symbol length issues. I'll be changing a bunch of that stuff back, and seeing if that fixes it. This probably means the symbol length stuff won't get resolved until __traits is up to snuff (which should solve the problem entirely). -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd: Connecting D and Python http://pyd.dsource.org
Aug 12 2007
next sibling parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Kirk McDonald wrote:
 Bill Baxter wrote:
 Kirk McDonald wrote:

 Bill Baxter wrote:

 Anyone had any luck building the PyD examples with a recent checkout 
 of PyD from SVN?

 The 'hello' example works fine, but the samples that use wrap_class 
 don't.

 I posted on the PyD forum a few days back but no response, hence the 
 post here to see if anyone knows anything about the situation.

 --bb
Heh. I don't check that forum very often. :-) It compiled the last time I tried. Give me a little while, and I'll double check that I haven't broken things horribly.
Thanks. It compiles, it just generates a runtime error saying it can't convert the Py class to a D class. I spent about 30 minutes trying to debug it, but there's way too much going on there in that class wrapping stuff for me to spot the problem. FWIW, I'm on WinXP with Python 2.5, DMD 1.020 --bb
I have tracked down what I think is the precise problem: Instantiating a class with an Init!() specified from Python doesn't work. (The resulting Python object is useless.) I'm tentatively putting it down to the stuff I did recently to soften the symbol length issues. I'll be changing a bunch of that stuff back, and seeing if that fixes it. This probably means the symbol length stuff won't get resolved until __traits is up to snuff (which should solve the problem entirely).
Of course that'll mean PyD is D 2.x only. :-( --bb
Aug 12 2007
parent Kirk McDonald <kirklin.mcdonald gmail.com> writes:
Bill Baxter wrote:
 Kirk McDonald wrote:
 
 Bill Baxter wrote:

 Kirk McDonald wrote:

 Bill Baxter wrote:

 Anyone had any luck building the PyD examples with a recent 
 checkout of PyD from SVN?

 The 'hello' example works fine, but the samples that use wrap_class 
 don't.

 I posted on the PyD forum a few days back but no response, hence 
 the post here to see if anyone knows anything about the situation.

 --bb
Heh. I don't check that forum very often. :-) It compiled the last time I tried. Give me a little while, and I'll double check that I haven't broken things horribly.
Thanks. It compiles, it just generates a runtime error saying it can't convert the Py class to a D class. I spent about 30 minutes trying to debug it, but there's way too much going on there in that class wrapping stuff for me to spot the problem. FWIW, I'm on WinXP with Python 2.5, DMD 1.020 --bb
I have tracked down what I think is the precise problem: Instantiating a class with an Init!() specified from Python doesn't work. (The resulting Python object is useless.) I'm tentatively putting it down to the stuff I did recently to soften the symbol length issues. I'll be changing a bunch of that stuff back, and seeing if that fixes it. This probably means the symbol length stuff won't get resolved until __traits is up to snuff (which should solve the problem entirely).
Of course that'll mean PyD is D 2.x only. :-( --bb
I should be able to keep it working in 1.x. It just means that, if you use 1.x, you could get symbol length issues. -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd: Connecting D and Python http://pyd.dsource.org
Aug 12 2007
prev sibling parent reply Kirk McDonald <kirklin.mcdonald gmail.com> writes:
Kirk McDonald wrote:
 Bill Baxter wrote:
 
 Kirk McDonald wrote:

 Bill Baxter wrote:

 Anyone had any luck building the PyD examples with a recent checkout 
 of PyD from SVN?

 The 'hello' example works fine, but the samples that use wrap_class 
 don't.

 I posted on the PyD forum a few days back but no response, hence the 
 post here to see if anyone knows anything about the situation.

 --bb
Heh. I don't check that forum very often. :-) It compiled the last time I tried. Give me a little while, and I'll double check that I haven't broken things horribly.
Thanks. It compiles, it just generates a runtime error saying it can't convert the Py class to a D class. I spent about 30 minutes trying to debug it, but there's way too much going on there in that class wrapping stuff for me to spot the problem. FWIW, I'm on WinXP with Python 2.5, DMD 1.020 --bb
I have tracked down what I think is the precise problem: Instantiating a class with an Init!() specified from Python doesn't work. (The resulting Python object is useless.) I'm tentatively putting it down to the stuff I did recently to soften the symbol length issues. I'll be changing a bunch of that stuff back, and seeing if that fixes it. This probably means the symbol length stuff won't get resolved until __traits is up to snuff (which should solve the problem entirely).
I've committed an update to Pyd which fixes this issue, but reverts (the least important) part of the symbol-length-shortening code. -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd: Connecting D and Python http://pyd.dsource.org
Aug 13 2007
parent Bill Baxter <dnewsgroup billbaxter.com> writes:
Kirk McDonald wrote:

 I've committed an update to Pyd which fixes this issue, but reverts (the 
 least important) part of the symbol-length-shortening code.
 
Yay! Thanks. --bb
Aug 13 2007