Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash when using tool #70

Open
SourceCodeDeleted opened this issue Jun 21, 2022 · 4 comments
Open

crash when using tool #70

SourceCodeDeleted opened this issue Jun 21, 2022 · 4 comments
Labels

Comments

@SourceCodeDeleted
Copy link

Hello this crashed when I use it. I wonder if it is out of date for the latest python because I was warned about the verbose argument not being supported

TypeError: namedtuple() got an unexpected keyword argument 'verbose'

I commented these out and now I receive the following when I run that application.

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/cpip/core/PpLexer.py", line 554, in _genPpTokensRecursive
    myTtt = next(theGen)
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "CPIPMain.py", line 1562, in <module>
    sys.exit(main())
  File "CPIPMain.py", line 1532, in main
    result = preprocessFileToOutput(inPath, args.output, jobSpec)
  File "CPIPMain.py", line 1287, in preprocessFileToOutput
    myTokCntr, mySetItuLines = Tu2Html.processTuToHtml(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/cpip/Tu2Html.py", line 177, in processTuToHtml
    for t in theLex.ppTokens(incWs=True, minWs=True, condLevel=theCondLevel):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/cpip/core/PpLexer.py", line 451, in ppTokens
    for aTok in self._genPreIncludeTokens():
  File "/home/ubuntu/.local/lib/python3.8/site-packages/cpip/core/PpLexer.py", line 358, in _genPreIncludeTokens
    for aTok in self._genPpTokensRecursive(myGen):
RuntimeError: generator raised StopIteration

Is this a known issue ? Is there more which I can do ? Is this supported still?

@ned14 ned14 added the bug label Jun 23, 2022
@ned14
Copy link
Owner

ned14 commented Jun 23, 2022

TBH I'm still on Python 3.7 personally, so I'd never see any breakages from newer Pythons. Can you perhaps give a clearer exact repro for me to execute to replicate the problem?

@assarbad
Copy link
Contributor

assarbad commented Nov 13, 2022

@SourceCodeDeleted could you specify the version (or Git rev) with which you encountered this? I have locally set up Python 2.7 and 3.7 through 3.11 using pyenv and I am not getting anything like that when running the tests or the code from master (2ad25f1, and fbc7a3cbc6e57d18462453dc65ba2c985fd6ac21 for ply). I only tested python3.8 -m pcpp.pcmd, though (but all tests across _all Python versions).

In fact I don't even see a reference to namedtuple. So where are you getting that?

@assarbad
Copy link
Contributor

Wait a minute, @SourceCodeDeleted ... I think you picked the wrong project to report your issue. After taking a closer look at the paths in your stacktrace I think you meant to report this over here. E.g. the first mentioned file in your case - cpip/core/PpLexer.py - seems to refer to this file.

@ned14 I think this can be closed no matter what.

@assarbad
Copy link
Contributor

assarbad commented Dec 1, 2022

@ned14 this ticket can be closed. It doesn't refer to your project, even.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants