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



Thanks John. What command should I use to install the modules I need?

I tried pip3 and yum and received errors on both of those. This page
showed using easy_install (I tried easy_install3) python-ibmdb/IBM_DB/ibm_db
at master · ibmdb/python-ibmdb · GitHub
<https://github.com/ibmdb/python-ibmdb/tree/master/IBM_DB/ibm_db>. It also
crashed with this:

Downloading
https://files.pythonhosted.org/packages/d0/b7/4b133397dbaa5f7046f95b59a784d8030f43a1228aee371affeb4f4b6a6c/ibm_db-3.1
.0.tar.gz#sha256=185de434bf132d16b26e894a213d3f14dc93d75c2f372ef296e79fb904997fb0

Processing ibm_db-3.1.0.tar.gz

Writing /tmp/easy_install-jsc44fu8/ibm_db-3.1.0/setup.cfg

Running ibm_db-3.1.0/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-jsc44fu8/ibm_db-3.1.0/egg-dist-tmp-_r7gqyi1
Detected 32-bit Python

Downloading
https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/aix32_odbc_cli.tar.gz

warning: no files found matching '*.png' under directory 'ibm_db_tests'

warning: no files found matching '*.jpg' under directory 'ibm_db_tests'

warning: no files found matching '*' under directory 'ibm_db_dlls'

warning: no previously-included files found matching 'config.py'

unable to execute 'gcc': No such file or directory

error: Setup script exited with error: command 'gcc' failed with exit
status 1

On Mon, Nov 29, 2021 at 11:09 PM John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

You have several things not going the way you'd want:

On Mon, Nov 29, 2021 at 2:31 PM Jack Tucky <jacktucky@xxxxxxxxx> wrote:

*pip install ibm_db*

Don't use pip for that, use yum. As a general rule for open source on
IBM i, always try yum first.

Using cached

https://files.pythonhosted.org/packages/d0/b7/4b133397dbaa5f7046f95b59a784d8030f43a1228aee371affeb4f4b6a6c/ibm_db-
3.1.0.tar.gz

Yeah, that's the ibm-db package found on PyPI (which is the main place
pip looks for things). Despite its claims, it doesn't properly support
Db2 for i.

file_stream = BytesIO(request.urlopen(url,
context=context).read())

TypeError: initial_value must be unicode or None, not str

That suggests that the Python trying to do the installing (via pip) is
Python 2. Unless you know what you're doing with virtual environments,
it's always better to be explicit and say pip3.

John Y.
--
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 ...

Follow-Ups:
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.