[yt-users] ImportError: No module named amr_utils

Florian Bürzle florian.buerzle at uni-konstanz.de
Mon Jul 11 07:22:57 PDT 2011


Hi Cameron!

Thank for your answer! 

Indeed, I had installed yt using the installer script before, and it worked nicely. However, my intention to install yt from the repo was to somehow 'unclutter' my hard disk as it is not my philosophy to have the same software packages or libraries installed several times...sometimes this is unavoidable (MacPorts!) but I just want to keep these exceptions as rare as possible :)

Florian


Am 11.07.2011 um 15:56 schrieb Cameron Hummels:

> Hi Florian,
> 
> I also had some problems running yt with Enthought Python a while back.  I seem to recall that h5py is broken in EPD, which isn't creating the error that you're experiencing here, but it will cause problems later on in your use of yt.  Anyway, I don't know the reason for your specific troubles here, I can only recommend what I did to fix this issue: install yt using the installer script.  The installer script will download and create a new instance of python 2.7, along with all of the yt dependencies.  You should then be able to use that new python and yt with no problems.  Of course, I realize that it would be nice to have yt run within your existing python installation, so perhaps one of the other users can comment on why it isn't working here.  Good luck!
> 
> Cameron
> 
> On 7/11/11 9:43 AM, Florian Bürzle wrote:
>> Hi!
>> 
>> I've tried to get the hg version of yt working on my Mac Book Pro (OS X 10.6.8) using EPD Python 7.1., however unsuccessfully. I chose the development version 
>> 
>> hg up -C yt
>> 
>> and performed the installation by using 'python setup.py install', and everything seemed to work fine (I captured the screen output in install_log.txt, attached). However, trying to import yt.mods gives the following error:
>> 
>> Enthought Python Distribution -- 
>> www.enthought.com
>> 
>> Version: 7.1-1 (32-bit)
>> 
>> Python 2.7.2 |EPD 7.1-1 (32-bit)| (default, Jul  3 2011, 15:40:35) 
>> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
>> Type "packages", "demo" or "enthought" for more information.
>> 
>>>>> from yt.mods import *
>>>>> 
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File "yt/mods.py", line 45, in <module>
>>     from yt.data_objects.api import \
>>   File "yt/data_objects/api.py", line 34, in <module>
>>     from hierarchy import \
>>   File "yt/data_objects/hierarchy.py", line 39, in <module>
>>     from yt.utilities.io_handler import io_registry
>>   File "yt/utilities/io_handler.py", line 28, in <module>
>>     import yt.utilities.amr_utils as au
>> ImportError: No module named amr_utils
>> 
>> 
>> 
>> Many thanks in advance for your help!
>> 
>> Best regards 
>> Florian
>> 
>> 
>> 
>> 
>> _______________________________________________
>> yt-users mailing list
>> 
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

-----------------------------------------------------------------------------------------------------------
Florian Bürzle
University of Konstanz
Department of Physics, Group Prof. Nielaba
Universitätsstr. 10
78464 Konstanz, Germany
tel: +49 7531 88 3790
web: http://cms.uni-konstanz.de/physik/nielaba/mitarbeiter/florian-buerzle/
-----------------------------------------------------------------------------------------------------------




More information about the yt-users mailing list