Code Monkey home page Code Monkey logo

Comments (14)

svigerske avatar svigerske commented on August 17, 2024 8

I worked around it by adding

@@ -765,6 +765,9 @@ class AstWalker(NodeVisitor):
         # Remove the item we pushed onto the containing nodes hierarchy.
         containingNodes.pop()
 
+    def visit_Constant(self, node, **kwargs):
+        super().visit_Constant(node);
+
     def parseLines(self):
         """Form an AST for the code and produce a new version of the source."""
         inAst = parse(''.join(self.lines), self.inFilename)

But the other visit_* functions do so much more so that I wonder whether calling only the function from the upper class will be sufficient. (I have no idea about the functionality of this code.)

from doxypypy.

dcdolson avatar dcdolson commented on August 17, 2024 5

For what it's worth, I got this issue the first time I tried doxypypy, on the first module I tried it on. It does not seem like an obscure corner case, rather seems to make this tool unusable.

from doxypypy.

alexander-dammeier avatar alexander-dammeier commented on August 17, 2024 1

Will the pull request be merged into a new release? We had the same problem in one of our projects.

from doxypypy.

alexdewar avatar alexdewar commented on August 17, 2024 1

Hello! I'm still getting this issue. Is there any chance of merging this PR? Would really help me out 😃

from doxypypy.

Feneric avatar Feneric commented on August 17, 2024 1

Sure, it's maintained, but it's also pretty stable and already working for a lot of people and I'm hesitant to commit changes that don't have any tests backing them up. It's not my day job and requests can only be serviced when I'm free, and if I have to write tests for changes to it myself I have to commit a lot more time up front.

from doxypypy.

fer-rum avatar fer-rum commented on August 17, 2024

I wonder if this could be triaged by just adding a dummy that takes the additional argument.

from doxypypy.

fer-rum avatar fer-rum commented on August 17, 2024

Thank you for sharing :)

I think it would be worth a pull request and be it only to direct attention to the issue and maybe provide a starting point for a complete fix.

from doxypypy.

Feneric avatar Feneric commented on August 17, 2024

Generally I try to merge pull requests that don't break existing tests and cover all new functionality with new tests pretty quickly (with the understanding that I typically only get to review things some weeknights and most weekends).

from doxypypy.

AokiAhishatsu avatar AokiAhishatsu commented on August 17, 2024

Hello! I'm still getting this issue. [...]

+1

from doxypypy.

IceTDrinker avatar IceTDrinker commented on August 17, 2024

Getting this issue as well
Is the project still maintained ? Last update looks ancient

Cheers

from doxypypy.

IceTDrinker avatar IceTDrinker commented on August 17, 2024

Sounds fair, existing tests seem to be failing on my computer though (python 3.8). Which version of python are supposed to be supported ?

from doxypypy.

dcdolson avatar dcdolson commented on August 17, 2024

This seems to be working better when pulling and building from source. The dockerhub image I was using had an out-of-date version.

from doxypypy.

esaule avatar esaule commented on August 17, 2024

BTW, I see have a similar issue. I upgraded to debian 11 today and updated doxypypy. I get this error:

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

from doxypypy.

Feneric avatar Feneric commented on August 17, 2024

All 3.8 problems should now be fixed.

from doxypypy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.