I want to import stackauth but I'm not sure how to install it
>>> import stackauth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named stackauth
In this case you can use easy_install, as specified by the instructions
easy_install py-stackexchange
Related
I tried to install wmi in my system which is running with python2.7.12.
installed WMI using pip : pip install wmi
But it shows below error
>>> import wmi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/wmi.py", line 88, in <module>
from win32com.client import GetObject, Dispatch
ImportError: No module named win32com.client
>>>
Then, I tried to install win32 python module. But its failed with "ImportError: No module named _winreg".
Full error message:
root#srv1:/home/srv1/Downloads/pywin32-220# python setup.py install
Traceback (most recent call last):
File "setup.py", line 82, in <module>
import _winreg
ImportError: No module named _winreg
root#srv1:/home/srv1/Downloads/pywin32-220#
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?
I can`t use the pyfcm module because of bellow error message.
How do I fix this error??
>>> from pyfcm import FCMNotification
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from pyfcm import FCMNotification
File "C:\Anaconda3\lib\site-packages\pyfcm\__init__.py", line 6, in <module>
from .fcm import FCMNotification
File "C:\Anaconda3\lib\site-packages\pyfcm\fcm.py", line 1, in <module>
from baseapi import BaseAPI
ImportError: No module named 'baseapi'
If you are running Linux, try running this command in the shell: pip install baseapi.
If you are using an IDE, look for a prompt asking if you want to install this package.
I am running Python 3.4
Did pip install json2html with no errors.
However, when I execute "import json2html" I got:
>>> import json2html
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python34\lib\site-packages\json2html-0.3-py3.4.egg\json2html\__init__.py", line 6, in <module>
ImportError: No module named 'jsonconv'
>>>
please help suggest..
It seems this library is not python3-compatible.
Error was caused by this line in the __init__.py file:
from jsonconv import *
While, instead, it should be:
from .jsonconv import *
Try this fork instead: https://github.com/YAmikep/json2html
Someone knows why I get the following error?
>>> from Bio.Phylo.TreeConstruction import DistanceCalculator, DistanceTreeConstructor
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
import Bio.Phylo.TreeConstruction
ImportError: No module named TreeConstruction
And also:
>>> from Bio.Phylo.Consensus import *
Traceback (most recent call last):
File "<pyshell#9>", line 1, in <module>
from Bio.Phylo.Consensus import *
ImportError: No module named Consensus
Thanks to all for you time =)
Ok. Fixed!
The problem was that in the python IDLE, the version of biopython was 1.63, whereas the code
>>>from Bio.Phylo.TreeConstruction import DistanceCalculator, DistanceTreeConstructor
works nice for version 1.65. So, the solution was delete the folder where biopython 1.63 was installed and download and later (re)install the biopython 1.65.