Wiki » History » Version 9

David PICARD, 12/07/2017 05:15 PM
Protron screenshot

1 8 David PICARD
{{toc}}
2 8 David PICARD
3 9 David PICARD
h1. Screenshot
4 9 David PICARD
5 9 David PICARD
!protron.png!
6 9 David PICARD
7 1 David PICARD
h1. Install
8 1 David PICARD
9 3 David PICARD
Required software :
10 3 David PICARD
11 3 David PICARD
* "Numpy":http://www.numpy.org/ : array manipulation.
12 3 David PICARD
* "Scipy":http://www.scipy.org/ : scientific library.
13 3 David PICARD
* "PySide":http://qt-project.org/wiki/PySide : "Qt":http://qt-project.org/ bindings for Python.
14 3 David PICARD
* "PyQtGraph":http://pyqtgraph.org/ : scientific sraphics and GUI library for Python.
15 3 David PICARD
* "PyOpenGL":http://pyopengl.sourceforge.net/ : Python OpenGL binding. Some classes of PyQtGraph require PyOpenGL.
16 4 David PICARD
* The source code of the project, from the "repository":http://forge.clermont-universite.fr/projects/protron/repository.
17 3 David PICARD
18 1 David PICARD
h2. Windows
19 1 David PICARD
20 2 David PICARD
*Python*
21 2 David PICARD
22 1 David PICARD
Get "Algorete":http://algorete.org/, a Python distribution with a package manager. Download the "mini" version, and reboot, so the PATH environment variable is updated everywhere in the system. Default install directory : C:\Loopy.
23 1 David PICARD
24 1 David PICARD
To get help about the package manager, type the following command in a *DOS prompt*, not a Git/bash shell :
25 3 David PICARD
26 1 David PICARD
@> apkg help
27 1 David PICARD
@
28 1 David PICARD
29 1 David PICARD
Install the required packages :
30 3 David PICARD
31 1 David PICARD
@> apkg install matplotlib numpy scipy pyside
32 2 David PICARD
@
33 2 David PICARD
34 2 David PICARD
*PyQtGraph*
35 1 David PICARD
36 3 David PICARD
The installer has a bug (it won't find Python and the dialog is write protected). The workaround is to get the source code. The archive contains a "pyqtgraph" directory that contains __init__.py, colormap.py, etc. Copy this directory to C:\Loopy\Lib\site-packages. The PyQtGraph module can now be imported in Python.
37 2 David PICARD
38 1 David PICARD
*PyOpenGL*
39 1 David PICARD
40 3 David PICARD
Get the zip, extract and type :
41 3 David PICARD
42 2 David PICARD
@$ python setup.py install
43 2 David PICARD
@
44 2 David PICARD
45 2 David PICARD
Default install directory C:\Loopy\Lib\site-packages\OpenGL.
46 2 David PICARD
47 1 David PICARD
48 1 David PICARD
h2. Linux Ubuntu
49 1 David PICARD
50 1 David PICARD
*Python*
51 1 David PICARD
52 3 David PICARD
On Linux, Python is installed by default. Install Python packages :
53 3 David PICARD
54 5 David PICARD
@# apt-get install python-matplotlib python-numpy python-scipy python-pyside pyside-tools
55 3 David PICARD
@
56 3 David PICARD
57 3 David PICARD
*PyQtGraph*
58 3 David PICARD
59 3 David PICARD
Download the .deb file linked at the top of the "page":http://www.pyqtgraph.org/. Then install the package :
60 1 David PICARD
61 4 David PICARD
@# dpkg -i python-pyqtgraph_xx.xx.xx-x_all.deb
62 4 David PICARD
@
63 3 David PICARD
64 3 David PICARD
*PyOpenGL*
65 1 David PICARD
66 4 David PICARD
Install Python's package manager :
67 1 David PICARD
68 4 David PICARD
@# apt-get install python-pip
69 4 David PICARD
@
70 4 David PICARD
71 4 David PICARD
Install PyOpenGL :
72 4 David PICARD
73 4 David PICARD
@$ pip install PyOpenGL PyOpenGL_accelerate
74 3 David PICARD
@
75 2 David PICARD
76 1 David PICARD
h2. Mac OS X
77 2 David PICARD
78 2 David PICARD
*Python*
79 2 David PICARD
80 2 David PICARD
On OS X, Python is installed by default.
81 6 David PICARD
82 7 David PICARD
On OS X, Python is installed by default, but a separate distribution is recommended, so packages are easier to upgrade (see system "python packages":https://github.com/MacPython/wiki/wiki/Which-Python#system-python-and-extra-python-packages). Get "Algorete":http://algorete.org/, a Python distribution with a package manager. Download the "mini" version, and start a new terminal, so the PATH environment variable is updated. Default install directory : ~/opt/...
83 6 David PICARD
84 6 David PICARD
To get help about the package manager, type the following command in a *DOS prompt*, not a Git/bash shell :
85 6 David PICARD
86 6 David PICARD
@> apkg help
87 6 David PICARD
@
88 6 David PICARD
89 6 David PICARD
Install the required packages :
90 6 David PICARD
91 6 David PICARD
@> apkg install matplotlib numpy scipy pyside
92 6 David PICARD
@
93 6 David PICARD
94 6 David PICARD
*PyQtGraph*
95 6 David PICARD
96 6 David PICARD
Download the .tar.gz source package linked at the top of the page, extract its contents, and run "python setup.py install" from within the extracted directory.
97 6 David PICARD
98 6 David PICARD
*PyOpenGL*
99 6 David PICARD
100 6 David PICARD
Install pip :
101 6 David PICARD
102 6 David PICARD
@# port install py-pip
103 6 David PICARD
@
104 6 David PICARD
105 6 David PICARD
Find the pip executable, and install PyOpenGL :
106 6 David PICARD
107 6 David PICARD
@# pip install PyOpenGL PyOpenGL_accelerate
108 6 David PICARD
@