[PyFeyn] problem using pyfeyn

Viesturs Veckalns viesturs.veckalns at cern.ch
Fri Jan 15 19:42:59 GMT 2016


Hello!
I would like to use PyFeyn for drawing Feynman diagrams. For this I made a system wide installation with

sudo python setup.py install

and tested the example http://pyfeyn.hepforge.org/pyfeyn-test1.py

However, I immediately got a problem which has to do with pyfeyn and pyx - see below. What is going wrong?

Cheers,
Viesturs

v at viesturs_lip:~$ python test_pyfeyn.py
Traceback (most recent call last):
  File "test_pyfeyn.py", line 26, in <module>
    fd.draw("pyfeyn-test1.pdf")
  File "/usr/local/lib/python2.7/dist-packages/pyfeyn/diagrams.py", line 69, in draw
    c = self.drawToCanvas()
  File "/usr/local/lib/python2.7/dist-packages/pyfeyn/diagrams.py", line 61, in drawToCanvas
    obj.draw(self.currentCanvas)
  File "/usr/local/lib/python2.7/dist-packages/pyfeyn/lines.py", line 329, in draw
    canvas.stroke(path, styles)
  File "/usr/lib/python2.7/dist-packages/pyx/canvas.py", line 298, in stroke
    self.draw(path, [deco.stroked]+list(attrs))
  File "/usr/lib/python2.7/dist-packages/pyx/canvas.py", line 284, in draw
    adeco.decorate(dp, self.texrunner)
  File "/usr/local/lib/python2.7/dist-packages/pyfeyn/deco.py", line 46, in decorate
    1, self.size, 45, constrictionlen)
  File "/usr/local/lib/python2.7/dist-packages/pyfeyn/deco.py", line 16, in getarrowpath
    1, selfsize, 45, self.constriction,
NameError: global name 'self' is not defined

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/pyfeyn/attachments/20160115/403c3683/attachment.html>


More information about the PyFeyn mailing list