importerror

Import error for icu in Mac and Ubuntu, although pyicu is installed correctly

别来无恙 提交于 2019-12-23 03:22:03
问题 I have pyicu installed in both MacOS and Ubuntu 14.04 but it shows ImportError upon importing. For MacOS high sierra output is: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/siddharthdas/venvs/chai/lib/python3.6/site-packages/icu/__init__.py", line 37, in <module> from _icu import * ImportError: dlopen(/Users/siddharthdas/venvs/chai/lib/python3.6/site-packages/_icu.cpython-36m-darwin.so, 2): Symbol not found: __ZNK6icu_6114Transliterator12getTargetSetERNS

Import error for icu in Mac and Ubuntu, although pyicu is installed correctly

非 Y 不嫁゛ 提交于 2019-12-23 03:21:04
问题 I have pyicu installed in both MacOS and Ubuntu 14.04 but it shows ImportError upon importing. For MacOS high sierra output is: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/siddharthdas/venvs/chai/lib/python3.6/site-packages/icu/__init__.py", line 37, in <module> from _icu import * ImportError: dlopen(/Users/siddharthdas/venvs/chai/lib/python3.6/site-packages/_icu.cpython-36m-darwin.so, 2): Symbol not found: __ZNK6icu_6114Transliterator12getTargetSetERNS

ImportError: cannot import name unwrap

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 03:13:35
问题 I have installed scrapy with pip install scrapy . But in python shell I am getting an ImportError: >>> from scrapy.spider import Spider Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/scrapy/__init__.py", line 56, in <module> from scrapy.spider import Spider File "/usr/local/lib/python2.7/dist-packages/scrapy/spider.py", line 7, in <module> from scrapy.http import Request File "/usr/local/lib/python2.7/dist-packages/scrapy

python setuptools: ImportError: cannot import name Library

不羁的心 提交于 2019-12-22 18:45:11
问题 I have a Windows 7 64bit machine and want to install the python package mgrs. I have tried using both easy_install and running python setup.py install in the mgrs directory. Easy_install gives me the error below. C:\Users\farrell>easy_install mgrs Searching for mgrs Reading https://pypi.python.org/simple/mgrs/ Best match: mgrs 1.1.0 Downloading https://pypi.python.org/packages/source/m/mgrs/mgrs-1.1.0.tar.gz#md5 =96e0c00f16d86a3f8b84c2c46cb68b8e Processing mgrs-1.1.0.tar.gz Writing c:\users

jython ImportError: No module named

喜你入骨 提交于 2019-12-22 14:59:25
问题 I'm new to jython and failing utterly at importing a java class within a jar. What I am trying to do is write a wrapper shell script which calls a jython script. I can not allowed to edit the jython at all, so adding jars to sys.path within that jython script is not possible. Error y", line 17, in from com.polarland.testModule.cache import CacheInterface ImportError: No module named polarland I've added the jar which contains the above package with name of TestModule.jar to PATH, ClASSPATH

More on python ImportError No module named

二次信任 提交于 2019-12-22 10:39:39
问题 Following the suggestion here, my package (or the directory containing my modules) is located at C:/Python34/Lib/site-packages. The directory contains an __init__.py and sys.path contains a path to the directory as shown. Still I am getting the following error: Traceback (most recent call last): File "C:/Python34/Lib/site-packages/toolkit/window.py", line 6, in <module> from catalogmaker import Catalog File "C:\Python34\Lib\site-packages\toolkit\catalogmaker.py", line 1, in <module> from

ImportError: No module named numpy - Google Cloud Dataproc when using Jupyter Notebook

一世执手 提交于 2019-12-22 10:36:42
问题 When starting Jupyter Notebook on Google Dataproc, importing modules fails. I have tried to install the modules using different commands. Some examples: import os os.sytem("sudo apt-get install python-numpy") os.system("sudo pip install numpy") #after having installed pip os.system("sudo pip install python-numpy") #after having installed pip import numpy None of the above examples work and return an import error: enter image description here When using command line I am able to install

Python ImportError for strptime in spyder for windows 7

为君一笑 提交于 2019-12-22 04:42:31
问题 I can't for the life of me figure out what is causing this very odd error. I am running a script in python 2.7 in the spyder IDE for windows 7. It uses datetime.datetime.strptime at one point. I can run the code once and it seems fine (although I haven't finished debugging, so exceptions have been raised and it hasn't completed normally yet), then if I try running it again I get the following (end of traceback only is shown): File "C:\path\to\test.py", line 220, in std_imp self.data[key]

ImportError: cannot import name signals

…衆ロ難τιáo~ 提交于 2019-12-22 04:37:18
问题 I'm using Django 1.3.0 with Python 2.7.1. In every test I write the following imports I get the importError above: from django.utils import unittest from django.test.client import Client The full stack trace: File "C:\Program Files (x86)\j2ee\plugins\org.python.pydev.debug_1.6.3.2010100513\pysrc\runfiles.py", line 342, in __get_module_from_str mod = __import__(modname) File "C:/Users/benjamin/workspace/BookIt/src/BookIt/tests\basic_flow.py", line 11, in from django.test.client import Client

ImportError: No module named httplib2

99封情书 提交于 2019-12-22 04:35:38
问题 I have a Python 2.7 GAE app that already has a lot of functionality. Now I want to integrate with a Google API. Within my IDE (PyCharm) running on Mac OSX, I added the following lines to my app's main program: import httplib2 pass When I COMMAND-click "httplib2", the IDE opens "httplib2-0.8-py2.7.egg/httplib2/ init.py " in an editor panel, so the IDE apparently knows where httplib2 is. But running the app, I get the error shown in the title. To test further, I put breakpoints on both