Fix error about missing attribute 'timeout' that happens sometimes during compilation
The fix [1476:49f1763a5613] of the problem with following trace was wrong.
Traceback (most recent call last):
File "./Beremiz.py", line 1229, in run_with_except_hook
run_old(*args, **kw)
File
"/home/developer/WorkData/PLC/beremiz/beremiz/util/ProcessLogger.py",
line 68, in run
self.endcallback(self.Proc.pid, err)
File
"/home/developer/WorkData/PLC/beremiz/beremiz/util/ProcessLogger.py",
line 169, in finish
if self.timeout: self.timeout.cancel()
AttributeError: ProcessLogger instance has no attribute 'timeout'
The problem was that compilation process was finished before the timeout attribute is set.
Now timeout is set before launcing of compilation process.
Beremiz installation
====================
Windows
-------
Download installer, install.
Linux
-----
Pre-requisites::
# Ubuntu/Debian :
sudo apt-get install python-wxgtk2.8 pyro mercurial
sudo apt-get install build-essential bison flex python-numpy python-nevow
Prepare::
mkdir ~/Beremiz
cd ~/Beremiz
Get Source Code::
cd ~/Beremiz
hg clone http://dev.automforge.net/beremiz
hg clone http://dev.automforge.net/plcopeneditor
hg clone http://dev.automforge.net/matiec
Build MatIEC compiler::
cd ~/Beremiz/matiec
./configure
make
Build CanFestival (optional)::
# Only needed for CANopen support. Please read CanFestival
# manual to choose CAN interface other than 'virtual'::
cd ~/Beremiz
hg clone http://dev.automforge.net/CanFestival-3
cd ~/Beremiz/CanFestival-3
./configure --can=virtual
make
Launch Beremiz::
cd ~/Beremiz/beremiz
python Beremiz.py