ngageoint / gamification-server

Server to track gamification elements (badges, points, tags) to work pages or apps
MIT License
243 stars 64 forks source link

ImportError: No module named 'utils' #7

Open lyntux opened 9 years ago

lyntux commented 9 years ago

I'm trying to get things running but I'm getting the following when running "paver createdb"

---> pavement.createdb

Captured Task Output:

---> pavement.createdb Traceback (most recent call last): File "/home/lyntux/pyenv/gamification/lib/python3.4/site-packages/paver/tasks.py", line 195, in _run_task return do_task() File "/home/lyntux/pyenv/gamification/lib/python3.4/site-packages/paver/tasks.py", line 192, in do_task return func(kw) File "pavement.py", line 87, in createdb from gamification import settings File "/home/lyntux/gamification-server/gamification/init.py", line 3, in from gamification.core.models import Points File "/home/lyntux/gamification-server/gamification/core/models.py", line 32, in from gamification.badges.models import ProjectBadge, ProjectBadgeToUser File "/home/lyntux/gamification-server/gamification/badges/init**.py", line 1, in from utils import registered_badges, MetaBadge ImportError: No module named 'utils'

Any ideas?

baalasangar commented 9 years ago

I am getting a below error on running the same command.

(gamification)[root@openfoam gamification-server]# paver createdb ---> pavement.createdb

Captured Task Output:

---> pavement.createdb Traceback (most recent call last): File "/opt/pyenv/gamification/lib/python2.6/site-packages/paver/tasks.py", line 196, in _run_task return do_task() File "/opt/pyenv/gamification/lib/python2.6/site-packages/paver/tasks.py", line 193, in do_task return func(kw) File "pavement.py", line 87, in createdb from gamification import settings File "/opt/pyenv/gamification-server/gamification/init.py", line 3, in from gamification.core.models import Points File "/opt/pyenv/gamification-server/gamification/core/models.py", line 32, in from gamification.badges.models import ProjectBadge, ProjectBadgeToUser File "/opt/pyenv/gamification-server/gamification/badges/init**.py", line 1, in from utils import registered_badges, MetaBadge File "/opt/pyenv/gamification-server/gamification/badges/utils.py", line 8, in from models import Badge as BadgeModel File "/opt/pyenv/gamification-server/gamification/badges/models.py", line 10, in from singleton_models.models import SingletonModel ImportError: No module named singleton_models.models

stephenrjones commented 9 years ago

I've committed some changes to help resolve installation issues. Let me know if this helps at all.