importerror

Python console: ImportError PyUnicodeUCS4_FromString

限于喜欢 提交于 2019-12-24 15:39:37
问题 Can anyone help me to figure out what is happening and how to solve this error? The following message happens when I try to import a module I compiled before: Python 3.1.4 (default, Mar 8 2012, 09:13:26) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pypt Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /usr/local/lib/python3.1/site-packages/pypt.so: undefined symbol: PyUnicodeUCS4_FromString 来源: https

ImportError: No module named html.entities

戏子无情 提交于 2019-12-24 12:46:32
问题 I am new to python. I am using python 2.7.5. I want to write a web crawler. For that I have installed BeautifulSoup 4.3.2. I have installed it using this command(I haven't used pip) python setup.py install I am using eclipse 4.2 with pydev installed. When I try to import this library in my script from bs4 import BeautifulSoup I am getting this error ImportError: No module named html.entities Please explain me what should I do to rectify it. 回答1: Is there any reason why are you not using pip

Disable Import errors table in Ms Access

拜拜、爱过 提交于 2019-12-24 11:59:35
问题 Just to start with , I am not a very experienced programmer in Access. Is there any way I can disable the import error tables which are auto generated by access when you import files from excel ? The reason I want to do this is my excel file has about 4000 rows with data about different locations,now the location I have to do the reporting on is importing properly thats why I am not worried about about the import errors . Also, it only detects the error in one row and because I import the

Import error pycrypto google app engine

我只是一个虾纸丫 提交于 2019-12-24 11:37:48
问题 I'm running a local server in Python with GAE, and importing a 3rd party library, which in turn imports pycrypto. I installed it locally using pip and included it in my app.yaml file, but when I run the server, I get the following error: ImportError: cannot import name OSRNG Here's what my app.yaml looks like: runtime: python27 threadsafe: 1 handlers: - url: /.* script: main.app libraries: - name: pycrypto version: "latest" I'm running homebrew python 2.7. 回答1: The pycrypto library is built

tensorflow object detection API ImportError when generating PASCAL TFRecord files

牧云@^-^@ 提交于 2019-12-24 08:29:39
问题 I'm trying to use the Tensorflow Object Detection API and I've successfully tested the installation,but we I try to generate the PASCAL VOC TFRecord files with the given command python object_detection/create_pascal_tf_record.py \ --label_map_path=object_detection/data/pascal_label_map.pbtxt \ --data_dir=VOCdevkit --year=VOC2012 --set=train \ --output_path=pascal_train.record I encountered the following error: Traceback (most recent call last): File "object_detection/create_pascal_tf_record

AppEngine mapper API import error

喜你入骨 提交于 2019-12-24 07:10:58
问题 EDIT: I just gave it a go on appengine itself and it seems like it actually works there, so the problem is just with the dev server. I would still be interested in understanding why this is happening... I am using the AppEngine mapper API (mapreduce) and am having a problem with imports. Here is my file structure: ├── [ost 12] app.yaml -> src/app.yaml ├── [ost 4096] doc ├── [ost 615] fabfile.py ├── [ost 18] gae -> /home/ost/dev/gae/ ├── [ost 70] INFO ├── [ost 0] LICENSE ├── [ost 5] README ├──

Heroku - Django: Had to change every mentioning of `myproject` into `app` to get my site working. How to best avoid this in the future?

本秂侑毒 提交于 2019-12-24 00:59:28
问题 I just ran my website made with Django1.3 for the first time on Heroku. I had to change every mentioning of myproject into app (such as import myproject.core.views into import app.core.views in urls.py ) in order to make my website run without an importError . I figure either: I change the Heroku directory ( $ heroku run pwd ouputs /app ) /app into /myproject . How do I do this? Use a general prefix. How would I would I do this the best way? I should push my project from a directory lower?

ImportError shows up with py.test, but not when running the app

亡梦爱人 提交于 2019-12-23 20:22:14
问题 Unlike in this question: Importing modules from a sibling directory for use with py.test I can import something from my app, but there's an import error (looking like a circular dependency) that raises from 'inside' myapp while running the test and not when running myapp alone: $ python3 myapp/myapp.py Some dummy string (correct output) But: $ python3 -m pytest ================================================================= test session starts ===============================================

Python import error :No module named Fabric.api?

给你一囗甜甜゛ 提交于 2019-12-23 18:39:09
问题 I am getting the following error: Traceback (most recent call last): File "drayd.py", line 2, in <module> from fabric.api import * **ImportError: No module named fabric.api** I am runnign my program using: python drayd.py These are my imports : import os,pprint from fabric.api import * import time import argparse import ConfigParser I dont have a file named fabric as other answers solution was, I installed fabric using pip but it still doesnt work,any suggestions? I am using the OSX Terminal.

Embedding python in C, undefined symbol: PyExc_ImportError

杀马特。学长 韩版系。学妹 提交于 2019-12-23 14:21:33
问题 I am trying to write a plug-in for Audacious Media Player that loads a python module. The python embedding code is from the python-2.6 source(embed/Demo). This compiles with the command line, gcc -o demo demo.c -lpython2.6 -lm -L/usr/lib/python2.6/config I added -lpython2.6 -lm -L/usr/lib/python2.6/config to the CC args. And it loads a Python script which imports pygtk and gtk modules, this works fine. But after I compile the plug-in(a shared library) the following error occurs(this is not