-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Amulet won't instal (Arch/Pyth3.9) #281
Comments
The launch command should be 'python3 -m amulet_map_editor'. The key is the '-m' option. I also used 'python3' because you need to ensure python 3.x is used instead of 2.x, but it might not be necessary. |
That did make some progress, but now when I do that it just does this
|
Did you create a (venv) virtual environment? What is listed when you run 'pip list' ? |
That's what I get when i run that, that's in a virtual environment as well |
It appears too me that you're missing a few dependencies. For example, I'd expect to see amulet-core and wxPython. amulet-core should have been included automatically (and easily). wxPython can be a pain since seems to often require manual building. Try rerunning the install: 'pip install --upgrade amulet-map-editor' and see if you get any interesting warnings or errors. I would expect amulet-core to install at least unless an error is blocking it. If wxPython doesn't get installed as a dependency you can manually install it with pip. I'd recommend version 4.1.0, but I don't know what is causing the problem (on my install) with the latest version 4.1.1 so it might work fine with python 3.9 (I have 3.7). Anyway be prepared to try both and if wxPython has to be built there may be other system tools and libraries to install. This page (https://www.wxpython.org/pages/downloads/) will provide details to possibly use a prebuilt wxPython wheel which should avoid build dependencies if it works for your system. |
I have just updated the install instructions on the website. |
That's what I get when I run pip install --upgrade amulet-map-editor' in the virtual enviroment, i see amulet core so it looks like it's in there. I'll see if building from source will work, this system isn't good at compiling, overheated the first attempt at trying this, but I can try giving that a shot. Virtual Enviroment
|
The issue with wheel needing manually installing for the nbt library should be fixed in the release I am about to put out |
I'm actually not sure the Linux version is ever gonna be good. Having to use a virtual environment is wonky as shit and now it's not even working on Linux (I even tried straight up git cloning the resository and this "SetDefaultLoadFlags" error still doesn't seem to be fixed). The Windows version should hypothetically run with wine if one can get wxWidgets working on wine, but in the meanwhile I'm just gonna boot into Windows and use that version... |
Looking through the documentation Python virtual environments are fairly normal. It makes it possible to have different versions of a library installed that are required by different programs. Without it you would need to install the correct version each time you want to switch between programs. |
There are some deeper issues on linux related to the opengl canvas and the ui overlayed on top which I am not sure how to solve. I need to do some tests with Qt to see if it has the same issues but if it doesn't I plan to switch. For now if you have access to Windows I would suggest using that. |
I'm not sure if I'm the other half of "you both", but I believe the OP and I both do use a virtual environment for our Amulet installs. wxPython 4.1.1 causes #247 for me while 4.1.0 works fine. I would guess the difference in errors is the result of the version of Python (i.e. I run 3.7 and OP runs 3.9). @Akan9021, please try wxPython 4.1.0 if you can. It will probably require some build dependencies and take about 5 minutes to complete. |
Here's the resolution for the wxPython 4.1.1 issue - #247 (comment):
Please try again and let's us know what you get. BTW, virtual environments are a necessity with anything but the simplest of Python installations. Without them you will quickly run into the Python incarnation of "DLL Hell". They are a bit odd, but a simple application launch script can hide that awkwardness. |
Well, I tried it again, and it just...worked. I got the same errors as I did before, but at some point I downloaded the source and ran |
And now I can definitely confirm that it sucks on Linux. The UI flickers constantly, and it turns out this has been an open issue since November - #127 - and very little if anything has been done about it. It is barely usable, if it all, and the fact this was opened in November goes to show me that, sadly, not a single dev here actually uses Linux, which is unfortunate. So for now, I would not even bother. I am just biting the bullet and continuing to use the Windows version, because the Linux version is horrible anyways If you are insane enough to use the Linux release, download 0.8.6 because for some reason - at least on my end - on 0.8.5 the 3d viewer straight up didn't even appear. |
I am not sure if the flickering is solvable with the current UI library. I spent a week trying to solve it on Mac before giving up. |
I had the same problem, just typing : EDIT : |
I thought there wasn't a Linux build of wxpython on pip and even if there is I don't think it will work on all flavours of Linux. |
I personally think that having a support for debian or at least ubuntu since it's the most used platform on Linux, instead of having no support at all. |
If you removed that line all flavours would try installing the pip version. Some flavours would error while installing making it not possible to install Amulet at all. |
We could possibly make a Linux script that when ran, would generate a Then we would just modify the Linux install instructions to have the user run that script before continuing the install process |
This could work. |
I had a look into moving it into the setup.py but from what I remember they removed the ability to tell flavours apart at some point so I couldn't work out how to do it |
I am not sure what this bug ticket was even for originally. It mostly just looks like trying to help one user install it on linux. |
Has this bug already been reported? Please check if there is a bug report already open that matches this.
Describe the bug
When I try running the installer from source via "python -m pip install amulet-map-editor --upgrade". It doesn't work out.
I followed the guided instructions but when I use
python amulet_map_editor
, it errors out saying it can't find the directory, even when i use Python3, I tested these in a virtual enviroment and it didn't work, First attempts errored out with wheel but even installing that first didn't change anything, i just getpython3: can't open file '/home/user/amulet_map_editor': [Errno 2] No such file or directory
To Reproduce
Steps to reproduce the behavior:
python3 -m pip install amulet-map-editor --upgrade
python3 amulet_map_editor
afterwardExpected behavior
The program opens up
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: