0xb105cafe
Hi.
 
I run the update.cmd in OpenPLC_Editor folder. Output:
 
>>>>>>>>>>>>>>>
C:\Users\user016\OpenPLC_Editor>update.cmd
C:\Users\user016\OpenPLC_Editor>set gitdir=C:\Users\user016\OpenPLC_Editor\pgit
C:\Users\user016\OpenPLC_Editor>set path=C:\Users\user016\OpenPLC_Editor\pgit\cmd;C:\Users\user016\OpenPLC_Editor\pgit\cmd;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;c:\MinGW\bin;c:\msys\1.0\bin;C:\Program Files\PuTTY\;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility;C:\Program Files (x86)\Atmel\sam-ba_2.18\drv\;C:\Program Files (x86)\Atmel\sam-ba_2.18;C:\Users\user016\AppData\Local\Microsoft\WindowsApps;C:\Users\user016\AppData\Roaming\npm;c:\Program Files\srecord\bin\;
C:\Users\user016\OpenPLC_Editor>if exist .\new_editor\ rmdir /s /Q new_editor
C:\Users\user016\OpenPLC_Editor>if exist .\OpenPLC_Editor\ rmdir /s /Q OpenPLC_Editor
C:\Users\user016\OpenPLC_Editor>git clone https://github.com/thiagoralves/OpenPLC_Editor
Cloning into 'OpenPLC_Editor'...
remote: Enumerating objects: 5645, done.
remote: Counting objects: 100% (1173/1173), done.
remote: Compressing objects: 100% (464/464), done.
remote: Total 5645 (delta 763), reused 961 (delta 650), pack-reused 4472
Receiving objects: 100% (5645/5645), 205.52 MiB | 10.59 MiB/s, done.
Resolving deltas: 100% (3143/3143), done.
Updating files: 100% (1150/1150), done.
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'editor/images/Transfer.png'
'editor/images/transfer.png'
C:\Users\user016\OpenPLC_Editor>if exist .\OpenPLC_Editor\editor\ (
move .\OpenPLC_Editor\editor .\new_editor
move .\OpenPLC_Editor\matiec\lib .\new_lib
copy /y .\OpenPLC_Editor\revision .\
rmdir /s /Q OpenPLC_Editor
echo "Update applied successfully"
) else (echo "Error cloning from repository!" )
1 папок перемещено.
1 папок перемещено.
Скопировано файлов: 1.
"Update applied successfully"
C:\Users\user016\OpenPLC_Editor>
<<<<<<<<<<<<<<<
 
Wen run the OpenPLC_Editor - it shows:
[203128%2F8409957%2Fmceclip0]
 
And the logfile content:
>>>>>>>>>>>>>>>>>
app-title:
beremiz
app-version:
2.01
Release: 2023-10-18
cwd:
C:\Users\user016\OpenPLC_Editor
date:
Thu Oct 19 11:18:35 2023
e-type:
<type 'exceptions.ImportError'>
e-value:
No module named jinja2
locals:
hashlib: None
shutil: None
WeakKeyDictionary: None
tempfile: None
__builtins__: {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'memoryview': <type 'memoryview'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2018 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-Z plus Return to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, '_': <function GetTranslation at 0x035935B0>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <built-in function pow>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-Z plus Return to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'WindowsError': <type 'exceptions.WindowsError'>}
reduce: None
__file__: None
traceback: None
datetime: None
absolute_import: None
__package__: None
re: None
time: None
__name__: None
os_platform: None
os: None
__doc__: None
codecs: None
localtime: None
platform:
Windows-10-10.0.19041
python-version:
2.7.15
traceback:
File ".\editor\Beremiz.py", line 203, in AppStart
self.BackgroundInitialization()
File ".\editor\Beremiz.py", line 136, in BackgroundInitialization
self.ImportModules()
File ".\editor\Beremiz.py", line 179, in ImportModules
mod = __import__(modname)
File "C:\Users\user016\OpenPLC_Editor\editor\BeremizIDE.py", line 71, in <module>
from ProjectController import ProjectController, GetAddMenuItems, MATIEC_ERROR_MODEL
File "C:\Users\user016\OpenPLC_Editor\editor\ProjectController.py", line 45, in <module>
from jinja2 import PackageLoader, Environment, FileSystemLoader
<type 'exceptions.ImportError'>: No module named jinja2
wx-platform:
__WXMSW__
wx-version:
3.0.2.0
<<<<<<<<<<<<<<<<<
 
It seems I still need to use the old version...
All in b105.
Reply 0 0
thiagoralves
Thank you for the detailed bug report. Unfortunately not everyone does that. In your case, that’s an easy fix. Download the new installer from Autonomy website: https://autonomylogic.com and reinstall. The last update brought live debugging support to OpenPLC, and part of it requires Jinja2 which is not included in the original editor.
Reply 1 0
0xb105cafe
Wow!
It is working!
Huge thanks!!!
All in b105.
Reply 1 0
murilo
Same problem here, I fixed on WIN10 just  installing jinja2

C:\Users\%user%\OpenPLC_Editor\python>python.exe -m pip install Jinja2

Viel spass,
Murilo
Reply 0 0
castanedaj305
murilo wrote:
Same problem here, I fixed on WIN10 just  installing jinja2

C:\Users\%user%\OpenPLC_Editor\python>python.exe install jinja2

Viel spass,
Murilo
how do you specifically install the jinja2. 
Thank you in advance!
Reply 0 0
murilo
Hi there,

sorry, my bad (typing)

Win10 :

[windowskey]+[R key]
type cmd
cd OpenPLC_Editor\python
python.exe -m pip install Jinja2
Reply 0 0
thiagoralves
Just download the new editor from autonomylogic.com and install. Everything is fixed now
Reply 1 0
castanedaj305
Just download the new editor from autonomylogic.com and install. Everything is fixed now

It works already, thank you so much!

Reply 0 0
Write a reply...
Reply