Open patcon opened 9 years ago
hi,do you have a solution? I have the same problem, thanks
No sorry @fjqdxq, never figured it out :(
Just checking - did you run through all of the steps in the readme? In particular, have you run: pip install -r requirements.txt
Hello, I have the same problem, do you solved it? Thanks
Hi , same problem here too.
python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 8, in <module>
from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/core/management/sql.py", line 6, in <module>
from django.db import models
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/db/__init__.py", line 11, in <module>
if DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
self._setup()
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/home/user/Study/Projects/SnP/pdsEnv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 95, in __init__
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'openpds.settings' (Is it on sys.path?): cannot import name Connection
Hi I am experiencing same issue as above
(askbot-v1)root@dev-tools-125:~/askbot-v1/askbot-v1/askbot-devel# python manage.py syncdb WARNING!!! You are using a 'locmem' (local memory) caching backend, which is OK for a low volume site running on a single-process server. For a multi-process configuration it is neccessary to have a production cache system, such as redis or memcached.
With local memory caching and multi-process setup you might intermittently see outdated content on your site.
System check identified some issues:
WARNINGS:
django_authopenid.UserPasswordQueue.user: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.
HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.
group_messaging.SenderList.recipient: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.
HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.
Traceback (most recent call last):
File "manage.py", line 11, in
This seems like a different issue than the one reported here. It seems that authentication for the database you're using is failing here. Have you checked to make sure you've provided the correct credentials for accessing your backing database?
Looks like you might want to repost in the project issue queue :) https://github.com/ASKBOT/askbot-devel
Unfortunately this is probably not the place to debug (there are others interested in openPDS, who are getting notified).
@patcon: right, I just realized that the provided stack trace is for a different project entirely.
@sconrod-tester: The link @patcon provided is a better place to ask this question. This issue tracker is for the openPDS project, not askbot.
Same issue here, no resolution found. I'm not terribly familiar with django settings, but it seems the manage script can't resolve pdsEnv/openPDS/openpds/settings.py
@brian717 would be it possible to update the README to address the bootstrapping issue? No matter what I try, "openpds.settings" won't resolve on any Ubuntu installation I try.
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e)) ImportError: Could not import settings 'openpds.settings' (Is it on sys.path?): cannot import name Connection
I'm a little bit more familiar with django than when I originally posted this: try copying the template at openpds/settings.py.template
to openpds/settings.py
, and skimming through to set up obvious config? (Sorry, haven't touched this project in a long time, but saw your message just now.)
on a lark, tried to get it going for you using sqlite3. this got me past syncdb: https://github.com/HumanDynamics/openPDS/pull/49
(I still had to tweak settings.py so that the sqlite db was in a path that already existed :/
but then it seems that more mongo-related things are baked in when I tried to execute runserver
@patcon Many thanks for the help! I think the issue is that from pymongo import Connection
is deprecated, but using an older version of pymongo==2.7.2 seems to work fine for me. I made a pull request to update the requirements.txt. All seems to be good for me with that one change.
Any immediate thoughts?