kumarabhinav
I have found errors while installing OpenPLC editor in Ubuntu 22.04. I have faced following errors:

ERROR: Command errored out with exit status 1:
   command: /usr/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-U19GYV/sslpsk/setup.py'"'"'; __file__='"'"'/tmp/pip-install-U19GYV/sslpsk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-FNA1A9
       cwd: /tmp/pip-install-U19GYV/sslpsk/
  Complete output (22 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/sslpsk
  copying sslpsk/__init__.py -> build/lib.linux-x86_64-2.7/sslpsk
  copying sslpsk/sslpsk.py -> build/lib.linux-x86_64-2.7/sslpsk
  creating build/lib.linux-x86_64-2.7/sslpsk/test
  copying sslpsk/test/__init__.py -> build/lib.linux-x86_64-2.7/sslpsk/test
  copying sslpsk/test/__main__.py -> build/lib.linux-x86_64-2.7/sslpsk/test
  copying sslpsk/test/test_sslpsk.py -> build/lib.linux-x86_64-2.7/sslpsk/test
  running build_ext
  building 'sslpsk._sslpsk' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/sslpsk
  x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-W40Ff2/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c sslpsk/_sslpsk.c -o build/temp.linux-x86_64-2.7/sslpsk/_sslpsk.o
  sslpsk/_sslpsk.c:17:10: fatal error: Python.h: No such file or directory
     17 | #include <Python.h>
        |          ^~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for sslpsk



Please explain me the reason of error. 
If it's any issue please resolve it ASAP.


Also after Installation with above error. I can see the icon of OpenPLC but unable to launch it also it is not launched by command line too.
./openplc_editor.sh


Throw following error.

I think above errors are the reason behind this.

ImportError: No module named wx

Reply 0 0
thiagoralves

Please explain me the reason of error. 
If it's any issue please resolve it ASAP.

Please become an OpenPLC Friends Sponsor ASAP so that you can get your problems solved ASAP 😉
Or.. you can buy an expensive PLC programming suite from Siemens, or Rockwell, and get ASAP support 24/7
Reply 0 0
kumarabhinav
Okay don't need to resolve ASAP 🙂. Take your time and resolve it if possible.

Regards
Kumar Abhinav 
Reply 0 0
thiagoralves
Fixed ASAP for you just because you were nice this time
Reply 0 0
kumarabhinav

Please become an OpenPLC Friends Sponsor ASAP so that you can get your problems solved ASAP ðŸ˜‰
Or.. you can buy an expensive PLC programming suite from Siemens, or Rockwell, and get ASAP support 24/7


Sorry sir. 

I am ready to become friend, by contributing code, bug report, bug solving and testing / documentation or tutorial development.

Thanks for your reply 🙂.

Regards
Kumar Abhinav 
Reply 0 0
kumarabhinav
Fixed ASAP for you just because you were nice this time


Sir, Now I have clone your repository  at  GitHub  https://github.com/thiagoralves/OpenPLC_Editor
and install using the command:

git clone https://github.com/thiagoralves/OpenPLC_Editor.git
cd OpenPLC_Editor/
./install.sh


Everything went well this time I think because of your changes made in the files for Ubuntu 22.04.
But I am facing error when I want to change my branch from master --> dev-python3 using following command

git checkout dev-python3
error: Your local changes to the following files would be overwritten
by checkout:
matiec/.deps/main.Po
Please commit your changes or stash them before you switch branches.
error: The following untracked working tree files would be overwritten
by checkout:
matiec/iec2c
matiec/iec2iec
Please move or remove them before you switch branches.
Aborting


error is facing due to some uncommitted files.
Kindly have a look.


Thanks for reading.

----
Regards
Kumar Abhinav
Reply 0 0
thiagoralves
dev-python3 is a totally different project. You should clone it in a different folder with the --branch option. There is no installer for that branch. You will have to install dependencies by hand (which are different from the dependencies of the master version). Also, keep in mind that this is a development branch, so expect bugs to happen all the time.
Reply 0 0
Reply