PyScada icon indicating copy to clipboard operation
PyScada copied to clipboard

Installing and Getting Started PyScada

Open nadim4114 opened this issue 1 year ago • 3 comments

Hey Guys, I am installing PyScada in Ubuntu 20.04 LTS version. I have created this issue for any help and support required for setup if I face any problem.

I am following documentation and found the below two instructions to setup PyScada :

  1. https://pyscada.readthedocs.io/en/main/installation.html

I am stuck at this place : https://pyscada.readthedocs.io/en/main/installation.html#initialize-database-and-copy-static-files

I am getting below errors : root@ubuntu:/var/www/pyscada/PyScadaServer# sudo -u pyscada python3 manage.py collectstatic

You have requested to collect static files at the destination location as specified in your settings.

This will overwrite existing files! Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: yes Traceback (most recent call last): File "manage.py", line 22, in main() File "manage.py", line 18, in main execute_from_command_line(sys.argv) File "/usr/local/lib/python3.8/dist-packages/django/core/management/init.py", line 442, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.8/dist-packages/django/core/management/init.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 412, in run_from_argv self.execute(*args, **cmd_options) File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 458, in execute output = self.handle(*args, **options) File "/usr/local/lib/python3.8/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 209, in handle collected = self.collect() File "/usr/local/lib/python3.8/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 135, in collect handler(path, prefixed_path, storage) File "/usr/local/lib/python3.8/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 368, in copy_file if not self.delete_file(path, prefixed_path, source_storage): File "/usr/local/lib/python3.8/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 278, in delete_file if self.storage.exists(prefixed_path): File "/usr/local/lib/python3.8/dist-packages/django/core/files/storage/filesystem.py", line 165, in exists return os.path.lexists(self.path(name)) File "/usr/local/lib/python3.8/dist-packages/django/contrib/staticfiles/storage.py", line 39, in path raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.

There is also one more tutorial : https://pyscada.readthedocs.io/en/main/quick_install.html

Can you tell me which one tutorial should I follow to start with and what is the difference between both of them?

nadim4114 avatar May 14 '24 03:05 nadim4114

I tried below tutorial also and got errors. https://pyscada.readthedocs.io/en/main/quick_install.html

Log file is attached here. logs_install.txt

nadim4114 avatar May 14 '24 04:05 nadim4114

The documentation from https://pyscada.readthedocs.io/en/main/installation.html is not up to date. How did you get this url ? It should be deleted or updated (to explain a manual installation).

For the log from the script install :

  • You get this error : error: invalid command 'bdist_wheel' As said here can you try to install wheel in the virtual environment ?
source /home/pyscada/.venv/bin/activate
sudo -u pyscada -E env PATH=${PATH} pip install wheel
  • You get this error : django.db.utils.NotSupportedError: MariaDB 10.4 or later is required (found 10.3.39). As said here django 4.2 needs MariaDB>10.4. Upgrade your ubuntu version or install mariadb manually to get the version > 10.4

clavay avatar May 14 '24 08:05 clavay

If the problem is solved, please close the issue.

clavay avatar Aug 28 '24 08:08 clavay

Please reopen if needed.

clavay avatar Oct 17 '24 13:10 clavay