jota10
I posted this message to a list on sourceforge.net, but it tells me I'm not registered to post.
I have mint 19.3 32 bits.
Reply 0 0
thiagoralves
You’re missing zeroconf package. The installer should have taken care of that. What is your installer log?
Reply 0 0
jota10
Hello
Thank you for the answer

zeroconf is installed in .../jose/.local/.../python2.7 and I can't find the log
Reply 0 0
thiagoralves
Just run the installer again and paste here the output on terminal
Reply 0 0
jota10
jose@jose-1005HA:~/OpenPLC_Editor$ ./install.sh
Installing OpenPLC Editor
Please be patient. This may take a couple minutes...

[INSTALLING DEPENDENCIES]
[sudo] contraseña para jose:
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 Requirement already satisfied: future in /home/jose/.local/lib/python2.7/site-packages (0.18.2)
Collecting zeroconf==0.19.1
Using cached zeroconf-0.19.1-py2.py3-none-any.whl (27 kB)
Requirement already satisfied: numpy in
/usr/lib/python2.7/dist-packages (1.13.3)
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-Hqn529/matplotlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-Hqn529/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-dekKBN
cwd: /tmp/pip-install-Hqn529/matplotlib/
Complete output (70 lines):
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
matplotlib: yes [2.0.2]
python: yes [2.7.17 (default, Feb 27 2021, 15:10:58) [GCC 7.5.0]]
platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.13.3]
six: yes [using six version 1.11.0]
dateutil: yes [using dateutil version 2.6.1]
functools32: yes [functools32 was not found. It is required forPython versions prior to 3.2]
subprocess32: yes [using subprocess32]
pytz: yes [using pytz version 2018.3]
cycler: yes [using cycler version 0.10.0]
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 [using pyparsing version 2.2.0]
libagg: yes [pkg-config information for 'libagg' could not be found. Using local copy.]
freetype: no [The C/C++ header for freetype2 (ft2build.h) could not be found. You may need to install the development package.]
png: no [pkg-config information for 'libpng' could not be found.]
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: yes [installing, Qt: 4.8.7, PySide: 1.2.2; Qt:
4.8.7, PyQt: 4.8.7]
gtk3agg: yes [installing, version 3.30.22]
gtk3cairo: yes [installing, version 3.30.22]
gtkagg: no [The C/C++ header for gtk (gtk/gtk.h) could not
be found. You may need to install the development package.]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
wxagg: yes [installing, version 3.0.2.0]
gtk: no [The C/C++ header for gtk (gtk/gtk.h) could not
be found. You may need to install the development package.]
agg: yes [installing]
cairo: yes [installing, pycairo version 1.16.2]
windowing: no [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: yes [version 9.26]
latex: yes [version 3.14159265]
pdftops: yes [version 0.62.0]

OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]

