If you could get bpython working on IBM i I think it would also be a great
learning tool for developers new to python. It adds syntax highlighting
and code completion among other things to the python repl.

https://bpython-interpreter.org/

-Jim

On Tue, Apr 2, 2019 at 8:56 AM Craig Richards <craig@xxxxxxxxxxxxxxxx>
wrote:

Thanks all for your comments and advice.
Much appreciated.

I installed gcc via ACS Open Source Package Management (thanks Mark)

Jesse - thanks for taking the time to have a look at this.

I was just about to try installing bpython into the venv again - it's a
throwaway venv so I'll probably do it just to confirm Jesse's findings.

I'm not married to the idea of using bpython on the IBMi, I just thought it
might be a bit nicer for the kind of ad-hoc stuff you sometimes investigate
using the REPL.

Anyway, I've learned a few more things and as usual I'm grateful for the
folks who find time to comment.
thanks and best regards,
Craig

On Tue, 2 Apr 2019 at 14:42, Jesse Gorzinski <jgorzins@xxxxxxxxxx> wrote:

After cursory investigation, I suspect bpython doesn't work on IBM i
because the underlying greenlet package has no support for ppc64 IBM
i/AIX
https://github.com/python-greenlet/greenlet/tree/master/platform

I found this GitHub issue:
https://github.com/python-greenlet/greenlet/issues/145


"OpenSource" <opensource-bounces@xxxxxxxxxxxxxxxxxx> wrote on 04/02/2019
07:04:06 AM:

From: Craig Richards <craig@xxxxxxxxxxxxxxxx>
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxxxxxxxx>
Date: 04/02/2019 07:06 AM
Subject: [IBMiOSS] bpython
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxxxxxxxx>

Hi all,

If I'm accessing IBMi via SSH and running bash 4.4 on the IBMi, would
it
be
reasonable to expect that the bpython interpreter would run ok?

I tried installing it into a venv and hit a snag as GCC isn't installed
on
the IBMi.

I can see Aaron Bartell's instructions on how to install GCC at the
bottom
of this post:

https://urldefense.proofpoint.com/v2/url?



u=https-3A__www.mcpressonline.com__programming_scripting_techtip-2Ddb2-2Dadapter-2Dfor-2Dshells&d=DwICAg&c=jf_iaSHvJObTbx-
siA1ZOg&r=ZCVxF-



w6wAginVZ42dfeYbM5huvio_77jTCJXaiFgrE&m=WtGpYhTzfcXSnznFy77iPRkzN16QeUejS82--
nz3gxI&s=oGwboznqBY7VORZhdwrbeYFB9vB_YICKWAUhZ4tHVv8&e=


which amounts to running:

$ cd /QOpenSys

$ git clone <git@xxxxxxxxxxxxx>git@xxxxxxxxxxxxx:
litmis/ibmichroot.git
$ cd ibmichroot
$ ./pkg_setup.sh pkg_perzl_gcc-4.8.3.lst

Does this seem a reasonable thing to do?

thanks and regards,
Craig

--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.