続き。ckanのバージョンは2.7
プラグインのインストール
ルート権限でdebパッケージにてインストールしたので、プラグインのインストールにもルート権限が必要。
ということで、ルートになるかsudoで作業。
今回は、https://github.com/ckan/ckanext-showcase をインストールしてみる。
# . /usr/lib/ckan/default/bin/activate (default)root@vagrant-ubuntu-trusty-64:~# cd /usr/lib/ckan/default/src/ckan/ (default)root@vagrant-ubuntu-trusty-64:/usr/lib/ckan/default/src/ckan# pip install ckanext-showcase
その後、設定ファイルに記述
# grep plugin /etc/ckan/default/production.ini ckan.plugins = stats text_view image_view recline_view showcase
そして、apacheのリスタート
# service apache2 restart
すると、こんな感じで表示されている。
Excelで出力するプラグインをインストールしようとして
何かエラー出た。
# pip install ckanext-dgvat_xls Collecting ckanext-dgvat_xls /usr/lib/ckan/default/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. SNIMissingWarning /usr/lib/ckan/default/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Could not find a version that satisfies the requirement ckanext-dgvat_xls (from versions: ) No matching distribution found for ckanext-dgvat_xls
エラー文で出てる、https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings から https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2 に移動して、読んでみると
# pip install urllib3[secure]
すればいいのかな?
これをそのまま実行するとエラーが出たので、devツールを入れる。
# apt-get install -y python-dev
なんかうまくいったっぽい。
けど、直らない。・・・