============================================================================
* The following required packages can not
be built:
* freetype, png
----------------------------------------
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/jose/OpenPLC_Editor/matiec/config/missing: Unknown `--is-lightweight' option
Try `/home/jose/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... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for bison... bison -y
checking for style of include used by make... GNU
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... none needed
checking whether yytext is a pointer... no
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) gawk
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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_iec/Makefile
config.status: creating config/config.h
config.status: executing depfiles commands
Making all in absyntax
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in absyntax_utils
debug_ast.cc:59:63: warning: invalid suffix on literal; C++11 requires
a space between literal and string macro [-Wliteral-suffix]
if (const_value. _int64.is_valid ()) fprintf(stderr, "%"PRId64"", const_value. _int64.get());
^ debug_ast.cc:64:63: warning: invalid suffix on literal; C++11 requires
a space between literal and string macro [-Wliteral-suffix]
if (const_value._uint64.is_valid ()) fprintf(stderr, "%"PRIu64"", const_value._uint64.get());
^
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in stage1_2
updating iec_bison.hh
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in stage3
array_range_check.cc:138:40: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
{STAGE3_ERROR(0, symbol, symbol, "Array access out of bounds (using constant value of %"PRId64", should be >= %"PRId64").", GET_CVALUE( int64, l->elements[i]), GET_CVALUE( int64, dimension->lower_limit)); continue;}
^
array_range_check.cc:138:101: warning: invalid suffix on literal;
C++11 requires a space between literal and string macro [-Wliteral-suffix]
bol, "Array access out of bounds (using constant value of %"PRId64", should be >= %"PRId64").", GET_CVALUE( int64, l->elements[i]), GET_CVALUE( int64, dimension->lower_limit)); continue;}
^ array_range_check.cc:142:40: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
{STAGE3_ERROR(0, symbol, symbol, "Array access out of bounds (using constant value of %"PRId64", should be >= %"PRIu64").", GET_CVALUE( int64, l->elements[i]), GET_CVALUE(uint64, dimension->lower_limit)); continue;}
^
array_range_check.cc:142:101: warning: invalid suffix on literal;
C++11 requires a space between literal and string macro [-Wliteral-suffix]
bol, "Array access out of bounds (using constant value of %"PRId64", should be >= %"PRIu64").", GET_CVALUE( int64, l->elements[i]), GET_CVALUE(uint64, dimension->lower_limit)); continue;}
^ array_range_check.cc:146:40: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
{STAGE3_ERROR(0, symbol, symbol, "Array access out of bounds (using constant value of %"PRIu64", should be >= %"PRIu64").", GET_CVALUE(uint64, l->elements[i]), GET_CVALUE(uint64, dimension->lower_limit)); continue;}
^
array_range_check.cc:146:101: warning: invalid suffix on literal;
C++11 requires a space between literal and string macro [-Wliteral-suffix]
bol, "Array access out of bounds (using constant value of %"PRIu64", should be >= %"PRIu64").", GET_CVALUE(uint64, l->elements[i]), GET_CVALUE(uint64, dimension->lower_limit)); continue;}
^ array_range_check.cc:150:40: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
{STAGE3_ERROR(0, symbol, symbol, "Array access out of bounds (using constant value of %"PRIu64", should be >= %"PRId64").", GET_CVALUE(uint64, l->elements[i]), GET_CVALUE( int64, dimension->lower_limit)); continue;}
^
array_range_check.cc:150:101: warning: invalid suffix on literal;
C++11 requires a space between literal and string macro [-Wliteral-suffix]
bol, "Array access out of bounds (using constant value of %"PRIu64", should be >= %"PRId64").", GET_CVALUE(uint64, l->elements[i]), GET_CVALUE( int64, dimension->lower_limit)); continue;}
^ array_range_check.cc:155:40: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
{STAGE3_ERROR(0, symbol, symbol, "Array access out of bounds (using constant value of %"PRId64", should be <= %"PRId64").", GET_CVALUE( int64, l->elements[i]), GET_CVALUE( int64, dimension->upper_limit)); continue;}
^
array_range_check.cc:155:101: warning: invalid suffix on literal;
C++11 requires a space between literal and string macro [-Wliteral-suffix]
bol, "Array access out of bounds (using constant value of %"PRId64", should be <= %"PRId64").", GET_CVALUE( int64, l->elements[i]), GET_CVALUE( int64, dimension->upper_limit)); continue;}
^ array_range_check.cc:159:40: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
{STAGE3_ERROR(0, symbol, symbol, "Array access out of bounds (using constant value of %"PRId64", should be <= %"PRIu64").", GET_CVALUE( int64, l->elements[i]), GET_CVALUE(uint64, dimension->upper_limit)); continue;}
^
array_range_check.cc:159:101: warning: invalid suffix on literal;
C++11 requires a space between literal and string macro [-Wliteral-suffix]
bol, "Array access out of bounds (using constant value of %"PRId64", should be <= %"PRIu64").", GET_CVALUE( int64, l->elements[i]), GET_CVALUE(uint64, dimension->upper_limit)); continue;}
^ array_range_check.cc:163:40: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
{STAGE3_ERROR(0, symbol, symbol, "Array access out of bounds (using constant value of %"PRIu64", should be <= %"PRIu64").", GET_CVALUE(uint64, l->elements[i]), GET_CVALUE(uint64, dimension->upper_limit)); continue;}
^
array_range_check.cc:163:101: warning: invalid suffix on literal;
C++11 requires a space between literal and string macro [-Wliteral-suffix]
bol, "Array access out of bounds (using constant value of %"PRIu64", should be <= %"PRIu64").", GET_CVALUE(uint64, l->elements[i]), GET_CVALUE(uint64, dimension->upper_limit)); continue;}
^ array_range_check.cc:167:40: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
{STAGE3_ERROR(0, symbol, symbol, "Array access out of bounds (using constant value of %"PRIu64", should be <= %"PRId64").", GET_CVALUE(uint64, l->elements[i]), GET_CVALUE( int64, dimension->upper_limit)); continue;}
^
array_range_check.cc:167:101: warning: invalid suffix on literal;
C++11 requires a space between literal and string macro [-Wliteral-suffix]
bol, "Array access out of bounds (using constant value of %"PRIu64", should be <= %"PRId64").", GET_CVALUE(uint64, l->elements[i]), GET_CVALUE( int64, dimension->upper_limit)); continue;}
^ array_range_check.cc:202:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRId64") larger than upper limit (%"PRId64").", GET_CVALUE( int64, symbol->lower_limit), GET_CVALUE( int64, symbol->upper_limit));
^
array_range_check.cc:202:71: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
TAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRId64") larger than upper limit (%"PRId64").", GET_CVALUE( int64, symbol->lower_limit), GET_CVALUE( int64, symbol->upper_limit));
^ array_range_check.cc:212:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRIu64") larger than upper limit (%"PRIu64").", GET_CVALUE(uint64, symbol->lower_limit), GET_CVALUE(uint64, symbol->upper_limit));
^
array_range_check.cc:212:71: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
TAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRIu64") larger than upper limit (%"PRIu64").", GET_CVALUE(uint64, symbol->lower_limit), GET_CVALUE(uint64, symbol->upper_limit));
^
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in stage4
Making all in generate_c
In file included from generate_c.cc:525:0:
generate_c_il.cc: In member function ‘virtual void* generate_c_il_c::visit(il_ generate_c_il.cc:957:11: warning: this ‘if’ clause does not guard... [-Wmislea if (nb_param > 0)
^~
generate_c_il.cc:959:13: note: ...this statement, but the latter is misleading if (param_value == NULL) {
^~
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in generate_iec
ar: `u' modifier ignored since `D' is the default (see `U') config.status: creating config/config.h
config.status: config/config.h is unchanged

[FINALIZING]
./install.sh: línea 24: OpenPLC_Editor.desktop: Permiso denegado jose@jose-1005HA:~/OpenPL_Editor $
Reply 0 0
thiagoralves
Since you have a 32-bit system, this gets into the 'unusual' scenario where packages are not prebuilt. It seems that the installation is failing to build matplotlib due to one of its dependencies:
* The following required packages can not
be built:
* freetype, png

Try installing freetype and png dev using apt-get or googling more about this error on your particular system
Reply 0 0
thiagoralves
A quick google search suggested me this: 
sudo apt-get install libfreetype6-dev libxft-dev


source:  https://stackoverflow.com/questions/20533426/ubuntu-running-pip-install-gives-error-the-following-required-packages-can-no
Reply 0 0
jota10
I did it. Thank you. I'm an electronics engineer, but I don't have a job, so I have an old netbook to use. It's hard for me to get a job.
Again thank you very much.

2021-06-24 15:46 GMT-03:00, OpenPLC Forum <noresponse@discussion.community>: > [image: OpenPLC Forum]
Reply 0 0
jota10
Hello. I have another problem. I work on linux and I don't have any device connected. The problem is that the simulation does not work,
that of forcing the inputs. Also when compiling it gives me the following errors.

/home/jose/OpenPLC-proyectos/prueba/build/plc_main.c: In function ‘CheckFilehash’:
/home/jose/OpenPLC-proyectos/prueba/build/plc_main.c:451:2: warning:
ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&size, sizeof(size), 1, retain_buffer);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jose/OpenPLC-proyectos/prueba/build/plc_main.c:457:3: warning:
ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&file_digit, sizeof(char), 1, retain_buffer);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jose/OpenPLC-proyectos/prueba/build/plc_main.c: In function ‘Remind’:
/home/jose/OpenPLC-proyectos/prueba/build/plc_main.c:658:2: warning:
ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread((void *)p, count, 1, retain_buffer);

Thank you
Reply 0 0
thiagoralves
These are not errors, they are just warnings. What do you mean by you can’t force variables? Does it give you an error?
Reply 0 0
jota10
When pressing the "simulation" it does nothing and I want to change
the value of the inputs, for example from false to true, so that it "starts", but it does not allow me because the contextual menu does
not appear where it says "force true", for example. I get a message
that it is connected to a url, but I don't know how to change that situation. Ultimately I cannot simulate it. It doesn't give me any errors, it just doesn't do anything. I am translating this because my English is very poor because I have lost practice. Thanks.
Reply 0 0
thiagoralves
You need to click on the glasses button to observe the instance of the simulation:
A774E230-7D60-44E3-B91A-BCA3FB265784.png 
Reply 0 0
jota10
Tank you so much
Reply 0 0
jota10
Sorry for so many questions. If I modify an element in program0, it
does not update me in Config0.Res0.Instance0. and I can't use the new diagram to simulate.
Reply 0 0
jota10
I found it. When doing the simulation it is updated. Thank you anyway.
Reply 0 0
Reply