Working on Installing Amulet on Ubuntu

Forums SparkQuest Spark Crafters Working on Installing Amulet on Ubuntu

  • profmag

    Administrator
    October 28, 2020 at 3:35 pm

    Trying to run seems to cause a bunch of issues.

    Issue 1: Ubuntu’s default version of Python is 2.7. Python 3.7+ is required and my install of pip and wx modules where in 3.8. This requires resetting the default python version. This worked:

    1. First, navigate to /usr/bin and see which versions of Python are installed. I had 2.7 and 3.8.

    2. Set 3.8 as first choice and 2.7 as second choice using:

    sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
    sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 2

    Check your Python version:

    python --version

    Issue 2: The modules and packages Amulet is trying to use are having issues:

    python ~/amulet/main.py
    Traceback (most recent call last):
    File "/home/[user]/amulet/main.py", line 1, in <module>
    import wx
    File "/home/ben/.local/lib/python3.8/site-packages/wx/__init__.py", line 17, in <module>
    from wx.core import *
    File "/home/ben/.local/lib/python3.8/site-packages/wx/core.py", line 12, in <module>
    from ._core import *
    ImportError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory

    This seems to be an unmet dependency issue. This was fixed by installing some packages:

    sudo apt-get install git curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0

    Now Amulet opens with this command:

    python ~/amulet/main.py
  • profmag

    Administrator
    October 28, 2020 at 3:55 pm

    Amulet crashed when clicking on the “3D Editor” tab after openning a superflat map.

    Seems to be a current issue with Amulet on Ubuntu 20.04: https://github.com/Amulet-Team/Amulet-Map-Editor/issues/84

    Since there’s currently no fix, I’m abandoning this until the developer makes further progress.

Log in to reply.