Skip to content
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

Failing to install on Ubuntu 20.04 #839

Open
m0untain04 opened this issue Jan 23, 2022 · 1 comment
Open

Failing to install on Ubuntu 20.04 #839

m0untain04 opened this issue Jan 23, 2022 · 1 comment

Comments

@m0untain04
Copy link

Hello. I am currently trying to install MHN on my VPS, but I am experiencing some problems.

I've managed to modify some of the files to "bypass" the python errors and got to the initdatabase.py.
But it's giving me some errors..

Initializing database, please be patient. This can take several minutes

  • python initdatabase.py
    Traceback (most recent call last):
    File "initdatabase.py", line 1, in
    from mhn import create_clean_db
    File "/home/mhn-hn/mhn/server/mhn/init.py", line 42, in
    from mhn.ui.views import ui
    File "/home/mhn-hn/mhn/server/mhn/ui/views.py", line 10, in
    from mhn.ui.utils import get_flag_ip, get_sensor_name
    File "/home/mhn-hn/mhn/server/mhn/ui/utils.py", line 15, in
    geoip2_reader = geoip2.database.Reader(MHN_SERVER_HOME+'/../../GeoLite2-City.mmdb')
    File "/home/mhn-hn/mhn/env/lib/python2.7/site-packages/geoip2/database.py", line 86, in init
    self._db_reader = maxminddb.open_database(fileish, mode)
    File "/home/mhn-hn/mhn/env/lib/python2.7/site-packages/maxminddb/init.py", line 46, in open_database
    return maxminddb.reader.Reader(database, mode)
    File "/home/mhn-hn/mhn/env/lib/python2.7/site-packages/maxminddb/reader.py", line 51, in init
    with open(database, "rb") as db_file:

Maybe you guys can help me.

Thanks in advance !

@wrharding
Copy link
Collaborator

There are a number of issues regarding Ubuntu 20.04 and Python 3/2.7 interop. Please see #779 and #793 for potential work arounds. As always, pull requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants