python-daemon install failure - python

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.

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

Unable to install IBM_DB in Raspberry PI

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.

python + how to install the module web.py

I installed on my XP machine the python version - 3.4.0
and now I want to install the web.py module
the installation is failed on print "var", var
I guess is because the missing "(" , ")"
but how to fix that?
C:\Python34\Scripts>pip install web.py
Downloading/unpacking web.py
Running setup.py (path:D:\DOCUME~1\uba\LOCALS~1\Temp\pip_build_uba\web.p
y\setup.py) egg_info for package web.py
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "D:\DOCUME~1\ubarih\LOCALS~1\Temp\pip_build_uba\web.py\setup.py",
line 6, in <module>
from web import __version__
File "D:\DOCUME~1\uba\LOCALS~1\Temp\pip_build_uba\web.py\web\__init_
_.py", line 14, in <module>
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
File "C:\Python34\lib\site-packages\db\__init__.py", line 69
print "var", var
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "D:\DOCUME~1\uba\LOCALS~1\Temp\pip_build_uba\web.py\setup.py", line
6, in <module>
from web import __version__
File "D:\DOCUME~1\ubarih\LOCALS~1\Temp\pip_build_uba\web.py\web\__init__.py
", line 14, in <module>
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
File "C:\Python34\lib\site-packages\db\__init__.py", line 69
print "var", var
^
SyntaxError: invalid syntax
----------------------------------------
Cleaning up...
You installed Python 3.4 on your machine, but web.py does not support Python3.X.
If you look at the source, you see that there is a branch in the git, but the migration seemed to be incomplete. (https://github.com/webpy/webpy/tree/python3/web).
There was also a discussion about the migration (https://groups.google.com/forum/#!topic/webpy/NvDqKEEEMEI).
Install the development branch
You can try this branch by downloading the source from github
(https://github.com/webpy/webpy/archive/python3.zip). After you downloaded the file, extract it and run the setup-script
setup.py install
from a python command prompt (assuming you are on Windows).
But there is no guarantee that this version will work as expected.
As an (easier?) alternative:
If you want to use web.py, try to install python 2.7.x (https://www.python.org/downloads/release/python-2710/) and install web.py via pip afterwards.

Categories

Resources