Centos 6.5 error installing wal-e - python

On a fresh CentOS 6.5 install (Python 2.6.6), after doing pip install wal-e successfully, running wal-e gives the following error:
# wal-e
Traceback (most recent call last):
File "/usr/bin/wal-e", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: argparse>=0.8
If i do pip list argparse I get a bunch of stuff, including argparse 1.3.0

You're missing the argparse package. wal-e is looking for version 0.8 or higher.
pip install argparse
Also see this:
pip broke. how to fix DistributionNotFound error?

Related

Cfgrib is not installed correctly on WSL2 through pip

I'm trying to install cfgrib to my WSL2 Ubuntu however when I type python3 -m cfgrib selfcheck it gives the following error as follows.
Traceback (most recent call last):
File "/home/berke/.local/lib/python3.8/site-packages/cfgrib/messages.py", line 42, in <module>
import pyeccodes.compat as eccodes
ModuleNotFoundError: No module named 'pyeccodes'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 184, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.8/runpy.py", line 143, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.8/runpy.py", line 110, in _get_module_details
__import__(pkg_name)
File "/home/berke/.local/lib/python3.8/site-packages/cfgrib/__init__.py", line 19, in <module>
from .cfmessage import CfMessage
File "/home/berke/.local/lib/python3.8/site-packages/cfgrib/cfmessage.py", line 29, in <module>
from . import messages
File "/home/berke/.local/lib/python3.8/site-packages/cfgrib/messages.py", line 44, in <module>
raise exc
File "/home/berke/.local/lib/python3.8/site-packages/cfgrib/messages.py", line 37, in <module>
from . import bindings as eccodes
File "/home/berke/.local/lib/python3.8/site-packages/cfgrib/bindings.py", line 57, in <module>
raise RuntimeError(f"ecCodes library not found using {LIBNAMES}")
RuntimeError: ecCodes library not found using ['eccodes', 'libeccodes.so', 'libeccodes']
My python version is Python 3.8.2. Is it possible to install cfgrib through pip?
The latest release of cfgrib version 0.9.8.5 at PyPI doesn't declare eccodes or pyeccodes as a dependency, not even as extra. You can install one of them separately:
pip install eccodes
or
pip install pyeccodes
(I don't know what is the difference; cfgrib can use both).
The bug is fixed in the repository but not yet released to PyPI so you can try to install the latest version using git:
pip install --upgrade "git+https://github.com/ecmwf/cfgrib.git#egg=cfgrib"

Error: "Traceback (most recent call last):"

I'm trying to install pip to my pycharm, I'm using Mac OS X version 10.11.1
I tried: pip install --upgrade pip
Then I get:
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2793, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 673, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 576, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==7.1.0
I'm stuck a few days.
Don't modify your system python. Instead, install a new version of python with pyenv. And then create a new env for each project use virtualenv or venv if you are using py3k.

ImportError: No module named 'jupyter_client'

I am trying to install RODEO on my debian jessie box. I've successfully pip installed rodeo and the installation was completed without any issues. However, when I type rodeo on the command line I am greeted with the following error message:
xxxxxx#yyyyy:~$ rodeo
/usr/local/lib/python3.4/dist-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead.
"You should import from ipykernel or jupyter_client instead.", ShimWarning)
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/rodeo/kernel.py", line 3, in <module>
from jupyter_client import BlockingKernelClient
ImportError: No module named 'jupyter_client'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/rodeo", line 9, in <module>
load_entry_point('rodeo==0.4.4', 'console_scripts', 'rodeo')()
File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 549, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2542, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2202, in load
return self.resolve()
File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2208, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.4/dist-packages/rodeo/cli.py", line 33, in <module>
from .rodeo import main
File "/usr/local/lib/python3.4/dist-packages/rodeo/rodeo.py", line 2, in <module>
from .kernel import Kernel
File "/usr/local/lib/python3.4/dist-packages/rodeo/kernel.py", line 5, in <module>
from IPython.kernel import BlockingKernelClient
File "/usr/local/lib/python3.4/dist-packages/IPython/kernel/__init__.py", line 31, in <module>
from ipykernel import comm, inprocess
ImportError: No module named 'ipykernel'
Could someone shed some light, as I have ipython installed. When searched for jupyter client in apt repos, I couldn't fine one. Any help would be appreciated.
IPython 4.0 has split into many packages, many of the notebook- and execution-related ones now being part of Jupyter.
If rodeo supports the 4.0 APIs, you can install these with:
pip install --upgrade jupyter
(Almost anything that worked with IPython 3 should work with IPython 4 and Jupyter, as long as the extra packages are installed. IPython includes shims for the imports that have moved.)
If that doesn't work, rodeo may require IPython 3.x for now. You can pin IPython to 3.x with:
pip install 'ipython[notebook]<4'

import error when trying to use pip command in ubuntu terminal

I just installed pip with ubuntu onto my laptop. Whenever I try to use pip in the terminal, I keep getting this error:
lopuj#lopuj-Dell-System-XPS-L502X:~$ pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 357, in load_entry_point
def get_entry_info(dist, group, name):
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 2394, in load_entry_point
break
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 2108, in load
name = some.module:some.attr [extra1,extra2]
ImportError: No module named 'pip'
lopuj#lopuj-Dell-System-XPS-L502X:~$ ^C
lopuj#lopuj-Dell-System-XPS-L502X:~$
How can I stop this from happening so i can just type in commands like 'pip install Django==1.7.1'?
Your referencing
usr/local
but pip is installed at
usr/lib
Check your installation. I would reinstall using esay_install and then open/close terminal.

Error installing Dynamic-DynamoDB using pip

I am completely newbie to Python and just trying to install Dynamic-DynamoDB python package on RHEL5 Linux for very first time. I didn't have pip on my system so I followed instructions as in asnwer to What is the official "preferred" way to install pip and virtualenv systemwide?
Now when I try to install dynamic-dynamoDB as mentioned in installing instructions, it gives me error.
pip install dynamic-dynamodb
Error
Traceback (most recent call last):
File "/usr/bin//pip", line 8, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/distribute-0.6.49-py2.4.egg/pkg_resources.py", line 345, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.4/site-packages/distribute-0.6.49-py2.4.egg/pkg_resources.py", line 2381, in load_entry_point
return ep.load()
File "/usr/lib/python2.4/site-packages/distribute-0.6.49-py2.4.egg/pkg_resources.py", line 2087, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.4/site-packages/pip/__init__.py", line 11, in ?
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/python2.4/site-packages/pip/vcs/mercurial.py", line 9, in ?
from pip.download import path_to_url2
File "/usr/lib/python2.4/site-packages/pip/download.py", line 3, in ?
import hashlib
ImportError: No module named hashlib
Any suggestions on what am I missing here?
I'm the author of Dynamic-DynamoDB. Sorry for a late answer, I wanted to answer anyway in case anyone else has the same problem later on.
The reason is that the Python version is too old. Dynamic DynamoDB supports Python >2.6.

Categories

Resources