help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I am trying to get pyeval to work.


From: Doug Stewart
Subject: Re: I am trying to get pyeval to work.
Date: Tue, 28 May 2019 15:02:28 -0400



On Tue, May 28, 2019 at 2:43 PM Mike Miller <address@hidden> wrote:
On Tue, May 28, 2019 at 13:59:48 -0400, Doug Stewart wrote:
> when I try your code in octave 5.1.1
> I get
> error: 'py' undefined near line 1 column 8
> error: called from
>     email2 at line 1 column 6

Ok, I thought you already had the package installed and loaded.

Add `pkg load pythonic` to the top of the script file.

If you don't have it installed, install it with `pkg`. See
https://gitlab.com/mtmiller/octave-pythonic/blob/master/README.md

If you have `pyeval` but not `py`, then you may have some old code
floating in your environment that you should clean out.

--
mike


My bad it was not loaded!!!

        pythonic  |  0.0.1+ | /home/doug/octave/pythonic-0.0.1+

Your code now works from inside octave.

When I get the more secure code working we could add it somewhere in octave so users will have a sendmail function.

--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]