AndrewBall
20230202_202510.jpgCan anyone tell me why this keeps  happening?
Reply 0 0
thiagoralves
Most likely your apt is broken. Try again on a fresh Raspbian install
Reply 0 0
saravanakumar
guru@raspberrypi:~/Downloads/OpenPLC_v3 $ ./ install.sh rpi
tee: install_log.txt: Permission denied
Installing OpenPLC on Raspberry Pi
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Get:2 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease [5,305 B]
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Fetched 5,305 B in 6s (861 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.9).
make is already the newest version (4.3-4.1).
make set to manually installed.
pkg-config is already the newest version (0.29.2-1).
python3 is already the newest version (3.9.2-3).
python3 set to manually installed.
python3-pip is already the newest version (20.3.4-4+rpt1+deb11u1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
autoconf : Depends: m4 (>= 1.4.13) but it is not going to be installed
automake : Depends: autotools-dev (>= 20020320.1) but it is not going to be installed
bison : Depends: m4 but it is not going to be installed
cmake : Depends: cmake-data (= 3.18.4-2+rpt1+rpi1+deb11u1) but it is not going to be installed
Depends: libjsoncpp24 (>= 1.9.4) but it is not going to be installed
Depends: librhash0 (>= 1.2.6) but it is not going to be installed
curl : Depends: libcurl4 (= 7.74.0-1.3+deb11u7) but 7.74.0-1.3+deb11u5 is to be installed
flex : Depends: m4 but it is not going to be installed
Recommends: libfl-dev but it is not going to be installed
libtool : Depends: autotools-dev but it is not going to be installed
Recommends: libltdl-dev but it is not going to be installed
python-wxversion : Depends: python2:any (< 2.8)
Depends: python2:any (>= 2.7.5-5~)
python2.7 : Depends: python2.7-minimal (= 2.7.18-8) but it is not going to be installed
Depends: libpython2.7-stdlib (= 2.7.18-8) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file get-pip.py: Permission denied
0 1863k 0 16384 0 0 25401 0 0:01:15 --:--:-- 0:01:15 25401
curl: (23) Failure writing output to destination
sudo: python2.7: command not found
Reading package lists...
Building dependency tree...
Reading state information...
wiringpi is already the newest version (2.61).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-wxversion : Depends: python2:any (< 2.8)
Depends: python2:any (>= 2.7.5-5~)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
./background_installer.sh: line 58: pip2: command not found
./background_installer.sh: line 59: pip2: command not found
./background_installer.sh: line 60: pip2: command not found
./background_installer.sh: line 61: pip2: command not found
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pymodbus==2.5.3 in /usr/local/lib/python3.9/dist-packages (2.5.3)
Requirement already satisfied: six>=1.15.0 in /usr/lib/python3/dist-packages (from pymodbus==2.5.3) (1.16.0)
Requirement already satisfied: pyserial>=3.4 in /usr/lib/python3/dist-packages (from pymodbus==2.5.3) (3.5b0)
sudo: pip2: command not found
sudo: pip2: command not found
sudo: pip2: command not found
sudo: pip2: command not found
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pymodbus==2.5.3 in /usr/local/lib/python3.9/dist-packages (2.5.3)
Requirement already satisfied: six>=1.15.0 in /usr/lib/python3/dist-packages (from pymodbus==2.5.3) (1.16.0)
Requirement already satisfied: pyserial>=3.4 in /usr/lib/python3/dist-packages (from pymodbus==2.5.3) (3.5b0)
[MATIEC COMPILER]
./background_installer.sh: line 69: autoreconf: command not found
./background_installer.sh: line 70: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
cp: cannot stat './iec2c': No such file or directory
Error compiling MatIEC
OpenPLC was NOT installed!
Reply 0 0
thiagoralves
It looks like you’re trying to install this on a very old or unusual Raspbian installation. Most packages failed to install through apt
Reply 0 0
saravanakumar
Thanks for the response
I have tried with another raspbian.
But it is unsuccessful.
Please help me to install and configure it in Raspberry Pi 
Reply 1 0
thiagoralves
It does work on a clean Raspbian install with internet access
Reply 0 0
saravanakumar
I have updated the sources.list for repository. But still some issues.
 
guru@raspberrypi:~/Documents/OpenPLC_Editor $ ls
editor LICENSE new_lib revision wxpython
get-pip.py matiec openplc_editor.sh update.cmd
install.sh new_editor README.md update.sh
guru@raspberrypi:~/Documents/OpenPLC_Editor $ ./ install.sh
Installing OpenPLC Editor
Please be patient. This may take a couple minutes...
[INSTALLING DEPENDENCIES]
E: Unable to locate package python-wxgtk3.0
E: Couldn't find any package by glob 'python-wxgtk3.0'
E: Couldn't find any package by regex 'python-wxgtk3.0'
Manually installing python-wxgtk3.0...
(Reading database ... 174072 files and directories currently installed.)
Removing python-is-python3 (3.9.2-1) ...
Selecting previously unselected package python-is-python2.
(Reading database ... 174067 files and directories currently installed.)
Preparing to unpack .../python-is-python2_2.7.18-9_all.deb ...
Unpacking python-is-python2 (2.7.18-9) ...
Setting up python-is-python2 (2.7.18-9) ...
Processing triggers for man-db (2.9.4-2) ...
Selecting previously unselected package libwxbase3.0-0v5:armhf.
(Reading database ... 174072 files and directories currently installed.)
Preparing to unpack .../libwxbase3.0-0v5_3.0.5.1+dfsg-2_armhf.deb ...
Unpacking libwxbase3.0-0v5:armhf (3.0.5.1+dfsg-2) ...
Selecting previously unselected package libwxgtk3.0-gtk3-0v5:armhf.
Preparing to unpack .../libwxgtk3.0-gtk3-0v5_3.0.5.1+dfsg-2_armhf.deb ...
Unpacking libwxgtk3.0-gtk3-0v5:armhf (3.0.5.1+dfsg-2) ...
Setting up libwxbase3.0-0v5:armhf (3.0.5.1+dfsg-2) ...
Setting up libwxgtk3.0-gtk3-0v5:armhf (3.0.5.1+dfsg-2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...
(Reading database ... 174111 files and directories currently installed.)
Preparing to unpack .../python-wxversion_3.0.2.0+dfsg-8_all.deb ...
Unpacking python-wxversion (3.0.2.0+dfsg-8) over (3.0.2.0+dfsg-8) ...
Setting up python-wxversion (3.0.2.0+dfsg-8) ...
dpkg: error processing archive ./wxpython/python-wxgtk3.0_3.0.2.0+dfsg-8_amd64.deb (--install):
package architecture (amd64) does not match system (armhf)
Errors were encountered while processing:
./wxpython/python-wxgtk3.0_3.0.2.0+dfsg-8_amd64.deb
Selecting previously unselected package icu-devtools.
(Reading database ... 174111 files and directories currently installed.)
Preparing to unpack .../icu-devtools_67.1-7_armhf.deb ...
Unpacking icu-devtools (67.1-7) ...
Selecting previously unselected package libicu-dev:armhf.
Preparing to unpack .../libicu-dev_67.1-7_armhf.deb ...
Unpacking libicu-dev:armhf (67.1-7) ...
Selecting previously unselected package libxml2-dev:armhf.
Preparing to unpack .../libxml2-dev_2.9.10+dfsg-6.7+deb11u4_armhf.deb ...
Unpacking libxml2-dev:armhf (2.9.10+dfsg-6.7+deb11u4) ...
Selecting previously unselected package libxslt1-dev:armhf.
Preparing to unpack .../libxslt1-dev_1.1.34-4+deb11u1_armhf.deb ...
Unpacking libxslt1-dev:armhf (1.1.34-4+deb11u1) ...
Setting up icu-devtools (67.1-7) ...
Setting up libicu-dev:armhf (67.1-7) ...
Setting up libxml2-dev:armhf (2.9.10+dfsg-6.7+deb11u4) ...
Setting up libxslt1-dev:armhf (1.1.34-4+deb11u1) ...
Processing triggers for man-db (2.9.4-2) ...
Selecting previously unselected package libpython2-dev:armhf.
(Reading database ... 174567 files and directories currently installed.)
Preparing to unpack .../libpython2-dev_2.7.18-3_armhf.deb ...
Unpacking libpython2-dev:armhf (2.7.18-3) ...
Selecting previously unselected package python2-dev.
Preparing to unpack .../python2-dev_2.7.18-3_armhf.deb ...
Unpacking python2-dev (2.7.18-3) ...
Setting up libpython2-dev:armhf (2.7.18-3) ...
Setting up python2-dev (2.7.18-3) ...
Processing triggers for man-db (2.9.4-2) ...
E: Unable to locate package libpng
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1863k 100 1863k 0 0 1212k 0 0:00:01 0:00:01 --:--:-- 1212k
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip<21.0
Using cached pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.3.4
Uninstalling pip-20.3.4:
Successfully uninstalled pip-20.3.4
Successfully installed pip-20.3.4
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting future
Using cached future-0.18.3.tar.gz (840 kB)
Collecting zeroconf==0.19.1
Using cached zeroconf-0.19.1-py2.py3-none-any.whl (27 kB)
Collecting numpy==1.16.5
Using cached numpy-1.16.5.zip (5.1 MB)
Collecting matplotlib==2.0.2
Using cached matplotlib-2.0.2.tar.gz (53.9 MB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-utMxkp/matplotlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-utMxkp/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-RRxBs7
cwd: /tmp/pip-install-utMxkp/matplotlib/
Complete output (64 lines):
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
matplotlib: yes [2.0.2]
python: yes [2.7.18 (default, Jul 14 2021, 08:11:37) [GCC
10.2.1 20210110]]
platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [not found. pip may install it below.]
six: yes [six was not found.pip will attempt to install
it after matplotlib.]
dateutil: yes [dateutil was not found. It is required for date
axis support. pip/easy_install may attempt to
install it after matplotlib.]
functools32: yes [functools32 was not found. It is required
forPython versions prior to 3.2]
subprocess32: yes [subprocess32 was not found. It used for Python
versions prior to 3.2 to improves functionality on
Linux and OSX]
pytz: yes [pytz was not found. pip will attempt to install
it after matplotlib.]
cycler: yes [cycler was not found. pip will attempt to
install it after matplotlib.]
tornado: yes [tornado was not found. It is required for the
WebAgg backend. pip/easy_install may attempt to
install it after matplotlib.]
pyparsing: yes [pyparsing was not found. It is required for
mathtext support. pip/easy_install may attempt to
install it after matplotlib.]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: yes [version unknown]
png: yes [version 1.6.37]
qhull: yes [pkg-config information for 'qhull' could not be
found. Using local copy.]

OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]

OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: no [PyQt5 not found]
qt4agg: no [PySide not found; PyQt4 not found]
gtk3agg: no [Requires pygobject to be installed.]
gtk3cairo: no [Requires cairocffi or pycairo to be installed.]
gtkagg: no [Requires pygtk]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-utMxkp/matplotlib/setup.py", line 184, in <module>
result = package.check()
File "setupext.py", line 579, in check
additional_info = self.check_requirements()
File "setupext.py", line 1845, in check_requirements
wxversion.ensureMinimal('2.8')
File "/usr/lib/python2.7/dist-packages/wxversion.py", line 209, in ensureMinimal
import wx, webbrowser
ImportError: No module named wx
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[COMPILING MATIEC]
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/guru/Documents/OpenPLC_Editor/matiec/config/missing: Unknown `--is-lightweight' option
Try `/home/guru/Documents/OpenPLC_Editor/matiec/config/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for bison... bison -y
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for gawk... (cached) mawk
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for clock_gettime... yes
checking for memset... yes
checking for pow... no
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for strtoull... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating absyntax/Makefile
config.status: creating absyntax_utils/Makefile
config.status: creating stage1_2/Makefile
config.status: creating stage3/Makefile
config.status: creating stage4/Makefile
config.status: creating stage4/generate_c/Makefile
config.status: creating stage4/generate_json/Makefile
config.status: creating stage4/generate_iec/Makefile
config.status: creating config/config.h
config.status: config/config.h is unchanged
config.status: executing depfiles commands
Making all in absyntax
Making all in absyntax_utils
Making all in stage1_2
Making all in stage3
Making all in stage4
Making all in generate_c
Making all in generate_iec
Making all in generate_json
[FINALIZING]
guru@raspberrypi:~/Documents/OpenPLC_Editor $ ./ openplc_editor.sh
Traceback (most recent call last):
File "./editor/Beremiz.py", line 31, in <module>
from past.builtins import execfile
Reply 0 0
thiagoralves
You must install the editor on your computer. The pi will only run the runtime
Reply 0 0
xitechnology
Hello,
 
I just built a new, out-of-the-box,  Pi  4B with 8GB RAM using the NOOB installation process.  The version number is 11, Bullseye.  I downloaded the V3 git directly into the PI after loading WingPi's latest version from git. Running install.sh failed in line 95 and 96 as it was attempting to install the MATIEC compiler.  "No targets specified and no make file found."  "cp cannot stat './iec2c': No such file or directory."
 
Is this the same error reported in Feb and then again in May? 
I noted in the git that Version 2 moved to the IEC compiler. I have seen demos by others that showed Versions 2 and 3 working.  Apparently sravankumar made some changes to some list (I dabble in linux, so not sure what he was talking about) and that he got V3 to load on his machine. 
 
Can you give me some assistance in getting OpenPLC running on my RASPI?
Reply 0 0
thiagoralves
Issues on this thread are about the editor, not the runtime. The runtime should run just fine on a clean raspbian installation. Runtime v2 is extremely outdated, you shouldn’t even try that.
Reply 0 0
xitechnology
Thank you for the quick response.
Understood,  I will transfer this to the runtime thread.  In passing, the reference to V2 was informational.  I am loading V3.
Reply 0 0
xitechnology
I am new to the forum. I just looked for a topic that covers the runtime and did not find a specific topic that looked applicable.  Could you provide a URL or other guidance on where a more appropriate space would be?
Reply 0 0
thiagoralves
You can create a new thread on https://openplc.discussion.community/openplc-on-raspberry-pi-527926 which is the same category as this one. Just that this particular thread is talking about the editor, not the runtime.
Reply 0 0
Reply