-
Notifications
You must be signed in to change notification settings - Fork 481
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
ModuleNotFoundError: No module named 'overviewer_core' #1595
Comments
This is because we need separate packages for Ubuntu now, since it ships a newer version of Python than Debian. |
And what kind of packages are needed for this? (Sorry for my bad english) |
I just downloaded this today, and I was hoping to use it on my Linux Mint laptop, only to find that I have the exact issue, with running the command simply returning an error: Traceback (most recent call last):
File "/usr/bin/overviewer.py", line 38, in <module>
from overviewer_core import util
ModuleNotFoundError: No module named 'overviewer_core' I saw this above;
What do we need to do to fix this for linux users? |
You can build from source until there are pre-built packages available for you. Instructions for this can be found in the documentation. |
I had to clone and build from master in order for it to get to work today. |
The issue for me was the debian package wanted python3.5. On Ubuntu I typed:
Rather than move everything over to 3.6 (my current |
Good day for all. Sorry for my english in advance. I'm using Ubuntu 18.04 and met this issue some time ago. To repair this I tried to build overviewer from source, but met the same issue while building, don't remember what was exact message, something like this: "ModuleNotFoundError: No module named 'distutils.core'".
|
I have a working Docker build environment based on Ubuntu 18.04: build.Dockerfile FROM ubuntu:18.04
RUN apt-get -y update
RUN apt-get -y install git wget curl
RUN apt-get -y install python3 python3-pil python3-numpy
RUN apt-get -y install build-essential python3-dev devscripts create-buildimage.sh #!/bin/bash
docker build --rm \
-t mc-overview -f build.Dockerfile . Testimage.Dockerfile FROM mc-overview
RUN git clone --single-branch --branch master \
https://github.com/overviewer/Minecraft-Overviewer.git MOV
RUN cd MOV &&\
ls -l &&\
curl -O https://raw.githubusercontent.com/python-pillow/Pillow/master/src/libImaging/Imaging.h;\
curl -O https://raw.githubusercontent.com/python-pillow/Pillow/master/src/libImaging/ImagingUtils.h ;\
curl -O https://raw.githubusercontent.com/python-pillow/Pillow/master/src/libImaging/ImPlatform.h
RUN cd MOV && python3 setup.py build &&\
python3 overviewer.py --verbose --version
WORKDIR /MOV
This is still WIP, but whith this set of packages the build works as expected. |
the bigger issue is that we need to separate the repo into different codenames. Currently we tell people to add the following source: Notice the So realistically we have to separate this into the different codenames and warn people that they need to update their sources.list. |
Basically you're going to need at least stretch (Debian 9), buster (Debian 10), bullseye (Debian 11), bionic (Ubuntu 18.04), and disco (Ubuntu 19.04). Maybe also xenial (Ubuntu 16.04) if people have servers still running it. |
I was also using Ubuntu 18.04 via Docker and got the same issue upon updating. As a workaround (and alternative to install from source) I downgraded to using an older version of Debian.
|
It boggles my mind people would prefer using outdated systems rather than installing 3 packages and running one command, but ok dude lmao |
Just in case here's how to building from source on debian buster (and probably all the other debian based distro like ubuntu). Might be great to temporary become root : apt install python3-pil python3-dev python3-numpy
cd /usr/local/src
git clone git://github.com/overviewer/Minecraft-Overviewer.git
cd Minecraft-Overviewer
python3 setup.py build
ln -s /usr/local/src/Minecraft-Overviewer/overviewer.py /usr/local/bin/mcoverviewer That last command allows you to call overviewer.py from any user of the system by typing Btw thanks for the awesome project took me no time to setup and run. It's always satisfying. |
Because some people have more to consider on their servers than just 3 packages and others run their Minecraft servers on the LTS of their distro because they don't want to have to deal with full system rebuilds every 12 months |
Hi, I just found overviewer and wanted to use it. My Minecraft server runs on Ubuntu 18.04
I have installed all required packages as described. Unfortunately I got this error nevertheless. I can't tell from the above articles which OS is the right one, except the article with Docker. |
@thrusty66 remove the package, remove the repo, then build from source using our instructions. |
The package from the repo is expecting Python 3.5, and putting the modules there, rather than being more flexible about the version. I hope this helps correct the issues for people. |
It's a bit more involved than this, the reason why the c_overviewer extension is in a version-specific Python directory is because the ABI between Python releases can and does change. It's not just "oh it's in the wrong directory" but "oh it's built for a different version of Python". |
Exactly. I symlinked it, and it did not help. The location was just the clue to what the issue was. I built from source and that worked fine, but hoped that this could help those maintaining the Debian packages. |
So is this a matter of every single version of Python only able to run programs compiled in that very exact specific version? Or is it something specific to 3.6 that broke some key backward compatibility? |
No. For performance reasons some of Overviewer is written in C rather than Python. That means that it has to integrate directly with the Python interpreter itself. In programing terms it uses an application binary interface (ABI). Whilst different versions of the Python interpreter can all run the same Python code and generate the same results (bar any documented changes) behind the scenes there can be quite radical changes in how the interpreter itself works. For that reason the python devs can't guarantee that stuff using the ABI will work between different versions, so require any extensions using the ABI to be specifically compiled for that version of Python. This means that Overviewer needs to be specifically built for each version of Python. |
Hi, I have a Minecraft Server vanilla 1.15.2 runing on a VPS (Debian 10). I tried first to install Overviewer as described in http://docs.overviewer.org/en/latest/installing/, but I get the error: Traceback (most recent call last):
File "/usr/bin/overviewer.py", line 38, in <module>
from overviewer_core import util
ModuleNotFoundError: No module named 'overviewer_core' So I tried to build from source, doing: - sudo apt-get install build-essential
- sudo apt install python3-pil python3-dev python3-numpy
- cd /usr/local/src
- sudo git clone git://github.com/overviewer/Minecraft-Overviewer.git
- cd Minecraft-Overviewer
- sudo python3 setup.py build
- ln -s /usr/local/src/Minecraft-Overviewer/overviewer.py /usr/local/bin/mcoverviewer
- overviewer.py /home/mc/server/world /home/mc/mcmap But I still have the previous error. Reading more carefully what @SkullMasher wrote, I tried: - mcoverviewer /home/mc/server/world /home/mc/mcmap And it looks better, even if I have an other error: 2020-04-27 20:14:13 Welcome to Minecraft Overviewer!
2020-04-27 20:14:13 Generating textures...
2020-04-27 20:14:13 E Your system is missing either assets/minecraft/textures/colormap/foliage.png or assets/minecraft/textures/colormap/grass.png. Either complement your resource pack with these texture files, or install the vanilla Minecraft client to use as a fallback.
2020-04-27 20:14:13 E Could not find the textures while searching for 'assets/minecraft/textures/colormap/foliage.png'. Try specifying the 'texturepath' option in your config file.
Set it to the path to a Minecraft Resource pack.
Alternately, install the Minecraft client (which includes textures)
Also see <http://docs.overviewer.org/en/latest/running/#installing-the-textures>
(Remember, this version of Overviewer requires a 1.15-compatible resource pack)
(Also note that I won't automatically use snapshots; you'll have to use the texturepath option to use a snapshot jar) This last error is pretty clear, I will fix it. But I also understand that I have 2 versions of Overviewer installed on my server: the one I installed with |
|
Same problem on Debian GNU/Linux 10 "Buster" x64 - SOLVEDTraceback (most recent call last): The following worked for me: If you still have installed not working repository version, type:
1a. activate root account if not already done ... 1b. become root by typing OR 2. install possibly missing python packages 3. clone git repository
4. run python setup for it
5. set softlink to /usr/local/bin/ for easy use The command If you worked as root, type
Now assuming the following:
First Run
Now be patient ;-) And enjoy :-D (results in _Greets from the FichdlMaa_ |
Awesome result with
Mny Tnx to dev team !!! |
Confirmed that fichdlmaa's instructions work on Ubuntu 18.04 Bionic. Thank you for these instructions! I still feel like this is something that should work "out of the box" if it's going to be an apt repo. While this works, it breaks trusting "sudo apt update" to actually keep all my software up to date. The onus is back on the user/admin to check to see if there is a new version of Minecraft-overviewer available and keep it up to date. |
Surely! Ubuntu, LinuxMint and much more are all based on Debian. I tried to only use bash commands. |
True enough, but its simple enough to set up a cron job with a git pull and rebuild commant to run once a month. |
Then it's (also) a documentation bug. The instructions say to use Apt (on Debian). The instructions are wrong. |
The documentation is accurate for the platforms it was tested against. That said, last I checked, overviewer is a free open source project. There's buttons up top for submitting pull requests. I have submitted several documentation updates myself in the past. |
It's not really a PR thing. Whoever maintains the apt repository needs to start making separate releases for various stable versions of Debian and Ubuntu. |
I replied to someone complaining about documentation. The ppa repo is a courtesy. You could always set up your own. |
not to beat a dead horse, but I love what you did here and think that providing a publicly available docker image instead of an apt source would stop the repetitive comments about this "issue" and would take a lot less time than making separate repo's for builds on various systems, requiring more work for any updates made. |
Use the python3 dependency determined by dh-python3. The current package is installable but not usable on systems with a newer release of python3 than on the build system (see overviewer/Minecraft-Overviewer#1595).
Use the python3 dependency determined by dh-python. The current package is installable but not usable on systems with a newer release of python3 than on the build system (see overviewer/Minecraft-Overviewer#1595).
Upgraded (via apt; ubuntu 18.04.2) this morning from
0.13.90-0~overviewer1 to 0.14.2-0~overviewer1
. Since the upgrade it crashes immediately with the following error message.(from overviewer.log)
Let me know what further information you would like and I'm happy to supply it. It was running great before the upgrade.
(full message from apt/history.log from my 'sudo apt dist-upgrade')
The text was updated successfully, but these errors were encountered: