Re: is there a way to embed python 3.7 code in D program?

2019-05-19 Thread torea via Digitalmars-d-learn
On Monday, 13 May 2019 at 03:06:07 UTC, evilrat wrote: On Monday, 13 May 2019 at 01:35:58 UTC, evilrat wrote: I have project using pyd with python 3.7, that also using ptvsd (visual studio debugger for python package) to allow mixed debugging right inside VS Code. I'll reduce the code and

Re: is there a way to embed python 3.7 code in D program?

2019-05-14 Thread torea via Digitalmars-d-learn
On Monday, 13 May 2019 at 08:33:46 UTC, Russel Winder wrote: I'd like to use D for the "brain" of a small robot (Anki vector) whose API is coded in Python 3.6+. I had a look at Pyd but it's limited to python 2.7... PyD works entirely fine for me using Python 3.7. Yes, it seems to work so

Re: is there a way to embed python 3.7 code in D program?

2019-05-13 Thread evilrat via Digitalmars-d-learn
On Monday, 13 May 2019 at 21:29:18 UTC, Danny Arends wrote: "ImportError: No module named 'stuff'" How do I make the py_import file from pyd find the stuff.py file ? On Linux PYTHONPATH doesn't have current directory by default, so a hacky way to do it is to add it to PYTHONPATH prior to

Re: is there a way to embed python 3.7 code in D program?

2019-05-13 Thread Danny Arends via Digitalmars-d-learn
On Monday, 13 May 2019 at 09:03:02 UTC, evilrat wrote: On Monday, 13 May 2019 at 03:06:07 UTC, evilrat wrote: https://github.com/Superbelko/pyd-min Here. Super minimal example, ptvsd can be commented out as well, it is there entirely for debugging. Pardon me, somehow I was completely

Re: is there a way to embed python 3.7 code in D program?

2019-05-13 Thread evilrat via Digitalmars-d-learn
On Monday, 13 May 2019 at 03:06:07 UTC, evilrat wrote: https://github.com/Superbelko/pyd-min Here. Super minimal example, ptvsd can be commented out as well, it is there entirely for debugging. Pardon me, somehow I was completely misread the original question... Well, maybe someone else

Re: is there a way to embed python 3.7 code in D program?

2019-05-13 Thread Russel Winder via Digitalmars-d-learn
On Sun, 2019-05-12 at 20:06 +, torea via Digitalmars-d-learn wrote: > Hi, > > I'd like to use D for the "brain" of a small robot (Anki vector) > whose API is coded in Python 3.6+. > I had a look at Pyd but it's limited to python 2.7... PyD works entirely fine for me using Python 3.7. I am

Re: is there a way to embed python 3.7 code in D program?

2019-05-13 Thread Cym13 via Digitalmars-d-learn
On Sunday, 12 May 2019 at 20:06:34 UTC, torea wrote: Hi, I'd like to use D for the "brain" of a small robot (Anki vector) whose API is coded in Python 3.6+. I had a look at Pyd but it's limited to python 2.7... Would there be other ways to call python functions and retrieve the python

Re: is there a way to embed python 3.7 code in D program?

2019-05-12 Thread evilrat via Digitalmars-d-learn
On Monday, 13 May 2019 at 01:35:58 UTC, evilrat wrote: I have project using pyd with python 3.7, that also using ptvsd (visual studio debugger for python package) to allow mixed debugging right inside VS Code. I'll reduce the code and upload somewhere later.

Re: is there a way to embed python 3.7 code in D program?

2019-05-12 Thread evilrat via Digitalmars-d-learn
On Sunday, 12 May 2019 at 22:36:43 UTC, torea wrote: ok, I'll do some more tests with pyd then. And if I cannot get it to work, I'll have a look at the package! I have project using pyd with python 3.7, that also using ptvsd (visual studio debugger for python package) to allow mixed

Re: is there a way to embed python 3.7 code in D program?

2019-05-12 Thread torea via Digitalmars-d-learn
On Sunday, 12 May 2019 at 21:01:31 UTC, Nicholas Wilson wrote: On Sunday, 12 May 2019 at 20:06:34 UTC, torea wrote: Hi, I'd like to use D for the "brain" of a small robot (Anki vector) whose API is coded in Python 3.6+. I had a look at Pyd but it's limited to python 2.7... It isn't. You

Re: is there a way to embed python 3.7 code in D program?

2019-05-12 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 12 May 2019 at 20:06:34 UTC, torea wrote: Hi, I'd like to use D for the "brain" of a small robot (Anki vector) whose API is coded in Python 3.6+. I had a look at Pyd but it's limited to python 2.7... It isn't. You may needs to set a dub version, or it may pick up the 2.7 as the

Re: is there a way to embed python 3.7 code in D program?

2019-05-12 Thread Andre Pany via Digitalmars-d-learn
On Sunday, 12 May 2019 at 20:06:34 UTC, torea wrote: Hi, I'd like to use D for the "brain" of a small robot (Anki vector) whose API is coded in Python 3.6+. I had a look at Pyd but it's limited to python 2.7... Would there be other ways to call python functions and retrieve the python

is there a way to embed python 3.7 code in D program?

2019-05-12 Thread torea via Digitalmars-d-learn
Hi, I'd like to use D for the "brain" of a small robot (Anki vector) whose API is coded in Python 3.6+. I had a look at Pyd but it's limited to python 2.7... Would there be other ways to call python functions and retrieve the python objects (including camera image) inside a D program? Best