[PyFeyn] Issues running examples on

Antonio Carlos Amaro de Faria Junior atoni.carlos at gmail.com
Sun Dec 27 11:36:00 GMT 2015


Dear Pyfeyn developers,

I thank you in advance for any assistance you may be able to offer with my problem. I would like to use PyFeyn on a project as it looks like it will be extremely useful for my work on this.

I tried to run your examples and am, in all cases receiving an error on the call of FeynDiagram().Draw()

See stack trace for the Higgs Loop example below:

Traceback (most recent call last):
  File "test1.py", line 15, in <module>
    fd.draw("pyfeyn-test1.pdf")
  File "build/bdist.macosx-10.9-intel/egg/pyfeyn/diagrams.py", line 69, in draw
  File "build/bdist.macosx-10.9-intel/egg/pyfeyn/diagrams.py", line 61, in drawToCanvas
  File "build/bdist.macosx-10.9-intel/egg/pyfeyn/lines.py", line 329, in draw
  File "/Library/Python/2.7/site-packages/PyX-0.12-py2.7.egg/pyx/canvas.py", line 298, in stroke
    self.draw(path, [deco.stroked]+list(attrs))
  File "/Library/Python/2.7/site-packages/PyX-0.12-py2.7.egg/pyx/canvas.py", line 284, in draw
    adeco.decorate(dp, self.texrunner)
  File "build/bdist.macosx-10.9-intel/egg/pyfeyn/deco.py", line 46, in decorate
  File "build/bdist.macosx-10.9-intel/egg/pyfeyn/deco.py", line 16, in getarrowpath
NameError: global name 'self' is not defined

I am running Python 2.7.5 with pyX 0.12 and PyFeyn 0.3.4. on Mac OSX 10.9 Is there a possible version conflict? I’ll be happy to try other versions if applicable.

Many thanks,

Farias 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/pyfeyn/attachments/20151227/ad2db040/attachment.html>


More information about the PyFeyn mailing list