importerror

Heroku Python/Django applications all simultaneously developed ImportError

眉间皱痕 提交于 2020-01-13 08:10:30
问题 Today all my Python/Django applications on Heroku stopped working. The logs for all of them show the same issue. When trying to restart/build, the error log is as shown below. I have tried rebuilding the projects in a new local virtual environment, and they work fine locally. However, when pushing them to Heroku, they encounter this ImportError and refuse to deploy. Similarly, when I try to restart the existing applications, I see the same error logged prior to the instance crashing. Please

Pandas installation on Mac OS X: ImportError (cannot import name hashtable)

我是研究僧i 提交于 2020-01-12 13:42:46
问题 I would like to build pandas from source rather than use a package manager because I am interested in contributing. The first time I tried to build pandas, these were the steps I took: 1) created the virtualenv mkvirtualenv --no-site-packages pandas 2) activated the virtualenv 3) installed Anaconda CE. However, this was installed in ~/anaconda. 4) cloned pandas 5) built C extensions in place (pandas)ems ~/.virtualenvs/pandas/localrepo/pandas> ~/anaconda/bin/python setup.py build_ext --inplace

Java : The import collides with another import statement

爷,独闯天下 提交于 2020-01-11 18:49:59
问题 I have imported an Existing Java Application into my Workspace . I see that , a class with same name is present in different packages with in the Application. For example a class named "Status.java" is present with in com.tata.model.common.Status; com.bayer.frontlayer.dao.Status; When I tried to use both of them within a class, for example as shown below import com.tata.model.common.Status; import com.bayer.frontlayer.dao.Status; public class Adapter { } It started giving an error in Eclipse

Python ImportError: no module named os

那年仲夏 提交于 2020-01-11 09:39:26
问题 Trying to upgrade matplotlib as in this post, I ran export PYTHONHOME=/usr/lib/python2.7/ sudo easy_install -U distribute sudo pip install --upgrade matplotlib Now whenever I try to run python I get ImportError: no module named os . What happened? Please help me. I'm on OS X 10.9.5. 回答1: The issue was changing PYTHONHOME , which could not find any modules because I have python running out of a user directory /Users/alavin89/Library/Python/2.7/lib/python/site-packages . Check the python path

IronPython ImportException: No module named logging

雨燕双飞 提交于 2020-01-11 03:06:10
问题 I got ironpython working fine on mono, but it doesn't import the logging module. Executing this code: ScriptEngine engine = Python.CreateEngine(); dynamic logging = engine.ImportModule("logging"); yields the following error: IronPython.Runtime.Exceptions.ImportException: No module named logging The IronPython assemblies I have included are up-to-date: IronPython.Modules.dll, Microsoft.Dynamic.dll, Microsoft.Scripting.dll, Microsoft.Scripting.Metadata.dll. How can I make use of the logging

How to use OpenCV in Python?

别等时光非礼了梦想. 提交于 2020-01-09 09:10:09
问题 I have just installed OpenCV on my Windows 7 machine. As a result, I get a new directory: C:\OpenCV2.2\Python2.7\Lib\site-packages In this directory, I have two files: cv.lib and cv.pyd . Then I try to use the opencv from Python. I do the following: import sys sys.path.append('C:\OpenCV2.2\Python2.7\Lib\site-packages') import cv As a result I get the following error message: File "<stdin>", line 1, in <module> ImportError: DLL load failed: The specified module could not be found. What am I

ImportError: cannot import name memoize

独自空忆成欢 提交于 2020-01-06 21:12:09
问题 I have a little problem with project upgrade from Django 1.7.1 to 1.9.0. Every 'RemovedInDjango20Warning' has been fixed, but one thing still left and I don't know how to deal with it. When I'm trying to visit any page, there is always an ImportError like: **TemplateSyntaxError at /auth/** 'crispy_forms_tags' is not a valid tag library: ImportError raised loading crispy_forms.templatetags.crispy_forms_tags: cannot import name memoize*** I have included {% load crispy_forms_tags %} in my

Cannot Read numpy From libpgm

扶醉桌前 提交于 2020-01-06 19:25:06
问题 I installed libpgm1.3. The documentation of libpgm1.1 is here: http://pythonhosted.org/libpgm/index.html (I could not find any documentation of 1.3). Then executed the code below. import numpy import libpgm import libpgm.pgmlearner The console gave me an error message. File "test_libpgm.py", line 3, in <module> import libpgm.pgmlearner File "/usr/local/lib/python3.5/dist-packages/libpgm/pgmlearner.py", line 35 raise ImportError, "numpy is not installed on your system." ^ SyntaxError: invalid

Cannot Read numpy From libpgm

梦想与她 提交于 2020-01-06 19:25:06
问题 I installed libpgm1.3. The documentation of libpgm1.1 is here: http://pythonhosted.org/libpgm/index.html (I could not find any documentation of 1.3). Then executed the code below. import numpy import libpgm import libpgm.pgmlearner The console gave me an error message. File "test_libpgm.py", line 3, in <module> import libpgm.pgmlearner File "/usr/local/lib/python3.5/dist-packages/libpgm/pgmlearner.py", line 35 raise ImportError, "numpy is not installed on your system." ^ SyntaxError: invalid

MS Access setting to ignore date conversion error

我是研究僧i 提交于 2020-01-06 08:55:27
问题 An Access DB imports a fixed width text file; one column is mostly dates. When the date is not available, the file's creator actually uses the string "Null" Access puts the row in the table with that field actually null. But, when the files started coming with different field widths, I copied the DB, tweaked the starting/width values in the input spec, and imported. NOW, all the rows with null get logging in (table)_import_errors as an error converting text to date. I have found no setting