why am i getting error in manpy package installation - python

I tried to install the manpy package which is a part of dream project from their github repository (https://github.com/nexedi/dream) with anaconda prompt. But after the installation is finished and I try to open it in Jupiter notebook by running the code: from dream.Simulation.Queue import Queue I am getting the error of no module named CoreObject.
error

Related

installing pip offline got error "no module named 'setuptools' "

Hi I've been trying to install python and all of my depedencies with "offline mode".
i've downloaded manually from the machine that has internet.
I installed python v3.10
Now I'm trying to install pip-22.2.2, but i got an error that says :
ModuleNotFoundError :No module named 'setuptools'
My command is :
python setup.py install
My directory is :
Python : .../.../Python/Python310
Pip : .../.../Python/Python310/pip-22.2.2
I'm on windows 10
If you are getting an error that says "No module named 'setuptools'", it means that you are missing the setuptools module, which is required for the installation of pip. You can download the setuptools module from https://pypi.org/project/setuptools/#files. After downloading, you can install the module by running the command python setup.py install

Spyder Console databricks not defined error

In anaconda spyder, I installed databricks-cli as below
pip install databricks-cli
After installation in c:\programdata\anaconda3\Scripts, databricks.exe is showing up; but, when I run command (databricks -version), it displays below error
NameError: name 'databricks' is not defined
Could you please advise?

Import ldap in python gives gives "DLL load failed" error

I'm using the "import ldap" in a python code. This is on a windows 10 machine.
I installed the python-ldap module
pip3 install python-ldap
Installed the dependencies based on the instructions at Python Can't install packages
Also resolved all the pip deployment issues based on Installing python-ldap in a virtualenv on Windows
I'm now getting the following error when executing the import ldap statement. am I missing something here? Any ideas to resolve it?
thon39\site-packages\ldap\__init__.py", line 34, in <module>
import _ldap
ImportError: DLL load failed while importing _ldap: The specified module could not be found.
Visit the unofficial Python binaries page:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap
Download the appropriate WHL package for your system.
For example, if you're using Python 3.8 on an x64 system, download python_ldap‑3.3.1‑cp38‑cp38‑win_amd64.whl
(hint: do NOT download the +sasl version unless you have the Cyrus SASL code running on your system...)
Start the VirtualEnv for your project, if you're using one (C:\Users\youruser\.virtualenv\YourVirtualEnv\Scripts\activate.bat) -- if you're not, skip this step.
Then run pip3 install C:\Path\To\python_ldap_x.x.x-cpXX-cpXX-winXX.whl and this should install the Python DLL (pyd) file for you.

Package already installed but getting error like No module name "plspm" in Python?

I have started getting this error for a "plspm" module in python which is part of R library after I 'conda install plspm' on my windows 10 OS. Installation has been done properly but i could not able to import plspm in python getting "No module" error. Please anyone help me to resolve.Thanks.
version of r-plspm is -0.4.9
needed packages already installed(scipy,skit-learn,pandas,numpy,statsmodule).
command used to install:
conda install -c conda-forge r-plspm
Screen shot of installed plspm:
Error:

I cannot import a python submodule after successful installation of the module

I am trying to install the python submodule ANCA in my mac, for which I have run the following:
pip install git+https://github.com/acadev/anca.git
getting the following:
.
.
.
Installing collected packages: anca
Running setup.py install for anca ... done
Successfully installed anca-0.1.5
I have miniconda installed in my computer, and I have checked that the module and its files and dependencies are correctly located in /usr/local/miniconda2/lib/python2.7/site-packages/anca
When I import anca in my notebook it does not give me any error, but if I try to import a submodule it gives me the following error:
from anca import IterativeMeansAlign
ImportError: cannot import name IterativeMeansAlign
It is the same with other submodules, but all of them are apparently well installed with all their files.
I have also tried to install the package using Git:
git clone https://github.com/acadev/anca.git
sudo python setup.py install
with the same result.
Note: 'locate' is not able to locate the module anca unlike the rest of the python modules although I can see all the files in the right location. It is the first time this happens to me.
Thanks a lot for your help,
any suggestion will be very appreciated.

Categories