Podshot / MCEdit-Unified

Combined MCEdit & Pymclevel repository.
http://podshot.github.io/MCEdit-Unified/
ISC License
484 stars 109 forks source link

Can't run on Ubuntu 20.04; package providing python gtk module (python-gtk2) no longer available #1001

Open juozaspo opened 4 years ago

juozaspo commented 4 years ago

Description of Issue:

MCedit-Unified does not run in Ubuntu 20.04 LTS. It requires a gtk module which is no longer available on Ubuntu repositories as it requires python package which is removed from 20.04 LTS. Pip package for python2 is missing too. Packages python2 & python3 are available though.

MCEdit Version:

90abfb170c65b877ac67193e717fa3a3ded635dd (latest available git master)

Minecraft Version the world was last opened in:

N/A

Operating System:

Ubuntu Linux 20.04 LTS

A screenshot or full text of the error from the console:

juozas@xubuntu:~/MCEdit/MCEdit-Unified$ ./mcedit.sh 
Starting MCEdit...
Running in fixed mode. Support files are in your Documents folder.
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Splash load...
[ ****** ] ~~~~~~~~~~ Starting MCEdit-Unified v1.6.0.0
Traceback (most recent call last):
  File "mcedit.py", line 114, in <module>
    import keys
  File "/home/juozas/MCEdit/MCEdit-Unified/keys.py", line 4, in <module>
    import albow
  File "/home/juozas/MCEdit/MCEdit-Unified/albow/__init__.py", line 16, in <module>
    from albow.fields import TextField, FloatField, IntField, TimeField, TextFieldWrapped, Field
  File "/home/juozas/MCEdit/MCEdit-Unified/albow/fields.py", line 21, in <module>
    import pyperclip
  File "/home/juozas/MCEdit/MCEdit-Unified/pyperclip.py", line 179, in <module>
    raise Exception('Pyperclip requires the gtk module installed or the xclip command.')
Exception: Pyperclip requires the gtk module installed or the xclip command.
Press any key to close.

How to reproduce:

freundTech commented 4 years ago

Ubuntu 20.04 dropped support for python2 in favour of python3. MCEdit still depends on python2 and a python3 port is unlikely to happen. You could try to get it to work using pyenv or install the necessary dependencies manually. Amulet, the work in progress successor to MCEdit will support python3.