1

Why do I ImportError: cannot import name signals?

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

Evgeny's avatar
13.2k
Evgeny
updated 2010-10-26 15:01:57 -0500
andrewv's avatar
21
andrewv
asked 2010-10-25 19:41:14 -0500
edit flag offensive 0 remove flag close merge delete

Comments

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

3 Answers

0

Old Python. try Python > 2.6.0

coldsystem's avatar
31
coldsystem
answered 2013-02-13 10:52:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2010-10-25 19:50:33 -0500
edit flag offensive 0 remove flag delete link

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's avatar andrewv (2010-10-25 20:16:14 -0500) edit
add a comment see more comments
0

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

andrewv's avatar
21
andrewv
answered 2010-10-25 20:25:13 -0500
edit flag offensive 0 remove flag delete link

Comments

oops didn't mean for this to be an answer
andrewv's avatar andrewv (2010-10-25 20:25:35 -0500) 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's avatar Evgeny (2010-10-25 20:28:47 -0500) 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's avatar andrewv (2010-10-25 21:00:11 -0500) 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's avatar Evgeny (2010-10-25 21:09:47 -0500) 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's avatar Evgeny (2010-10-25 21:10:33 -0500) edit
add a comment see more comments