Unable to install IBM_DB in Raspberry PI - python

I'm trying to install ibm_db on my raspberry pi with raspbian. I've been trying with many methods but non one has worked, I always get this output :
root#raspberrypi:/home/pi# pip2 install ibm_db
Downloading/unpacking ibm-db
Downloading ibm_db-2.0.6.tar.gz (552kB): 552kB downloaded
Running setup.py (path:/tmp/pip-build-nzFdb7/ibm-db/setup.py) egg_info for package ibm-db
Detected 32-bit Python
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-nzFdb7/ibm-db/setup.py", line 149, in <module>
easy_cli_path = os.path.join(tmp_path, 'ibm_db-%s.egg' % ("-".join([VERSION, "py"+sys.version.split(" ")[0][0:3]]) if('win32' in sys.platform) else "-".join([VERSION, "py"+sys.version.split(" ")[0][0:3], os_, arch_])), 'clidriver')
NameError: name 'arch_' is not defined
Complete output from command python setup.py egg_info:
Detected 32-bit Python
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-nzFdb7/ibm-db/setup.py", line 149, in <module>
easy_cli_path = os.path.join(tmp_path, 'ibm_db-%s.egg' % ("-".join([VERSION, "py"+sys.version.split(" ")[0][0:3]]) if('win32' in sys.platform) else "-".join([VERSION, "py"+sys.version.split(" ")[0][0:3], os_, arch_])), 'clidriver')
NameError: name 'arch_' is not defined
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-nzFdb7/ibm-db
Storing debug log for failure in /root/.pip/pip.log
Can anybody help me or give me an advice?
I'm getting frustated!
Thanks in advance.

Related

Can't use pip-review to update packages and keep getting : ModuleNotFoundError: No module named 'distutils.command.bdist_msi'

I'm currently trying to use a convenient way to update my packages in my venv. I'm using for a while pip-review whith no problems.
Currently using conda and Python 3.9.7
Now i'm using the classic pip-review --auto or pip-review --interactive i can't resolve the following problem.
The full traceback is :
python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\silvagnoli\AppData\Local\Temp\pip-install-9qlus9r0\pycurl_d735f7d8d97b40b0a041f12dfd001811\setup.py", line 954, in <module>
setup_args['cmdclass'] = {'bdist_msi': get_bdist_msi_version_hack()}
File "C:\Users\silvagnoli\AppData\Local\Temp\pip-install-9qlus9r0\pycurl_d735f7d8d97b40b0a041f12dfd001811\setup.py", line 594, in get_bdist_msi_version_hack
from distutils.command.bdist_msi import bdist_msi
ModuleNotFoundError: No module named 'distutils.command.bdist_msi'
[end of output]
already update pip / wheel / setuptools as it can provoke egg_info exit code: 1
I would appreciate any ideas on this, thanks.

Trigger (Networktest) installation on Python 3.7

Currently I have the problem that I get the following error message under Python 3.7 when installing the package trigger (network test for router / switch).
If you try to install the offending package separately, then you get the same error message.
Collecting gtextfsm (from trigger)
Using cached https://files.pythonhosted.org/packages/98/12/edfdccf3d968ffbb94ac8e48b3172395b6902eb4265bded0b0d07a1652f3/gtextfsm-0.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\xxxxxx\AppData\Local\Temp\pip-install-4_suoa4z\gtextfsm\setup.py", line 19, in <module>
import textfsm
File "C:\Users\xxxxxx\AppData\Local\Temp\pip-install-4_suoa4z\gtextfsm\textfsm\__init__.py", line 2, in <module>
__version__ = textfsm.__version__
NameError: name 'textfsm' is not defined-
Is there another alternative to triggers?
Did someone have the problem described above?
Other solutions?

Not able to install AppiumLibrary with robotframework in jython

