Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Error in mian.py #26

Closed
C00lzer0 opened this issue Jul 21, 2011 · 7 comments
Closed

Error in mian.py #26

C00lzer0 opened this issue Jul 21, 2011 · 7 comments

Comments

@C00lzer0
Copy link

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
Copy link
Collaborator

Fenixin commented Jul 21, 2011

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
Copy link
Author

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)

@C00lzer0 C00lzer0 reopened this Jul 21, 2011
@Fenixin
Copy link
Collaborator

Fenixin commented Jul 21, 2011

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
Copy link
Author

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\matplotlib__init__.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
Copy link
Collaborator

Fenixin commented Jul 21, 2011

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
Copy link
Author

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
Copy link
Collaborator

Fenixin commented Jul 21, 2011

Glad it worked! :D

(close the issue is everything it's ok)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants