importerror

Cannot import matplotlib.pyplot in python 3

a 夏天 提交于 2019-12-08 09:42:26
I followed the instructions to install matplotlib for python 3 from here: How to install matplotlib with Python3.2 But I get an ImportError, which I have not been able to resolve, when importing pyplot: >>> import matplotlib >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.2/dist-packages/matplotlib-1.4.x-py3.2-linux-i686.egg/matplotlib/pyplot.py", line 98, in <module> _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "/usr/local/lib/python3.2/dist-packages/matplotlib-1.4.x

ImportError: No module named 'fabric.contrib'

冷暖自知 提交于 2019-12-08 09:12:27
问题 Fabric 2.0.1 Errors out when running my project that calls out fabfile.py. Im on Python 3.5.1. Does anyone know why is this happening? Traceback (most recent call last): File ".bootstrap/_pex/pex.py", line 367, in execute File ".bootstrap/_pex/pex.py", line 293, in _wrap_coverage File ".bootstrap/_pex/pex.py", line 325, in _wrap_profiling File ".bootstrap/_pex/pex.py", line 410, in _execute File ".bootstrap/_pex/pex.py", line 468, in execute_entry File ".bootstrap/_pex/pex.py", line 486, in

python & suds “ImportError: cannot import name getLogger”

你离开我真会死。 提交于 2019-12-08 06:45:51
问题 I'm using Ubuntu 11.04 (natty). I have been using Suds to consume a SOAP web service. Everything was working fine... until it wasn't. I can no longer import Suds. I've uninstalled and re-installed Suds from the Ubuntu repositories but still get the same import error (see IDLE traceback below). I'm using Python 2.7.1 and Suds 0.4.1-2. Does anyone have any ideas on how to solve this problem?? >>> import suds Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> import suds

Cannot import matplotlib.pyplot in python 3

Deadly 提交于 2019-12-08 04:53:00
问题 I followed the instructions to install matplotlib for python 3 from here: How to install matplotlib with Python3.2 But I get an ImportError, which I have not been able to resolve, when importing pyplot: >>> import matplotlib >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.2/dist-packages/matplotlib-1.4.x-py3.2-linux-i686.egg/matplotlib/pyplot.py", line 98, in <module> _backend_mod, new_figure_manager, draw

sklearn 0.17.1: ImportError: cannot import name inplace_column_scale

我只是一个虾纸丫 提交于 2019-12-08 04:09:01
问题 My sklearn works well before, after installing and updating a couple of other packages, I cannot import any model from sklearn. The versions: Python 2.7.12 Anaconda 2.4.1 (x86_64) sklearn: 0.17.1 (downgrade from 0.18) spicy: 0.18.1 Measures I've tried: restart the shell---> same error uninstall sklearn, and reinstall it (the newest version is 0.18), downgrade it to 0.17--> same error install sklearn and keep the version 0.18 -->still error My code: from sklearn import svm The error Traceback

Module 'main' has no attribute application — Google App Engine Python with Django

不想你离开。 提交于 2019-12-08 03:50:44
问题 I have been running into this problem for a short while now and simply can't find a solution anywhere. I am using Google App Engine to run a default Python 2.7 app with Django 1.5 (via GAE SDK) created through PyCharm. I can upload the app successfully, but upon visiting the actual page, I get a Server Error. Then, checking the logs in Google App Engine, I see this: ImportError: <module 'main' from '/base/data/home/apps/s~eloquent-ratio-109701/1.388053784931450315/main.pyc'> has no attribute

Matplotlib import error ft2font

拈花ヽ惹草 提交于 2019-12-08 03:43:45
问题 I have Python 2.7.6 installed under Canopy on a 64 bit Mac with Ipython version 2.1.0. This is a really odd problem and I'm not sure if it is a path file problem. Whenever I import matplotlib.pyplot (not just matplotlib), I receive the following error: In [2]: import matplotlib.pyplot as plt --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-2-eff513f636fd> in <module>() ----> 1 import matplotlib.pyplot as

Cannot import MySQLdb - python - Windows 8.1

送分小仙女□ 提交于 2019-12-08 03:33:23
问题 I am trying to import MySQLdb in python. I checked and followed all possible solutions but I am still not able to import it. I have Windows 8.1. So I started fresh, I installed the latest version of python (2.7.8), set the path and pythonpath variables, and then tried installing the MySQL-python-1.2.5.win-amd64-py2.7 from the link (https://pypi.python.org/pypi/MySQL-python/) This is the error I get >>> import MySQLdb Traceback (most recent call last): File "<stdin>", line 1, in <module>

ImportError: cannot import name stubs for Google App Engine GAE Init Quick Start & Tutorial

邮差的信 提交于 2019-12-07 20:31:51
问题 Running into this error when trying quick start "hello" on gae-init ERROR 2017-10-04 21:16:02,378 wsgi.py:263] Traceback (most recent call last): File "/Users/anon/Desktop/Hacking/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/Users/anon/Desktop/Hacking/google-cloud-sdk/platform/google_appengine/google/appengine/api/lib_config.py", line 351, in __getattr__ self._update

cx_freeze ImportError when executing file

流过昼夜 提交于 2019-12-07 19:39:10
问题 The program is designed to capture the title bar of the users foreground window and append that title along with the datetime to a log file. When I run this code on my computer it works, however when I run the executable on another computer I get the error you can see below: Python file: from win32gui import GetForegroundWindow, GetWindowText from datetime import datetime from time import sleep from os.path import join log_path = r'C:\Office Viewer\OV_Log.txt' while True: window_name =