I am trying to install AppiumLibrary with robotframework in jython
Steps followed:
jython -m pip install robotframework-appiumLibrary
Error:
Downloading/unpacking sauceclient>=0.1.0 (from robotframework-appiumLibrary)
Downloading sauceclient-0.2.1.tar.gz
Running setup.py (path:C:\Users\ABHISH~1\AppData\Local\Temp\pip_build_abhishek
singh\sauceclient\setup.py) egg_info for package sauceclient
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\Users\ABHISH~1\AppData\Local\Temp\pip_build_abhisheksingh\saucecl
ient\setup.py", line 27, in <module>
from sauceclient import __version__
File "sauceclient.py", line 26, in <module>
is_py2 = sys.version_info.major is 2
AttributeError: 'tuple' object has no attribute 'major'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\Users\ABHISH~1\AppData\Local\Temp\pip_build_abhisheksingh\sauceclient
\setup.py", line 27, in <module>
from sauceclient import __version__
File "sauceclient.py", line 26, in <module>
is_py2 = sys.version_info.major is 2
**AttributeError: 'tuple' object has no attribute 'major'**
Anybody has any idea how to use this libaray?
You need to debug sauceclient-0.2.1.tar.gz. See if you can install it before installing robotframework-appiumLibrary.
To fix the code in "sauceclient.py" edit to:
is_py2 = sys.version_info[0] is 2
Thank you so much ,it did work for me here are the steps I followed:
1.Download sauceclient-0.2.1 and Changed sauceclient.py
is_py2 = sys.version_info[0] is 2
2. Install sauceclient-0.2.1
jython -m setup.py install
3.Run :
jython -m pip install robotframework-appiumLibrary

python-daemon install failure

I installed Python3.3 as non-root user, and use pip from python virtualenv to install beaver, a python module depends on python-daemon. However the install failure because python-daemon can not be installed.
(py_virtual)[infra#sulog01 beaver-master]$ pip install beaver==22
Downloading/unpacking beaver==22
Downloading Beaver-22.tar.gz (40kB): 40kB downloaded
Running setup.py egg_info for package beaver
Downloading/unpacking pika>=0.9.5 (from beaver==22)
Downloading pika-0.9.9.tar.gz (56kB): 56kB downloaded
Running setup.py egg_info for package pika
Downloading/unpacking python-daemon>=1.5.2 (from beaver==22)
Downloading python-daemon-1.6.tar.gz (41kB): 41kB downloaded
Running setup.py egg_info for package python-daemon
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/infra/logstash/beaver_Python/beaver-
master/py_virtual/build/python-daemon/setup.py", line 22, in
<module>main_module = __import__(main_module_name,
fromlist=['version'])
File "./daemon/__init__.py", line 42, in <module>
from . import version
File "./daemon/version/__init__.py", line 16, in <module>
from .version_info import version_info
File "./daemon/version/version_info.py", line 21
print 'revision: %(revno)d' % version_info
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/infra/logstash/beaver_Python/beaver-master/
py_virtual/build/python-daemon/setup.py", line 22, in <module>
main_module = __import__(main_module_name, fromlist=['version'])
File "./daemon/__init__.py", line 42, in <module>
from . import version
File "./daemon/version/__init__.py", line 16, in <module>
from .version_info import version_info
File "./daemon/version/version_info.py", line 21
print 'revision: %(revno)d' % version_info
^
SyntaxError: invalid syntax
----------------------------------------
Command python setup.py egg_info failed with error code 1 in
/home/infra/logstash/beaver_Python/beaver-master/py_virtual/
build/python-daemon
Storing complete log in /home/infra/.pip/pip.log
Do I need to install anything else before install python-daemon? Or is this issue with Python3.3 itself?
Looks like beaver and python-daemon don't support Python 3 at this point. You'll have to use Python 2.x.

Error packaging a python application to make it pip-installable

I am new to git, and deployed my first python-django app via github:
https://github.com/staticdev/django-crud-utils
The problem is that, when I try to install it, I get the error:
$ pip install -e git://github.com/staticdev/django-crud-utils.git#egg=django-crud-utils
Obtaining django-crud-utils from git+git://github.com/staticdev/django-crud-utils.git#egg=django-crud-utils
Updating /home/static/virtualenvs/prp2/src/django-crud-utils clone
Running setup.py egg_info for package django-crud-utils
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/static/virtualenvs/prp2/src/django-crud-utils/setup.py", line 15, in <module>
DESC = " ".join(__import__('crud_utils').__doc__.splitlines()).strip()
AttributeError: 'NoneType' object has no attribute 'splitlines'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/static/virtualenvs/prp2/src/django-crud-utils/setup.py", line 15, in <module>
DESC = " ".join(__import__('crud_utils').__doc__.splitlines()).strip()
AttributeError: 'NoneType' object has no attribute 'splitlines'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/static/virtualenvs/prp2/src/django-crud-utils
Storing complete log in /home/static/.pip/pip.log
Any help?
Tks in advance.
You don't have a docstring on the crud_utils package, thus installation fails.
You can get the same error by just running the setup.py module locally:
python setup.py
Add a docstring to your crud_utils/__init__.py module:
"""Some docstring here would help"""
P.S. You also checked in the .pyc byte-compiled cache files into GitHub, you may want to remove those.

Categories

Resources