Skip to content

Error running 0.12.90 #1275

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

Closed
Rycieos opened this issue Feb 9, 2016 · 3 comments
Closed

Error running 0.12.90 #1275

Rycieos opened this issue Feb 9, 2016 · 3 comments
Assignees

Comments

@Rycieos
Copy link
Contributor

Rycieos commented Feb 9, 2016

I get the following error after updating to 0.12.90. It worked fine on 0.12.87. Minecraft version is 1.8.9 and OS is CentOS 6 if that matters.

Command:
VANILLA_WORLD="/home/mark/vanillaMinecraft/world" overviewer.py --config=/home/mark/mcmaps/overviewer.config --genpoi --skip-scan

Output:

2016-02-09 13:19:00 E An error has occurred. This may be a bug. Please let us know!
See http://docs.overviewer.org/en/latest/index.html#help

This is the error that occurred:
Traceback (most recent call last):
  File "/usr/bin/overviewer.py", line 605, in <module>
    ret = main()
  File "/usr/bin/overviewer.py", line 130, in main
    g.genPOI.main()
  File "/usr/lib64/python2.6/site-packages/overviewer_core/aux_files/genPOI.py", line 514, in main
    PlayerDict.load_cache(destdir)
  File "/usr/lib64/python2.6/site-packages/overviewer_core/aux_files/genPOI.py", line 216, in load_cache
    with gzip.GzipFile(cache_file) as gz:
AttributeError: GzipFile instance has no attribute '__exit__'

Config file:

import os

worlds['Vanilla'] = os.environ['VANILLA_WORLD']

def playerLocations(poi):
    if poi['id'] == 'Player':
        poi['icon'] = "http://minotar.net/avatar/%s/32" % poi['EntityId']
        return "Current location for %s" % poi['EntityId']

def playerSpawns(poi):
    if poi['id'] == 'PlayerSpawn':
        poi['icon'] = "http://minotar.net/avatar/%s/32" % poi['EntityId']
        return "Spawn location for %s" % poi['EntityId']

def locations(poi):
    if poi['id'] == 'Location':
        return poi['name']

renders["vanillaOverworldDay"] = {
    'world': 'Vanilla',
    'title': 'Overworld Day',
    'rendermode': [Base(), EdgeLines(), SmoothLighting(strength=0.5)],
    'dimension': 'overworld',
    'northdirection': 'upper-right',
    'manualpois':[
                  {'id':'Location',
                   'x':-234,
                   'y':70,
                   'z':-700,
                   'name':'Aroughs'}
                 ],
    'markers': [dict(name="Locations", filterFunction=locations, createInfoWindow=False),
                dict(name="Players", filterFunction=playerLocations, createInfoWindow=False),
                dict(name="Player Spawn Points", filterFunction=playerSpawns, createInfoWindow=False)],
}

renders["vanillaOverworldNight"] = {
    'world': 'Vanilla',
    'title': 'Overworld Night',
    'rendermode': [Base(), EdgeLines(), SmoothLighting(night=True, strength=0.8)],
    'dimension': 'overworld',
    'northdirection': 'upper-right',
}

renders["vanillaNether"] = {
    'world': 'Vanilla',
    'title': 'Nether',
    'rendermode': [Base(), EdgeLines(), Nether(), SmoothLighting(strength=0.4)],
    'dimension': 'nether',
    'northdirection': 'upper-right',
}

outputdir = "/home/mark/mcmaps"
texturepath = "/home/mark/mcmaps/faithful32pack.zip"
processes = 3
@CounterPillow
Copy link
Member

That one is probably my fault. I'll look into it soon.

@CounterPillow CounterPillow self-assigned this Feb 9, 2016
@CounterPillow
Copy link
Member

Should be fixed in 4e77ba8, thanks for reporting this.

@Rycieos
Copy link
Contributor Author

Rycieos commented Feb 13, 2016

Can confirm was fixed in 0.12.91. Thanks!

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

No branches or pull requests

2 participants