ImportError: No module named alchemyapi (python) - python

I've gone through the guide yet I still seem to get the following error:
Traceback (most recent call last):
File "C:\Users\KVadher\Desktop\test.py", line 782, in <module>
from alchemyapi import AlchemyAPI
ImportError: No module named alchemyapi
The example works fine, but when I try:
from alchemyapi import AlchemyAPI
I get the above "no module named alchemyapi" error. Is there a pip install I should do in order to install Alchemy properly?

You have to go inside alchemyapi_python's folder to make the import work.

Related

Getting error while importing win32com module

I installed the pywin32 module in my system. But when I import the "win32com" module getting the error as shown below.
Error:-
Traceback (most recent call last):
File "C:\Users\Lenovo\Desktop\script.py", line 1, in <module>
import win32com.client
ModuleNotFoundError: No module named 'win32com'
any idea on this
Try install: pip install pypiwin32

ModuleNotFoundError: No module named '_curses'

I am using windows and would like to use the curses package,I installed it with the command:
pip install windows-curses
but when I try to import curses
it gives an eror from the python source file
__init__.py
here's the eror:
C:\Users\user\PycharmProjects\snake\venv\Scripts\python.exe C:/Users/user/AppData/Local/Programs/Python/Python39/Lib/curses/__init__.py
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\Lib\curses\__init__.py", line 12, in <module>
from _curses import *
ModuleNotFoundError: No module named '_curses'
Can someone please help me fix it?

How to "import pjsua" in python on MAC

Am using python 2.7 and got error like "ImportError: No module named _pjsua" while using "import pjsua". I refered and tried some solution but no luck on those solutions.
pjsua: unable to import pjsua python module
Traceback (most recent call last):
File "", line 1, in
File "pjsua.py", line 59, in
import _pjsua
ImportError: No module named _pjsua

ImportError: No module named 'version' during installation

I'm trying to install SMOP on Anaconda3 (Python 3.5.1), but it fails due to the following error:
[Anaconda3] C:\Users\IanHacker\Downloads\smop-0.29>python setup.py install
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from smop.version import __version__
File "C:\Users\IanHacker\Downloads\smop-0.29\smop\__init__.py", line 4, in <module>
import version
ImportError: No module named 'version'
"pip install smop" and "easy_install smop" return the same error.
I referred to ImportError: No module named 'version', so I changed the content of __init__.py:
import version
import parse,resolve,backend,main
from version import __version__
to:
__version__ = '0.29'
import parse,resolve,backend,main
... then, I got:
[Anaconda3] C:\Users\IanHacker\Downloads\smop-0.29>python setup.py install
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from smop.version import __version__
File "C:\Users\IanHacker\Downloads\smop-0.29\smop\__init__.py", line 6, in <module>
import parse,resolve,backend,main
ImportError: No module named 'parse'
I don't even know if the __version__ issue has been solved.
Even if it has been solved, I don't know what to replace "parse" with.
And ... do I have to keep replacing until this works? Is there any better way to solve this?
*For those who installed Anaconda, could you try to run the command and check if the same error happens? Am I the only one who gets this error?

ImportError: No module named fabric

I am new to mysql fabric. I am getting the following error:
root#ajith-System-Product-Name:/home/ajith# mysqlfabric
Traceback (most recent call last):
File "/usr/bin/mysqlfabric", line 33, in <module>
from mysql.fabric import (
ImportError: No module named fabric
I installed mysql-connector-python_2.1.3, mysql-utilities_1.5.6, and python2.7.
Your from statement should use mysqlfabric, not mysql.fabric, as far as I can tell.

Categories