Hi Johann,
On Wed, Sep 30, 2015 at 7:48 AM, Johan Nilsson
Hello everyone,
I recently installed the latest development version of larch from github and now I'm having some problems importing larch plugins to my python scripts. I read in the documentation that there is a new method for doing this but that the old way should still work, this is what happens if I try to do it the way I've done it before:
johan@johan-Latitude-E6430:~$ python Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.
from larch import use_plugin_path use_plugin_path('xafs') from pre_edge import pre_edge Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/johan/.larch/plugins/xafs/pre_edge.py", line 13, in <module> from larch_plugins.std import parse_group_args ImportError: No module named larch_plugins.std
I also tried the new method described in the docs:
johan@johan-Latitude-E6430:~$ python Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import larch from larch_plugins.xafs import autobk Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named larch_plugins.xafs
I'm running ubuntu 14.04. Any ideas of what is going on here?
Best regards, Johan
Sorry for the trouble. I broke this recently. For now, do import larch larch.enable_plugins() from larch_plugins.xafs import autobk I'll fix this soon (and then look for a better solution for what I thought I was trying to accomplish by not doing this automatically!). --Matt Newville