Frappe installation error "AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'"
Asked Answered
C

3

15

When I install frappe ( version-13 ) on linux

when I run bench init

it gives an error

ERROR: httplib2 0.20.1 has requirement pyparsing<3,>=2.4.2, but you'll have pyparsing 3.0.0 which is incompatible.

though the installation goes through.

After that when a new site is created it gives an error

AttributeError: module 'pyparsing' has no attribute 'downcaseTokens

which is a deprecated function not available in version 3.0 but available in 2.4.2

How do I get around this issue ? Can I force install an earlier version of pyparsing ?

Regards Hari

Copal answered 24/10, 2021 at 7:53 Comment(1)
Fixed in httplib2 0.20.2, released Nov 2, 2021Sublunary
E
21

That python package is using a deprecated function in pyparsing.

you can force install any version of a python module as,

pip install pyparsing==2.4.2
Enloe answered 27/10, 2021 at 15:28 Comment(2)
pygsheet also broke for the same reason. Thanks for the quick fix.Rhine
how can I use with the new version?Vibrator
V
2

well I think I found a Fix for the one's who wants to use the current version of Pyparsing itself. The base package that it creating a problem is httplib2. so in order to rectify you need to update the httplib2 package.

pip install httplib2
Vibrator answered 6/9, 2022 at 7:46 Comment(0)
N
0

I had issues with importing tf_slim package and got the same error !

$ pip install httplib2

This will resolve the "AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'" error.

Naze answered 14/10, 2022 at 3:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.