There is no problem when I import IPython.parallel -->import IPython.parallel
However, when I try this:
rc=IPython.parallel.Client()
I get the following error:
/home/mycomputer/local/lib/python2.7/site-packages/IPython/utils/shimmodule.pyc in __getattr__(self, key)
90 return import_item(name)
91 except ImportError:
---> 92 raise AttributeError(key)
AttributeError: Client
Does anyone know the solution to this?
[I am using Ubuntu 14.04]
It might be a problem with IPython 4.0's shim. IPython.parallel has moved to a new package, ipyparallel, so if you are using 4.0:
import ipyparallel
rc = ipyparallel.Client()
It's possible that the failure is that you don't have ipyparallel, and you are getting an unfortunately uninformative failure instead of a nice, useful error message. In that case:
pip install --upgrade ipyparallel
(or conda install, depending on your Python packaging of choice).
Related
I have used pip install rdkit-pypi to install rdkit library. But when I type import rdkit as rd, it shows the error
ImportError: DLL load failed while importing rdBase: The specified module was not found.
I am using Anaconda as a base. What should I do to work with rdkit library?
I previously encountered this problem. After some reading, I came to know that the python version above 3.8.0 would not be compatible with rdkit. Even you need to change your base to rdkit.
I solve this by first downgrading the anaconda version with the python version lower than 3.8.0.
then I set my rdkit environment.
In this image u can see my python version and I'm not getting any error
In second image u can see my base to my-rdkit-envs
I get this error when trying to run a PyQt5 Application, I keep getting it and I think it's when I use pyuic5 to export code from QT Designer and then try to run it.
from .shiboken2 import *
ImportError: DLL load failed: The specified procedure could not be found.
I have used pip freeze to find the versions of shiboken2 and pyside2 and they are both the same version.
I installed Python 3.7 + And it works.
On import modin.pandas as modin_pd line I get ModuleNotFoundError: No module named 'modin'. I am using poetry & JupyterLab. If in the cell I type !poetry add modin, I get ValueError saying Package modin is already present.
So it cannot install modin because it is already installed but it cannot import it either. Any obvious solution that I am missing?
pip freeze command also shows modin to be installed. I also tried to install it via pip install but absolutely nothing let me to import this module in the end.
The problem may be this one KeyError: CPU
It can be solved by using pip install psutil
Using Virtualenv on Mac I have encountered the showing SyntaxError when I
import tensorflow
I tried many times uninstall but now working... please help me!
Tensorflow is not supported on Python 3.7. You'll need to use python3.6 or earlier.
async which was fine as a variable name in earlier versions of Python, is a keyword in Python 3.7. This is why it is failing to import.
I and trying to build something on python package cv2. My os is Mac OS X El Capitan and python version is python 2.7.10.
But when I import cv2 as
>>> import cv2
I get following error.
RuntimeError: module compiled against API version a but this version of numpy is 9
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: numpy.core.multiarray failed to import
I figured out that it is a problem of numpy version and I need to upgrade it. So I tried
sudo pip install numpy --upgrade
But system threw following error:
OSError: [Errno 1] Operation not permitted: '/tmp/pip-JSOF8d-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'
Then I tried to install a particular version of numpy (required version) using following command.
pip install numpy==1.8
Even this didn't work and I got following traceback error:
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
Now I am clueless, how to proceed. Please help me to figure this out.
Thanks in advance.
I was also facing the same issue, 2 things which solved my problem are
Run
pip install --ignore-installed numpy
run the above command in terminal, that is don't use setuptools.
But, it will upgrade to latest version of numpy, hope this resolves your problem. Its been quite tough for me to fix couple of el-capitan issues