[Ifeffit] Problems importing larch plugins to python

Johan Nilsson johan.nilsson at chalmers.se
Wed Sep 30 07:48:29 CDT 2015


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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20150930/64c2b275/attachment.html>


More information about the Ifeffit mailing list