Don't run makemigrations because you don't want to create a new migration, instead you want to revert to the 0004 migration found within commerce application. See if that's what's causing the problem.
Also, try removing all the *.pyc files when you're moving between two branches that are of different versions. The following command should help: find . -name '*.pyc' -delete On Tuesday, November 15, 2016 at 1:32:42 PM UTC+1, Daniel wrote: > > Im using openedx ver open-release/eucalyptus.2 in production, i have 2 >>>> servers 1-master, 2-eucalyptus.2 >>>> >>> > i want to migrate databases from 1 to 2, when im trying to use this > solution im getting an error that > edxapp@v7360:~/edx-platform$ ./manage.py lms --settings=aws makemigrations > commerce 0004 > Traceback (most recent call last): > File "./manage.py", line 111, in <module> > startup = importlib.import_module(edx_args.startup) > File "/usr/lib/python2.7/importlib/__init__.py", line 37, in > import_module > __import__(name) > File "/edx/app/edxapp/edx-platform/lms/startup.py", line 21, in <module> > import lms_xblock.runtime > File > "/edx/app/edxapp/edx-platform/lms/djangoapps/lms_xblock/runtime.py", line > 11, in <module> > from openedx.core.djangoapps.user_api.course_tag import api as > user_course_tag_api > File > "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/user_api/course_tag/api.py", > > line 10, in <module> > from ..models import UserCourseTag > File > "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/user_api/models.py", > line 20, in <module> > from student.models import UserProfile, Registration, > PendingEmailChange # pylint: disable=unused-import > File "/edx/app/edxapp/edx-platform/common/djangoapps/student/models.py", > line 51, in <module> > from certificates.models import GeneratedCertificate > File > "/edx/app/edxapp/edx-platform/lms/djangoapps/certificates/__init__.py", > line 3, in <module> > from . import signals > File > "/edx/app/edxapp/edx-platform/lms/djangoapps/certificates/signals.py", line > 7, in <module> > from certificates.models import CertificateGenerationCourseSetting > File > "/edx/app/edxapp/edx-platform/lms/djangoapps/certificates/models.py", line > 70, in <module> > from util.milestones_helpers import fulfill_course_milestone, > is_prerequisite_courses_enabled > File > "/edx/app/edxapp/edx-platform/common/djangoapps/util/milestones_helpers.py", > line 14, in <module> > from milestones.services import MilestonesService > ImportError: No module named services > > could you help me? > -- You received this message because you are subscribed to the Google Groups "General Open edX discussion" group. To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/852530fd-975c-48d0-81a2-ea3af0f74636%40googlegroups.com.
