I can't install mhn server ..is there any thing i have to do before installing it?
(١)The directory '/home/osboxes/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/osboxes/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
0
This worked for me:
$ sudo chown -R root /home/$USERNAME/.cache/pip/
$ sudo chown -R root /home/$USERNAME/.cache/pip/http/
Note: Use this way only if you always use pip as root. Otherwise pip may not use the cache directories since they are owned by root
(٢)DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting virtualenv
(٣)WARNING: Generating metadata for package hpfeeds-dev produced metadata for project name hpfeeds-threatstream. Fix your #egg=hpfeeds-dev fragments.
(٤) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='
pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/sphinxcontrib-httpdomain/
WARNING: Generating metadata for package hpfeeds-dev produced metadata for project name hpfeeds-threatstream. Fix your #egg=hpfeeds-dev fragments.
Collecting Sphinx==1.2.3
Downloading Sphinx-1.2.3-py2-none-any.whl (1.9 MB)
|████████████████████████████████| 1.9 MB 29 kB/s
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='
pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/sphinxcontrib-httpdomain/
(٦)Initializing database, please be patient. This can take several minutes
+ python initdatabase.py
Traceback (most recent call last):
File "initdatabase.py", line 5, in <module>
create_clean_db()
File "/opt/mhn/server/mhn/__init__.py", line 116, in create_clean_db
db.create_all()
File "/opt/mhn/env/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 963, in create_all
self._execute_for_all_tables(app, bind, 'create_all')
File "/opt/mhn/env/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 955, in _execute_for_all_tables
op(bind=self.get_engine(app, bind), **extra)
File "/opt/mhn/env/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 896, in get_engine
return connector.get_engine()
File "/opt/mhn/env/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 556, in get_engine
self._sa.apply_driver_hacks(self._app, info, options)
File "/opt/mhn/env/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 861, in apply_driver_hacks
info.database = os.path.join(app.root_path, info.database)
AttributeError: can't set attribute
Error: restart requires a process name
restart <name> Restart a process
restart <gname>:* Restart all processes in a group
restart <name> <name> Restart multiple processes or groups
restart all Restart all processes
Note: restart does not reread config files. For that, see reread and update.
.........
How will i fix that ?????