-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No log file #137
Comments
The logs are in
The migrations are done using the
Why do you try to make the migrations ? |
Installation works without error. I get migration error when I manually go to '/var/www/pyscada/PyScadaServer' and say 'sudo python3 manage.py migrate'. I will need to migrate when I add a model to the project am I wrong. Also about install_venv.sh, what is the difference between it and install.sh. I want to use venv, which one should I use. Just to be clear I want to tell you how I install this. start venv, install this git repo, run install.sh isn't this correct |
Also there is another thing where i need to do migration. Adding plugins. I need to add pyscada-modbus and according to this guide "https://pyscada.readthedocs.io/en/main/plugin_install.html" I need to migrate. However it gives me the url error |
You should be able to run the migration manually.
As explained here, the install process is :
|
Please send me the log of the commands you pass and the error you get. |
@Aliefe02 Can you send me the result of |
(venv) ubuntu@ubuntu:~/Desktop/AGScada/PyScada-Modbus$ sudo -E env PATH=${PATH} pip3 install pyscada-modbus (venv) ubuntu@ubuntu:~/Desktop/AGScada/PyScada-Modbus$ sudo python3 /var/www/pyscada/PyScadaServer/manage.py migrate |
(.venv) ubuntu@ubuntu:/var/www/pyscada/PyScadaServer$ sudo -E env PATH=${PATH} pip3 list asgiref 3.7.2 |
I copied this file "https://github.com/pyscada/PyScada/tree/main/pyscada" into the "/var/www/pyscada/PyScadaServer" folder because this folder is exaclty what is missing according to the error with pyscada.core.url. Then i run migration and there is no error, however on the application i still cant see modbus |
Your pyscada-modbus installation is not working, it does not appear in the pip list. You should not need to copy anything in the You should not run the migration using sudo as specified in https://pyscada.readthedocs.io/en/main/plugin_install.html Please retry the PyScada-Modbus installation respecting the commands in https://pyscada.readthedocs.io/en/main/plugin_install.html and show me the logs of these commands :
|
Oh okay now it works, thx a lot very helpful. By the way just as an advice, in the installation part it says debian and derivatives but I tried this in linux mint, linux mint debian and kali linux and the auto installation always gave error. Also the installation broke my mysql and i couldnt use mysql anymore, it just doesnt start and never respond. However in ubuntu it worked without an error. So if you could recommend using ubuntu that would make it easier for future installations |
ok, strange that it broke you mysql installation. Do you have the error ? |
Sorry, I formatted that installation. |
I am using ubuntu 22.4 and python 3.10. I am installing using quick installation. After installation program works and i can access it and add devices etc. However I have some problems.
1 - No log file is created at /var/www/pyscada/pyscadaserver/pyscada_debug.log. This file doesn't exist
2 - When i run migrations it gives error that there is no file pyscada.core.urls. When i manually copy the pyscada folder which is inside the github repo into the project folder where manage.py is located, that error is gone but i am not sure if it is the correct solution
3 -(venv) ubuntu@ubuntu:/var/www/pyscada/PyScadaServer$ sudo python3 manage.py makemigrations
Traceback (most recent call last):
File "/var/www/pyscada/PyScadaServer/manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/usr/local/lib/python3.10/dist-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.10/dist-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/local/lib/python3.10/dist-packages/django/apps/config.py", line 193, in create
import_module(entry)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pyscada'
The text was updated successfully, but these errors were encountered: