Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 988
Hari Avatar asked Oct 24 '21 07:10

Hari


2 Answers

This looks like a python package is using a depreciated function in pyparsing.

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

pip install pyparsing==2.4.2
like image 165
Vineet Sharma Avatar answered Oct 21 '22 02:10

Vineet Sharma


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
like image 1
Tushar Sethi Avatar answered Oct 21 '22 03:10

Tushar Sethi