× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



John - I too had success installing a number of other packages, but if
we're expecting users to manually install some of these main 'goto'
packages then I don't see people using Python much. On Linux/Mac/Windows
the install is straightforward. pip install <packagename> and it just
works. In my personal opinion we need to have all these requirements
pre-installed for python before it is going to be considered usable by the
masses. This is not to diminish the work already done, which is
extensive. While I've used Python as a development tool for many years,
I'm not one to go out and compile the packages myself.

-Jim

On Mon, Jun 20, 2016 at 12:26 PM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

On Mon, Jun 20, 2016 at 12:44 PM, Bill Gravelle <starbg@ibmi.rocks> wrote:
Jim,

What version(s) of Python do you have installed? Is this from the IBM
5733OPS Option 2 (Python 3.x) or 4 (Python 2.x)? Or is it another
version? Are you doing this installation work into a chroot’d environment?

Hm. I would have thought, based on another thread ("Re: Resources to
Learn beginner Learning in RPG"), that he's trying this on Litmis,
which has 57733OPS Option 2.

But I have recently opened a Python space on Litmis as well, and I
can't even get as far as he did. For me, any attempt to use pip (to
install any package) results in

[last part of traceback only]
File
"/QOpenSys/QIBM/ProdData/OPS/Python3.4/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py",
line 6
6, in <module>
from urllib.request import (urlopen, urlretrieve, Request,
url2pathname,
ImportError: cannot import name 'HTTPSHandler'

However, I also signed up for pub400.com (currently also only Option
2), and over there, I have successfully installed XlsxWriter, xlrd,
and Bottle (all pure Python, no C compilation involved) using pip
inside a venv.

I tried installing ibm_db (which does have a C component) the same
way, and it failed with

[last part of traceback only]
File
"/QOpenSys/QIBM/ProdData/OPS/Python3.4/lib/python3.4/urllib/request.py",
line 1185, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error A failure in the SSL library
occurred (_ssl.c:600)>

So, these new offerings are definitely rough around the edges. Both
very cool, but currently not in great shape to leverage both Python
and the i simultaneously. (A huge step would be to install ibm_db and
itoolkit.)

Relevant links, particularly for Holger and Aaron:


https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/Installing%20shipped%20add-ons


https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/Python%20PTFs

Honestly, I don't understand why flipflop and bottle were released as
PTFs for Option 2 (since they are trivially installable with pip), and
perhaps that is why these are not PTFs for Option 4.

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


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-2024 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.