Also I wasn't sure why I needed to include this additional path mapping. https://openedx.atlassian.net/wiki/display/OpenDev/Working+with+devstack+and+PyCharm Create Debug Configuration for LMS Click the "+" button again to add a mapping for the "/edx/src" directory - Specify the full path to "edx/src", e.g. "/Users/[username]/devstack/src" - Specify "/edx/src" for "Remote path"
On Thursday, April 27, 2017 at 12:11:13 PM UTC-4, Zachary Trabookis wrote: > > So I've downloaded devstack `open-release/ficus.3` and I following > directions > https://openedx.atlassian.net/wiki/display/OpenDev/Working+with+devstack+and+PyCharm > > to run the Pycharm debugger against the LMS. For some reason I keep getting > this error below. I cleared the > /Users/{USERNAME}/Library/Caches/PyCharm2017.1/ directory and restarted > Pycharm. I started a new project and even recreated the project > interpreter. I see the remote files and I can even view the > *xblock.plugin* source files in the Pycharm cache locally so all seems > well. > > *Can you help me figure out how to debug the LMS using Pycharm?* > > ssh://edxapp@127.0.0.1:2222/edx/app/edxapp/venvs/edxapp/bin/python -u > /edx/app/edxapp/edx-platform/.pycharm_helpers/pydev/pydevd.py --multiproc > --qt-support --client '0.0.0.0' --port 41150 --file ./manage.py lms > runserver --settings=devstack 0.0.0.0:8000 > warning: Debugger speedups using cython not found. Run > '"/edx/app/edxapp/venvs/edxapp/bin/python" > "/edx/app/edxapp/edx-platform/.pycharm_helpers/pydev/setup_cython.py" > build_ext --inplace' to build. > pydev debugger: process 19410 is connecting > > Connected to pydev debugger (build 171.4163.6) > Traceback (most recent call last): > File "/edx/app/edxapp/edx-platform/.pycharm_helpers/pydev/pydevd.py", > line 1578, in <module> > globals = debugger.run(setup['file'], None, None, is_module) > File "/edx/app/edxapp/edx-platform/.pycharm_helpers/pydev/pydevd.py", > line 1015, in run > pydev_imports.execfile(file, globals, locals) # execute the script > 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 "./lms/startup.py", line 10, in <module> > settings.INSTALLED_APPS # pylint: disable=pointless-statement > File > "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", > > line 48, in __getattr__ > self._setup(name) > File > "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", > > line 44, in _setup > self._wrapped = Settings(settings_module) > File > "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", > > line 92, in __init__ > mod = importlib.import_module(self.SETTINGS_MODULE) > File "/usr/lib/python2.7/importlib/__init__.py", line 37, in > import_module > __import__(name) > File "./lms/envs/devstack.py", line 6, in <module> > from .aws import * # pylint: disable=wildcard-import, > unused-wildcard-import > File "./lms/envs/aws.py", line 25, in <module> > from .common import * > File "./lms/envs/common.py", line 42, in <module> > from xmodule.modulestore.modulestore_settings import > update_module_store_settings > File > "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/__init__.py", > > line 20, in <module> > from xblock.plugin import default_select > ImportError: No module named plugin > > Process finished with exit code 1 > > Zach > > -- 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/6d6ae83c-664d-45a3-8d40-578945290c95%40googlegroups.com.