importerror

ImportError: No module named transport (Paramiko, Python 3.2.5)

為{幸葍}努か 提交于 2019-12-10 20:36:07
问题 I installed PyCrypto and Paramiko (in their respective directories) with python3 setup.py install and both were installed successfully. However, when I try import paramiko in the 3.2.5 interpreter, I get this error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/paramiko/__init__.py", line 64, in <module> from transport import SecurityOptions, Transport ImportError: No module named

PyDev: Undefined variable from import: __name__

狂风中的少年 提交于 2019-12-10 19:36:35
问题 I use regularly the __name__ property of classes in my code (which works perfectly in Python) but PyDev is always marking it as an error ( Undefined variable from import ). I tried to add the __name__ to the bulletin imports but this did not remove the problem. When I use auto completion, PyDev finds a __class__ property when typing a . behind a class which is wrong. But if I use __class__ property anyway, PyDev finds the __name__ property. Is there any bug in PyDev that has to do with mixing

py2exe ImportError

[亡魂溺海] 提交于 2019-12-10 18:56:44
问题 I read the py2exe tutorial and successfully convert my python code to a running exectuable. But when i tried to run it on another computer that dont have python installed , i get the following error: Traceback (most recent call last): File "C:\Program_Files\Pyton2_7_2\lib\site-packages\py2exe\boot_common.py", line 92, in ImportError: No module named linecache Traceback (most recent call last): File "auto_create_workspace.py", line 1, in ImportError: No module named subprocess On my computer ,

ImportError: cannot import name _aligners [biopython]

情到浓时终转凉″ 提交于 2019-12-10 18:55:50
问题 I am doing bioinformatics that has biopython dependency. Biopython always give me the following error: I hope someone could help me with this issue. Thank you! 回答1: This can occur on Biopython version >= 1.72 and has been discussed on the biopython mailing list here. This error occurs when you try and import while inside the biopython/ directory, to fix the error simply move to another directory outside the source tree and then execute your code. If the error still occurs then likely the

Python can't find local module

风格不统一 提交于 2019-12-10 18:13:05
问题 I have a folder structure like this: setup.py core/ __init__.py interpreter.py tests/ __init__.py test_ingest.py If I try to import core in test_ingest.py and run it, I get an ImportError saying that the core module can't be found. However, I can import core in setup.py without an issue. My IDE doesn't freak out, so why is this error occurring? 回答1: When you import your package, Python searches the directories on sys.path until it finds one of these: a file called "core.py", or a directory

Facing problem while importing org.ksoap2.SoapEnvelope

纵然是瞬间 提交于 2019-12-10 17:56:42
问题 Am working with web service. Got some sample code from internet. Got some error while importing import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.AndroidHttpTransport; Not able to proceed .Can any one help me. Thanks in advance 回答1: you havnt added the ksoap jar file in your project, add library first get it from HERE or http://sourceforge.net/projects/ksoap2/ 回答2: Steps to add

import error: ephem/_libastro.so undefined symbol: PyUnicodeUCS2_AsUTF8String

对着背影说爱祢 提交于 2019-12-10 16:56:32
问题 I just successfully installed PyEphem using pip in a pyenv. However, on import I receive: ImportError: /python2.7/site-packages/ephem/_libastro.so: undefined symbol: PyUnicodeUCS2_AsUTF8String In looking around I've seen it mentioned that some modules are built "against Python" in regards to Unicode and suggest recompiling. I'm quite new to Python and Ubuntu 14.04, and although I believe this is the answer to my issue, I do not know what recompiling means or how to do it. 回答1: The symbol

java import error “the type android.widget.Filter.FilterResults is not visible”

北慕城南 提交于 2019-12-10 16:36:19
问题 This question was already asked: the type android.widget.Filter.FilterResults is not visible But there was no clear answer, and now I'm getting the same problem. In that discussion there was something mentioned about variables being marked as final when they shouldn't be for the getFilter... Well, here is my code: package com.example.project; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Locale; import android.app.Activity; import

Matplotlib: Import Error no module named _path

好久不见. 提交于 2019-12-10 16:23:33
问题 I've been struggling for hours on a problem that is making me insane. I installed Python 2.7 with Cygwin and added Scipy, Numpy, Matplotlib (1.4.3) and Ipython. When I decided to run ipython --pylab I get the following error: /usr/lib/python2.7/site-packages/matplotlib/transforms.py in <module>() 37 import numpy as np 38 from numpy import ma ----> 39 from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox, 40 update_path_extents) 41 from numpy.linalg import inv

Python: ImportError from compiled source code

给你一囗甜甜゛ 提交于 2019-12-10 15:54:06
问题 I'm having problems while running a compiled source code. The code itself is correct and if I run python file.py everything goes fine; if I compile it with pyinstaller or software like this, and then I run the compiled file it says ImportError: No module named _cffi_backend . But when I open python and import cffi and/or _cffi_backend python doesn't show error. Investigating in my code I found that the problem is just with padding from cryptography, so if I don't import padding the output