codewarrior0/pymclevel — Issue #67: "Module yaml was already imported"
Author: kilorat
Created: 2012-01-17 13:13:30+00:00
State: open

I feel bad for even posting this, but I installed nbt2yaml, which installed PyYAML in /usr/local/lib/python2.7/dist-packages on my system, and now I get this everytime I run mce:

Import error loading precompiled _nbt extension. Trying pyximport...
Accelerated NBT module loaded via pyximport.
/home/minecraft/pymclevel/materials.py:152: UserWarning: Module yaml was already imported from /home/minecraft/pymclevel/yaml/__init__.pyc, but /usr/local/lib/python2.7/dist-packages is being added to sys.path
import pkg_resources
INFO:Identifying /tmp/world
INFO:Detected Infdev level.dat

Yeah its just a warning and mce still runs fine, but is there an easy fix? I can fix it the obvious way and uninstall PyYAML, but I figure maybe one of you smart people know the right way to fix it.