Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 853916 Details for
Bug 701878
dev-python/pycparser-2.19-r1 - src_compile(): python3_7: ModuleNotFoundError: No module named 'lextab'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Debugging patch
prints.patch (text/plain), 2.85 KB, created by
Michał Górny
on 2023-02-22 15:46:42 UTC
(
hide
)
Description:
Debugging patch
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2023-02-22 15:46:42 UTC
Size:
2.85 KB
patch
obsolete
>diff --git a/pycparser/_build_tables.py b/pycparser/_build_tables.py >index 958381a..24863f7 100644 >--- a/pycparser/_build_tables.py >+++ b/pycparser/_build_tables.py >@@ -25,6 +25,7 @@ from pycparser import c_parser > > # Generates the tables > # >+print(">>> calling cparser") > c_parser.CParser( > lex_optimize=True, > yacc_debug=False, >@@ -32,6 +33,7 @@ c_parser.CParser( > > # Load to compile into .pyc > # >+print(">>> importing") > import lextab > import yacctab > import c_ast >diff --git a/pycparser/ply/lex.py b/pycparser/ply/lex.py >index 4bdd76c..d76d17e 100644 >--- a/pycparser/ply/lex.py >+++ b/pycparser/ply/lex.py >@@ -204,6 +204,7 @@ class Lexer: > for statename, ef in self.lexstateeoff.items(): > tabeof[statename] = ef.__name__ if ef else None > tf.write('_lexstateeoff = %s\n' % repr(tabeof)) >+ print(f">>> written into {filename}") > > # ------------------------------------------------------------ > # readtab() - Read lexer information from a tab file >@@ -862,6 +863,7 @@ class LexerReflect(object): > # ----------------------------------------------------------------------------- > def lex(module=None, object=None, debug=False, optimize=False, lextab='lextab', > reflags=int(re.VERBOSE), nowarn=False, outputdir=None, debuglog=None, errorlog=None): >+ print(">>> in ply.lex") > > if lextab is None: > lextab = 'lextab' >@@ -910,6 +912,7 @@ def lex(module=None, object=None, debug=False, optimize=False, lextab='lextab', > raise SyntaxError("Can't build lexer") > > if optimize and lextab: >+ print(f">>> reading {lextab}") > try: > lexobj.readtab(lextab, ldict) > token = lexobj.token >@@ -918,6 +921,7 @@ def lex(module=None, object=None, debug=False, optimize=False, lextab='lextab', > return lexobj > > except ImportError: >+ print(">>> import failed") > pass > > # Dump some basic debugging information >@@ -1040,8 +1044,10 @@ def lex(module=None, object=None, debug=False, optimize=False, lextab='lextab', > srcfile = getattr(sys.modules[pkgname], '__file__', '') > outputdir = os.path.dirname(srcfile) > try: >+ print(f">>> writing {lextab}") > lexobj.writetab(lextab, outputdir) > except IOError as e: >+ print(f">>> failed: {e}") > errorlog.warning("Couldn't write lextab module %r. %s" % (lextab, e)) > > return lexobj >diff --git a/setup.py b/setup.py >index f729ac4..2151093 100644 >--- a/setup.py >+++ b/setup.py >@@ -21,8 +21,10 @@ def _run_build_tables(dir): > class install(_install): > def run(self): > _install.run(self) >+ print(">>> before exec") > self.execute(_run_build_tables, (self.install_lib,), > msg="Build the lexing/parsing tables") >+ print(">>> after exec") > > > class sdist(_sdist):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 701878
:
598318
|
853524
| 853916 |
854016
|
854018
|
854196
|
854656
|
854658
|
854660