digitalmars.D - Is PyD working?
- Bill Baxter (6/6) Aug 12 2007 Anyone had any luck building the PyD examples with a recent checkout of
- Kirk McDonald (9/18) Aug 12 2007 Heh. I don't check that forum very often. :-)
- Bill Baxter (7/24) Aug 12 2007 Thanks. It compiles, it just generates a runtime error saying it can't
- Kirk McDonald (13/44) Aug 12 2007 I have tracked down what I think is the precise problem: Instantiating a...
- Bill Baxter (3/45) Aug 12 2007 Of course that'll mean PyD is D 2.x only. :-(
- Kirk McDonald (8/59) Aug 12 2007 I should be able to keep it working in 1.x. It just means that, if you
- Kirk McDonald (8/53) Aug 13 2007 I've committed an update to Pyd which fixes this issue, but reverts (the...
- Bill Baxter (3/6) Aug 13 2007 Yay! Thanks.
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
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. --bbHeh. 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
Kirk McDonald wrote:Bill Baxter wrote: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 --bbAnyone 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. --bbHeh. 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.
Aug 12 2007
Bill Baxter wrote:Kirk McDonald wrote: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.orgBill Baxter wrote: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 --bbAnyone 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. --bbHeh. 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.
Aug 12 2007
Kirk McDonald wrote:Bill Baxter wrote:Of course that'll mean PyD is D 2.x only. :-( --bbKirk McDonald wrote: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).Bill Baxter wrote: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 --bbAnyone 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. --bbHeh. 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.
Aug 12 2007
Bill Baxter wrote:Kirk McDonald wrote: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.orgBill Baxter wrote:Of course that'll mean PyD is D 2.x only. :-( --bbKirk McDonald wrote: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).Bill Baxter wrote: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 --bbAnyone 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. --bbHeh. 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.
Aug 12 2007
Kirk McDonald wrote:Bill Baxter wrote: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.orgKirk McDonald wrote: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).Bill Baxter wrote: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 --bbAnyone 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. --bbHeh. 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.
Aug 13 2007
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