/usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or directory
Moderator: moderator
/usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or directory
I updated OpenEMM from OMT.sh and now when I start OMT.sh I get this error message :/usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/.. /scripts/OMT.py': [Errno 2] No such file or directory. What could be the problem? I understand that it cannot find the file OMT.py. This file is currently located in /home/openemm/tomcat/bin. Does it have to be somewhere else? Maybe in /home/openemm/scripts ? Is there a way to do a rollback without accessing the OMT menu?
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: /usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or director
The path of the error message looks strange, is that the complete output?
We will look into it.
We will look into it.
OpenEMM Maintainer
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: /usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or director
Manual fix: Please change last line in shell script OMT.sh
to
Or wait for a new runtime version, which we will provide soon.
Code: Select all
${PYTHON} "${scriptDir}/../scripts/OMT.py" $@
Code: Select all
if test -e "${scriptDir}/../scripts/OMT.py"; then {
${PYTHON} "${scriptDir}/../scripts/OMT.py" $@
} else {
${PYTHON} "${scriptDir}/OMT.py" $@
} fi
OpenEMM Maintainer
Re: /usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or director
Hi,
i can install openemm-runtime-21.10.044.tar.gz and this works fine.
I can install openemm-runtime-22.04.008.tar.gz and this works fine.
Both on AlmaLinux 9.1
But a clean install of openemm-runtime-22.10.013.tar.gz gives this error message
But you can´t upgrade from 008 to 013, i get this error message
AND
you recommended change ends in this error message....
So i wait for a installer that has passed verification ...
i can install openemm-runtime-21.10.044.tar.gz and this works fine.
I can install openemm-runtime-22.04.008.tar.gz and this works fine.
Both on AlmaLinux 9.1
But a clean install of openemm-runtime-22.10.013.tar.gz gives this error message
Code: Select all
:/usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/.. /scripts/OMT.py': [Errno 2] No such file or directory.
Code: Select all
=============================================
= OpenEMM Maintenance Tool (OMT) v22.10.014 =
=============================================
Root mode: On
Hostname: localhost.localdomain
TypeError: 'NoneType' object is not iterable
./OMT.sh: Zeile 138: Syntaxfehler beim unerwarteten Symbol »then«
./OMT.sh: Zeile 138: ` = "yes" ]; then {'
[root@localhost native]# ls /home/
you recommended change ends in this error message....
Code: Select all
Checking python installation ...
Python version found: 3.9.14 (/usr/bin/python3)
Checking Zip installation ...
Zip version 3.0 found
Starting python ...
KeyError: 'openemm'
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: /usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or director
How does the last code line of your OMT.sh look like?
OpenEMM Maintainer
Re: /usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or director
Before modification
nano /home/openemm/bin/OMT.sh
After modification
nano /home/openemm/bin/OMT.sh
nano /home/openemm/bin/OMT.sh
Code: Select all
echo "Starting python ..."
${PYTHON} "${scriptDir}/../scripts/OMT.py" $@
nano /home/openemm/bin/OMT.sh
Code: Select all
echo "Starting python ..."
if test -e "${scriptDir}/../scripts/OMT.py"; then {
${PYTHON} "${scriptDir}/../scripts/OMT.py" $@
} else {
${PYTHON} "${scriptDir}/OMT.py" $@
} fi
Re: /usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or director
Could you please start OMT in debug modus and tell me what is the response?
Use command:
OMT.sh -debug
Use command:
OMT.sh -debug
Re: /usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or director
New installation from scratch with AlmaLinux 9.1
I used openemm-runtime-22.10.014.tar.gz
[root@localhost bin]# ./OMT.sh -debug
Checking python installation ...
Python version found: 3.9.14 (/usr/bin/python3)
Checking Zip installation ...
Zip version 3.0 found
Starting python ...
Traceback (most recent call last):
File "/home/openemm/tomcat10/bin/OMT.py", line 158, in <module>
main()
File "/home/openemm/tomcat10/bin/OMT.py", line 81, in main
Environment.init()
File "/home/openemm/tomcat10/bin/EMT_lib/Environment.py", line 154, in init
Environment.readSystemValues()
File "/home/openemm/tomcat10/bin/EMT_lib/Environment.py", line 315, in readSystemValues
DbConnector.dbcfgEntry = DbConnector.dbcfgProperties[DbConnector.applicationDbcfgEntryName]
KeyError: 'openemm'
I used openemm-runtime-22.10.014.tar.gz
[root@localhost bin]# ./OMT.sh -debug
Checking python installation ...
Python version found: 3.9.14 (/usr/bin/python3)
Checking Zip installation ...
Zip version 3.0 found
Starting python ...
Traceback (most recent call last):
File "/home/openemm/tomcat10/bin/OMT.py", line 158, in <module>
main()
File "/home/openemm/tomcat10/bin/OMT.py", line 81, in main
Environment.init()
File "/home/openemm/tomcat10/bin/EMT_lib/Environment.py", line 154, in init
Environment.readSystemValues()
File "/home/openemm/tomcat10/bin/EMT_lib/Environment.py", line 315, in readSystemValues
DbConnector.dbcfgEntry = DbConnector.dbcfgProperties[DbConnector.applicationDbcfgEntryName]
KeyError: 'openemm'
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: /usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or director
Please post the content of your dbcfg file (without password).
OpenEMM Maintainer
Re: /usr/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or director
This is the dbcfg in a clean installation
Code: Select all
emm: dbms=, host=localhost, user=, password=, name=openemm