2016-05-23 8 views
4

私はAldryns環境を使ってdjango-cmsサイトを開発しています。PythonのコンソールでPythonのUbuntu Virtualboxに接続できません

私はWindows 10で完璧ではないので、仮想マシンUbuntu 16.04 VirtualBoxを作成しました。 VM内で、Pycharm 2016.1.3をインストールしました。今Pycharmがドッキングウィンドウコンテナ内で見ることができ

just create a file /etc/default/docker containing:

DOCKER_OPTS="-H unix:///var/run/docker.sock -H tcp://127.0.0.1:2376" 

Drop the following into /etc/systemd/system/docker.service.d/daemon.conf

(create directories if they don't exist yet):

[Service]  
    EnvironmentFile=/etc/default/docker  
    ExecStart= 
    ExecStart=/usr/bin/docker daemon $DOCKER_OPTS 

Then issue the following two commands:

sudo systemctl daemon-reload 
sudo systemctl restart docker 

Aldrynのサポートは(不断のある人)UbuntuとPycharmためsetup dockerサポートに私を助けました。 I. Project Interpreterはインストールされているすべてのパッケージをうまく表示します。

私はこれをすべてやったので、Pycharmのpythonコンソールを使用することができます。

(ERROR:対話型モードは、まだWindows上でサポートされていません)

は今、私はこのエラーを取得する:端子を介して、それを再生する

xyz_w:python /opt/.pycharm_helpers/pydev/pydevconsole.py 0 0

PyDev console: starting.

Couldn't connect to console process.

Process finished with exit code 143

ができます:

[email protected]:~/xyz$ docker-compose run --rm web python manage.py shell 

/app/addons/aldryn-django/aldryn_config.py:56:

RuntimeWarning:

no cache configured. Falling back to CACHE_URL=locmem://
RuntimeWarning,

Django not found.

Python 2.7.11 (default, Mar 3 2016, 10:57:12) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole)

この問題を解決するにはどうすればいいですか?私はPythonコンソールを使用することができますか?

答えて

関連する問題