05-18-2020, 03:30 PM
(This post was last modified: 05-18-2020, 03:30 PM by remkonoteboom.)
The tactic_paths.py file is located somewhere in the site-packages folder for your Python3 version. This will depend greatly on version (python2 vs python3) and which distribution you are using (Ubuntu, etc). To find out if it is even installed, you can run python from the python command line
This shows the path of this file. If it wasn't installed correctly, you would not even see this module and you would not even be able to run "python startup.py" as it would error our immediately not being able to find the "tacticenv" module.
Your problem is likely because the apache cannot see the "context" folder.
"Loading failed for the <script> with source “http://x.x.x/context/spt_js/chart/utils.js?ver=4.7.0.b02”."
If you click on this link to open it (http://x.x.x/context/spt_js/chart/utils....=4.7.0.b02), it will tell you more what the problem is. Alternatively, you can go to the error_log files for apache (for RHEL, these are located in /var/log/httpd/). My guess is that this is a permission error when the user running TACTIC is not permitted to see the "context" folder in the TACTIC source. The following lines give this permission to apache:
However, it could also be a file permission. Make sure the user running apache is allowed to read the TACTIC source folder "context".
Code:
Python 3.7.7 (default, Mar 13 2020, 10:23:39)
[GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tacticenv
>>> tacticenv.__path__
['/usr/lib/python3.7/site-packages/tacticenv']
>>>
This shows the path of this file. If it wasn't installed correctly, you would not even see this module and you would not even be able to run "python startup.py" as it would error our immediately not being able to find the "tacticenv" module.
Your problem is likely because the apache cannot see the "context" folder.
"Loading failed for the <script> with source “http://x.x.x/context/spt_js/chart/utils.js?ver=4.7.0.b02”."
If you click on this link to open it (http://x.x.x/context/spt_js/chart/utils....=4.7.0.b02), it will tell you more what the problem is. Alternatively, you can go to the error_log files for apache (for RHEL, these are located in /var/log/httpd/). My guess is that this is a permission error when the user running TACTIC is not permitted to see the "context" folder in the TACTIC source. The following lines give this permission to apache:
Code:
<Directory "/opt/tactic/tactic" >
Options FollowSymLinks
AllowOverride None
# Apache < 2.4
#Order Allow,Deny
#Allow from All
# Apache 2.4
Require all granted
</Directory>
However, it could also be a file permission. Make sure the user running apache is allowed to read the TACTIC source folder "context".