Comments (4)
@xiaraix
ご報告ありがとうございます。ご迷惑をおかけして申し訳ありません。
docker環境での問題に関しまして、現在調査をおこなっております。
とりいそぎ、以下の確認をしていただけると、大変助かります。
- vispyのインストールに関して
No module named 'vispy'とエラーが出ていますが、vispyモジュールのインストールは問題なく完了していますでしょうか?
$ pip install vispy
の実行で何かエラーが出ていましたら、そちらをいただけますか。
- 環境に関して
vispyが問題なく入っていましたら、以下のページの2番の実行結果をいただけますか。
https://github.com/alifelab/alife_book_src/wiki/%E3%83%90%E3%82%B0%E5%A0%B1%E5%91%8A
よろしくお願いいたします。
from alife_book_src.
@maru-n 様
レスありがとうございます。
1.
$ pip install vispy
Requirement already satisfied: numpy in /opt/conda/lib/python3.6/site-packages (from vispy) (1.14.3)
Building wheels for collected packages: vispy
Running setup.py bdist_wheel for vispy ... done
Stored in directory: /root/.cache/pip/wheels/78/4a/81/db541db6561a36f679953cc76037a743923e9862ab5516d227
Successfully built vispy
distributed 1.21.8 requires msgpack, which is not installed.
Installing collected packages: vispy
Successfully installed vispy-0.5.3
インストールは成功していると表示されているようなのですが、
pythonを実行すると
import vispy
で下記のエラーが帰ってきています。
Traceback (most recent call last):
File "", line 1, in
File "/opt/conda/lib/python3.6/site-packages/vispy/init.py", line 30, in
from .util import config, set_log_level, keys, sys_info # noqa
File "/opt/conda/lib/python3.6/site-packages/vispy/util/init.py", line 14, in
from . import fonts # noqa
File "/opt/conda/lib/python3.6/site-packages/vispy/util/fonts/init.py", line 13, in
from ._triage import _load_glyph, list_fonts # noqa, analysis:ignore
File "/opt/conda/lib/python3.6/site-packages/vispy/util/fonts/_triage.py", line 11, in
from ._freetype import _load_glyph
File "/opt/conda/lib/python3.6/site-packages/vispy/util/fonts/_freetype.py", line 16, in
from ...ext.fontconfig import find_font
File "/opt/conda/lib/python3.6/site-packages/vispy/ext/fontconfig.py", line 12, in
raise ImportError('fontconfig not found')
ImportError: fontconfig not found
python -c "import vispy; print(vispy.sys_info())"
インストールがうまく出来ていません
エラー表示
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'vispy'
ご検証の程、よろしくお願いいたします。
from alife_book_src.
@xiaraix
ご連絡ありがとうございます。
当方のubuntu16.04環境で、continuumio/anaconda3のdockerイメージを利用した実行が出来ましたので、方法をご連絡します。
以下を試して頂ければと思います。
$ git clone https://github.com/alifelab/alife_book_src.git
$ docker pull continuumio/anaconda3
$ xhost local:
$ docker run -it -v ~/alife_book_src:/alife_book_src -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY continuumio/anaconda3
# ~/alife_book_srcの部分はcloneしたpathに読み替える。もしくは、コンテナ内でclone
(docker)$ apt update
(docker)$ apt install python3-pyqt5 gcc -y
(docker)$ pip install vispy keras tensorflow pymunk pyglet
(docker)$ cd alife_book_src/chap02/
(docker)$ python game_of_life.py
from alife_book_src.
maru-n 様
ご対応ありがとうございます。
各種インストール後、
python game_of_life.py
を実行すると以下のエラーが出ます。
UserWarning: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
matplotlib のバージョンを2.1.0 に落としてインストール。
pip install matplotlib==2.1.0
上記インストール後、次のエラーが出ております。
WARNING: could not determine DPI
WARNING: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
WARNING: Unrecognized OpenGL version
WARNING: Unrecognized OpenGL version
ご検証いただけますでしょうか。
from alife_book_src.
Related Issues (20)
- chap02/gray_scott_1d.pyとgray_scott_param.pyのコメントが英語 HOT 1
- Windows+Anacondaでpygame周りのエラー HOT 2
- chap07のreadme.mdの句点
- コメントは日本語で統一 HOT 4
- chap06_evolution/ant_nn_ga.py内のスペルミス
- Subsumptionで、働いているモジュールに応じて色を変える
- SwarmVisualizerを改良 HOT 1
- SCLVisualizerを改良
- 1DArrayVisualizer HOT 2
- vispy実行時のSegmentation fault (コアダンプ) HOT 1
- pymunkのインストールでエラー HOT 2
- VisPy is not yet compatible with matplotlib 2.2+ HOT 1
- サンプルプログラムをColaboratoryで動かしたい HOT 1
- gray_scott.pyが動かない HOT 12
- English translation for book and repository HOT 1
- 4.2 chap04 boids.py boidが現れない HOT 5
- scl_utils.pyのムーア近傍の取得のコードに関しまして
- simulatorをjupyter notebook上で動くようにしたい HOT 1
- get_random_2_moore_neighborhoodの実装が正しくない
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alife_book_src.