Feneric / doxypypy

A more Pythonic version of doxypy, a Doxygen filter for Python.
GNU General Public License v2.0
149 stars 49 forks source link

TypeError: unexpected keyword argument 'containingNodes' #93

Closed NekiMedo closed 1 year ago

NekiMedo commented 2 years ago

Throws TypeError exception; Python 3.10.5 on Debian bookworm

  File "/home/somebody/.local/bin/doxypypy", line 8, in <module>
    sys.exit(main())
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 830, in main
    astWalker.parseLines()
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 743, in parseLines
    self.visit(inAst)
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 569, in visit
    return visitor(node, containingNodes=containingNodes)
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 594, in visit_Module
    self.generic_visit(node, containingNodes=kwargs.get('containingNodes',
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 553, in generic_visit
    self.visit(item, containingNodes=kwargs['containingNodes'])
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 569, in visit
    return visitor(node, containingNodes=containingNodes)
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 735, in visit_ClassDef
    self.generic_visit(node, containingNodes=containingNodes)
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 553, in generic_visit
    self.visit(item, containingNodes=kwargs['containingNodes'])
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 569, in visit
    return visitor(node, containingNodes=containingNodes)
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 555, in generic_visit
    self.visit(value, containingNodes=kwargs['containingNodes'])
  File "/home/somebody/.local/lib/python3.10/site-packages/doxypypy/doxypypy.py", line 569, in visit
    return visitor(node, containingNodes=containingNodes)
TypeError: NodeVisitor.visit_Constant() got an unexpected keyword argument 'containingNodes'
AjeyDikshit commented 2 years ago

I was facing the same issue, while i was using doxypypy from the PyPi (pip install doxypypy), try to uninstall the previous version and re install it using "pip install git+https://github.com/Feneric/doxypypy". This fixed the issue for me.

mbusy commented 2 years ago

@AjeyDikshit Thanks, your solution worked for me! I see that the last PyPi release dates back to 2015, is a new release planned?

onuralpszr commented 1 year ago

@Feneric hello, I recently started packaging doxypypy in Fedora latest release indeed has TypeError problems on tests, and It would be nice to have new release If possible to have it. So I can also serve better version of "doxypypy" as well. I can fix all errors by patch, but I rather have new release If it is ready to be released.

Thank you.

Feneric commented 1 year ago

@Feneric hello, I recently started packaging doxypypy in Fedora latest release indeed has TypeError problems on tests, and It would be nice to have new release If possible to have it. So I can also serve better version of "doxypypy" as well. I can fix all errors by patch, but I rather have new release If it is ready to be released.

Sorry it's been awhile, real world stuff has been keeping me busy elsewhere. I'll try and see if I can quickly push a point release with the few collected fixes that are already in source tonight.

Thank you.

You're welcome.

Feneric commented 1 year ago

OK, assuming I didn't mess up anything in the new point release, this fix should now be available straight from the Cheese Shop.