importerror

trunk works tag doesn't? ---ImportError: No module named 2.1.2

Very confused. In my workspace, the trunk works fine when I do a: python ./manage.py runserver 9090 However when I tag it @ 2.1.2 and then check it out clean from the repository to a temporary directory on my desktop.. I get the following error: Traceback (most recent call last): File "./manage.py", line 33, in execute_manag...

Can't import scriptext module in PyS60 2.0 on N95

When I try and import scriptext on PyS60 version 2.0 on my N95 phone, I get an import error saying that there is no module named scriptext. How can I work out what the problem is? ...

Can't import sun.org.mozilla.javascript.internal in NetBeans

In my java program I make heavy use of Suns implmentation of the Rhino script engine. Very recently however, my JDK does not seem to automatically import the rt.jar file anymore when compiling. Whats strange is that NetBeans reports 0 live errors, they only show up when doing a complete Clean & Build. This wasn't happening before when I...

Django: ImportError: No module named ?z?

Hi I am trying to deploy a django app with uwsgi. I keep getting Import Errors that look like this: ImportError: No module named ?z? -or- ImportError: No module named ?j? -or- ImportError: No module named `?6 So basically the output of the module seems like gibberish and I am unable to figure out the problem. Does anybody have an i...

ImportError: [libraryname].so: undefined symbol: [function name]

I'm extending my Python program with a C module that uses the GstPhotography interface for GStreamer. My C module compiles fine, but when I try running it from Python, I get this error: $python Program.py Traceback (most recent call last): File "Program.py", line 10, in <module> import MyPythonClass File "/path/MyPythonClass....

Why am I encountering an ImportError when I try to 're-import' a module?

I have a series of python modules written which are held in the same directory and I am having trouble with an ImportError. The three modules I am using are draw_menu.py, errors.py and file_operations.py. In errors.py I requires a list of error codes, I am using a custom method defined in file_operations.py to open a file containing th...

When Trying to Import Old Visual FoxPro Database into SQL receiving "Cannot find column -1"

I have a ton Visual FoxPro db files that I am trying to import into an empty SQL 2008 Express database. When I run through the SQL Import and Export Wizard everything seems to communicate fine. When I get to the mappings section I can click on preview and see the data in the selected FP table. When I click on Edit Mappings or Next I g...

Cannot import "logging" module using Jython in embedded Jetty -> ImportError: no os specific module found

I'm trying to use Jython (embedded) in a Jetty server (all through Maven) to invoke a simple Python script. My script works fine as long as I don't try to use any of the standard library's such as 'logging.' Whenever I try to import one of the standard library's it fails with the exception "ImportError." The exception I get is: F...

Python Module Importing Issues

I run Windows 7, and I can import built-in modules, but when I save my own script and try to import it in IDLE, I get an error saying that the module doesn't exist. I use the Python text editor found by clicking "File" and "New Window" from the Python Shell. I save it as a .py file within a Module folder I created within the Python dire...

Pydev can't find matplotlib modules

I just installed matplotlib on my windows 7 Python 2.6.5 machine with the win32 installer . I've tried some examples from the matplotlib site to test the installation, under Idle everthing works fine but Pydev 1.9 (Eclipse 3.6) cant find any of the sub modules. e.g import matplotlib doesn't cause any errors but from matplotlib.path ...

python import error

what's wrong with my imports? App folder structure: myapp - models/models.py contains SpotModel() - tests/tests.py contains TestSpotModel(unittest.TestCase). tests.py imports "from myapp.models.models import *" which works like a charm - scripts/import.py contains "from myapp.models.models import *" the problem is that import.py w...

Trouble importing BeautifulSoup in python

I've unpacked BeautifulSoup into c:\python2.6\lib\site-packages, which is in sys.path, but when I enter import BeautifulSoup I get an import error saying no such module exists. Obviously I'm doing something stupid... what is it? ...

Import from a Django project with a different top-level folder name

I recently setup a deployment solution for my Django project using Fabric. The basic workflow being: Check out the latest source from git on the server. Copy it to a 'releases' directory and add a timestamp to the directory name. Update the 'current' symlink to point to the latest build. This works just fine, only problem is, since t...

Using Django ORM outside of Django throws ImportError on assigning to the FK

When using the Django ORM from an external shell, using a model with a ForeignKey field an ImportError is thrown when assigning to it. And here is a paste of my shell sessions both from ./manage.py shell and from normal python shell. bradyrj@machine:~/workspaces/django/shellgame$ python manage.py shell Python 2.6.6 (r266:84292, Sep 15 ...

Django Celery causes an import error on runserver command

When I issue a runserver command, an ImportError is raised from djcelery (Django Celery). % python manage.py runserver ~/Workspace/django-projects/no-labels/src Validating models... Unhandled exception in thread started by <functi...

ImportError when trying to import from module directory. (Django)

Imagine a classic Django directory structure. INSTALLED_APPS contains an entry pointing to "myApp". I have models, views, etc. in that directory and it works fine. I've created a file called decorators.py in that directory. In one of the views, I'm trying to import some of those decorators but I'm getting: ImportError at / No module na...

embedding python ImportError: libpyglib PyExc_ImportError linking

I am running 64 bit ubuntu 10.10 in case there are know issues with this setup, basically i am embedding python inside a c application i managed to get this to work i can call functions from the original c program and the scripts run until i import gtk in the python script this causes the error below. I am using the waf build system to ...