Ask Your Question
1

Why do I ImportError: cannot import name signals?

asked 2010-10-25 19:41:14 -0600

andrewv gravatar image

updated 2010-10-26 15:01:57 -0600

Evgeny gravatar image

I am trying to install askbot, but when I run the command python manage.py syncdb, I get the following error.

Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/core/management/__init__.py", line 362, in execute_manager utility.execute() File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/core/management/__init__.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/core/management/base.py", line 195, in run_from_argv self.execute(args, *options.__dict__) File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/core/management/base.py", line 221, in execute self.validate() File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/core/management/base.py", line 249, in validate num_errors = get_validation_errors(s, app) File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/core/management/validation.py", line 28, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/db/models/loading.py", line 145, in get_app_errors self._populate() File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/db/models/loading.py", line 63, in _populate self.load_app(app_name) File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/db/models/loading.py", line 77, in load_app models = import_module('.models', app_name) File "/usr/lib/python2.4/site-packages/Django-1.1.2-py2.4.egg/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/lib/python2.4/site-packages/askbot-0.6.17-py2.4.egg/askbot/models/__init__.py", line 28, in ? from askbot.models import signals ImportError: cannot import name signals

edit retag flag offensive close merge delete

Comments

can you try python 2.6? I've not tested askbot with 2.4 in a while.
Evgeny gravatar imageEvgeny ( 2010-10-25 19:45:58 -0600 )edit
also, you might try a version from github the pypi files will be updated soon anyway.
Evgeny gravatar imageEvgeny ( 2010-10-25 19:47:42 -0600 )edit
were you able to get askbot run on python2.4?
Evgeny gravatar imageEvgeny ( 2010-10-26 15:03:24 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2013-02-13 10:52:13 -0600

coldsystem gravatar image

Old Python. try Python > 2.6.0

edit flag offensive delete link more
0

answered 2010-10-25 19:50:33 -0600

Evgeny gravatar image

Maybe you can give a quick try to the version in github? Also, if you can - use python 2.6 and postgresql as a database.

edit flag offensive delete link more

Comments

I can't use postgresql, but I can try the version in github, I was previously using the stable release. python 2.6 might not be an option either since I have limited access to the machine.
andrewv gravatar imageandrewv ( 2010-10-25 20:16:14 -0600 )edit
0

answered 2010-10-25 20:25:13 -0600

andrewv gravatar image

I am trying from the github version, now I am getting the following error:

Traceback (most recent call last): File "/usr/bin/startforum", line 7, in ? sys.exit( File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 318, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 2221, in load_entry_point return ep.load() File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) ImportError: No module named askbot.deployment

edit flag offensive delete link more

Comments

oops didn't mean for this to be an answer
andrewv gravatar imageandrewv ( 2010-10-25 20:25:35 -0600 )edit
take a look at this http://askbot.org/en/question/93/why-do-i-get-a-no-module-named-askbotdeployment that's about that exact problem
Evgeny gravatar imageEvgeny ( 2010-10-25 20:28:47 -0600 )edit
I did that, but now the problem is that the installation of askbot through the github version added it to the site-packages and added it to python path, but python still can't import it. Do you have any ideas what might cause this? I am a bit new to hardcare Python.
andrewv gravatar imageandrewv ( 2010-10-25 21:00:11 -0600 )edit
try to follow instructions in the answer that I've linked to above. you can copy files that startforum wants manually and you can open python shell session just by typing "python" and then "import sys" and "print '\n'.join(sys.path) that shows what is in the PYTHONPATH variable
Evgeny gravatar imageEvgeny ( 2010-10-25 21:09:47 -0600 )edit
if you still get that "cannot import signals" error, then I can't help you quickly - will need to try version 2.4 myself. will take a look tomorrow.
Evgeny gravatar imageEvgeny ( 2010-10-25 21:10:33 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2010-10-25 19:41:14 -0600

Seen: 2,483 times

Last updated: Feb 13 '13