sergei
hello,

I'm tried the new version of OpenPLC .

first i needed to install "python-zeroconf" .

Then when i create a new project, no problems.

but when i want to add a "POU", for exemple the POU "program" i get this:
plceditorerror.png 
Reply 0 0
thiagoralves
I had another user reporting a similar problem, but I can't reproduce it. Can you provide more details about your platform (Linux distro, etc) and the step by step instructions for the error? I just ran it on a Windows PC (both x64 and x86 versions) and on a Ubuntu 18.04 machine, and I could create new projects and POUs without errors.

edit: due to the type of error, I believe it might be related to language. Is your system language English? If not, can you temporarily change your system language to English and try again, just to see if the error is related to that.
Reply 0 0
sergei
tested on debian, ubuntu and linux mint debian edition with the same error.
But you're right, the problem came from the language setting.
In English it works.
Reply 0 0
skv

Hi, Sergei,

I've tried to create project with current Russian locale. I don't see the issue. I'm on Debian Testing/Buster.

$ LC_ALL=ru_RU.utf-8 ./Beremiz.py


Could you describe in more details your setup?
Does full path to Beremiz directory contains non-latin characters?
Have you tried latest Beremiz version from source code repo?


Thiago, could you please follow Beremiz version in your openPLC editor? There is no PLCOpenEditor 1.3 so far. And please include commit hast, so it's clear what snapshot of the repo you are using.

Reply 0 0
thiagoralves
The version on OpenPLC website is up to date with the latest commit (  https://bitbucket.org/automforge/beremiz/commits/52afa2dec4fb89ec2ebb3284a618ad3852b71d84 ). I'll add the commit hash on the website so its easier to track which version it is. However, I try to keep the code up to date because I know there are optimizations and new features all the time. Sometimes it just takes a while because I like to test the new version a bit before creating the installer.

Anyway, the problem is happening with PLCOpenEditor, not Beremiz. I started it with Russian locale on a Ubuntu 18.04 machine and was able to see the error:

LC_ALL=ru_RU.utf-8 python PLCOpenEditor.py

Capture.png 

PS: It was pretty hard to find my way through with everything in Russian. Good thing that I remembered the position of all menus... ðŸ˜
Reply 0 0
sergei
You two gave me a good idea.
I run PLCeditor like this :
LC_ALL=en_US.utf-8 python PLCOpenEditor.py

and it works perfectly.
Reply 0 0
thiagoralves
sergei, I have fixed the error. Please download the editor again from OpenPLC website and try it on your machine. Please let me know if there are other problems on your platform as well.
Reply 0 0
sergei
tested windows version this morning on windows 7 , i see a bug . I think "its windows...".
but now , at home on linux, the same bug.

But it works , i can add a POU and create a program.
but in classes , if i choose something else than "locale" , i get this :
plceditor2.png 
it was a manipulation error this morning...i dont know why , i wanted to set inputs and outputs in place of "locale".
and in V2 , i dont have this error.
Reply 0 0
thiagoralves
Fixed! Try it again and let me know if it works for you.
Reply 0 0
sergei
work perfectly.
thanks.
Reply 0 0
skv
Thiago, have you fixed it only at this particular place or at many others as well?
Reply 0 0
thiagoralves
I’ve fixed it on PouDialog.py and VariablePanel.py. I used the same fix I sent you. I don’t know if it happens anywhere else.
Reply 0 0
Reply