l0b0 / mian

Mine analysis - Graph blocks to height in a Minecraft save game
https://github.com/l0b0/mian/wiki
GNU General Public License v3.0
14 stars 4 forks source link

Error in mian.py #26

Closed C00lzer0 closed 13 years ago

C00lzer0 commented 13 years ago

Hi, i try to run mian on Win7 x64. I have edited the mian.py by changing the as the wiki says ^^, but when i start it i get the following error:

C:\Users\Coolzero\Desktop\l0b0-mian-5f18c81\mian>mian.py -b 09 "C:\Users\Coolzero\AppData\Roaming.minecraft\saves\mcsm"

File "C:\Users\Coolzero\Desktop\l0b0-mian-5f18c81\mian\mian.py", line 334 with GzipFile(fileobj=StringIO(string)) as gzip_file: ^ SyntaxError: invalid syntax

C:\Users\Coolzero\Desktop\l0b0-mian-5f18c81\mian>

Can someone check this please ?

Thanks, C00lzer0

Fenixin commented 13 years ago

Hello!

Which mian version are you running? Can you paste here the lines where you added the "#" as the wiki says?

Can you tell me your python version?

C00lzer0 commented 13 years ago

The mian version is 0.9.2 and phyton is v2.7.2 The lines i have commented out in the mian.py: line 56 -> #from signal import signal, SIGPIPE, SIG_DFL line 121 -> #signal(SIGPIPE, SIG_DFL)

Fenixin commented 13 years ago

I don't know why is this happening, but try commenting out the lines 334, 334 and 335. They are just another way to decompress chunk data, but is unused in practice and that piece of code seems to have problems in your machine (no idea why).

C00lzer0 commented 13 years ago

Well, i think now it's complete broken o_O. I thought the error is, that i have installed phyton x86 on my x64 machine so i downloaded the x64 version of phyton. After installation ofphyton x64 i got the following error:

C:\Users\Coolzero\Desktop\l0b0-mian-5f18c81\mian>mian.py -b 09 "C:\Users\Coolzero\AppData\Roaming.minecraft\saves\mcsm"

Traceback (most recent call last): File "C:\Users\Coolzero\Desktop\l0b0-mian-5f18c81\mian\mian.py", line 53, in import matplotlib.pyplot as plt File "C:\Python27\lib\site-packages\matplotlibinit.py", line 135, in from matplotlib.rcsetup import (defaultParams, File "C:\Python27\lib\site-packages\matplotlib\rcsetup.py", line 19, in from matplotlib.colors import is_color_like File "C:\Python27\lib\site-packages\matplotlib\colors.py", line 52, in import numpy as np ImportError: No module named numpy

I've deinstalled phyton x64 and installed the x86 version again but the error is the same :(. Any ideas ?

Fenixin commented 13 years ago

Ah! this looks better :) matplotlib needs numpy, is it installed? If so you maybe need to reinstall it. You said you read the wiki, so sure you installed it, reinstall it using the x86 or x64, depending of your python version and try again. (here is the link)

C00lzer0 commented 13 years ago

Thanks a lot Fenixin, now it works :).

I have downloaded "numpy-1.6.1-win32-superpack-python2.7.exe", "matplotlib-1.0.1.win32-py2.7.exe" and installed it. This solved the problem. I think the error in this case was the link to the x64 version of the matplotlib from the wiki while the other downloads are for x86 architecture.

Fenixin commented 13 years ago

Glad it worked! :D

(close the issue is everything it's ok)