Andy and Robert,

Here is my Pycharm configuration. I have local path for devstack at 
*/Users/zacharytrabookis/Dev/EducateWorkforce/Repos/open-edx/devstack*

<https://lh3.googleusercontent.com/-Dh69PmsFvnI/WQInUoZkCJI/AAAAAAAAA-Y/68QoOZmBfC8YHWlF0BMVUJaUV0dHnyiUACLcB/s1600/pycharm-interpreter-2017-04-27_13-09-08.png>

<https://lh3.googleusercontent.com/-GQGMKeiVuuI/WQInc8O6NtI/AAAAAAAAA-c/Q1HodELulT4NiR1MDD1kD1DNLAdR5dKVACLcB/s1600/pycharm-interpreter-details-2017-04-27_13-12-07.png>

<https://lh3.googleusercontent.com/-LX2aIbMft1U/WQInhAdrLJI/AAAAAAAAA-g/pNWtTwXvGxUYnouxUJt4HGbYp4MaTtzrQCLcB/s1600/project-structure-2017-04-27_13-12-56.png>

<https://lh3.googleusercontent.com/-EnCCvpBQwWc/WQInlcyrjBI/AAAAAAAAA-k/jllQVl6EErISTzYG9GwpYzK-1aJQCCgMACLcB/s1600/pycharm-lms-run%253Adebug-configuration-2017-04-27_13-14-09.png>


This is my local instance running LMS using *paver devstack lms* command.

<https://lh3.googleusercontent.com/-LUB7jHuGXrU/WQIoQU45zQI/AAAAAAAAA-s/wDRFNCakiQg3XQYqSsqZL5a-5Pf3x3XMgCLcB/s1600/devstack-lms-2017-04-27_13-18-52.png>
Zach


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/cc97f46f-b7f5-4d88-9f6c-51d15cb6ffc1%40googlegroups.com.

Reply via email to