Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576038 - media-gfx/pydot: python module dot_parser cannot import Upcase from pyparsing 2.1.x
Summary: media-gfx/pydot: python module dot_parser cannot import Upcase from pyparsing...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-29 20:23 UTC by Jan-Matthias Braun
Modified: 2017-08-19 22:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Do not import Upcase. (no-upcase-in-pyparsing.patch,653 bytes, patch)
2016-02-29 20:23 UTC, Jan-Matthias Braun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Matthias Braun 2016-02-29 20:23:28 UTC
Created attachment 427030 [details, diff]
Do not import Upcase.

The symbol Upcase is not exported anymore, thereby the import fails

----> 1 import dot_parser

dot_parser.py in <module>()
     23 from pyparsing import __version__ as pyparsing_version
     24 
---> 25 from pyparsing import ( nestedExpr, Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
     26     Forward, NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums,
     27     restOfLine, cStyleComment, nums, alphanums, printables, empty, quotedString,

ImportError: cannot import name Upcase



As this specific import is not used at all, I removed it in the attached patch. (Only test done: rqt_graph now works again.)
Comment 1 Tim Harder gentoo-dev 2017-08-19 22:44:19 UTC
Should be fixed in 1.2.3 now in the tree.