[Distutils] Unexpected VersionConflict
PJ Eby
pje at telecommunity.com
Fri Aug 9 01:44:03 CEST 2013
On Thu, Aug 8, 2013 at 3:19 PM, Townsend, Scott E. (GRC-RTM0)[Vantage
Partners, LLC] <scott.e.townsend at nasa.gov> wrote:
> During easy_install of an egg where two versions of pyparsing were available
> (1.5.2 and 1.5.6), a VersionConflict was raised:
>
> pkg_resources.VersionConflict: (pyparsing 1.5.6
> (/usr/lib/python2.7/dist-packages), Requirement.parse('pyparsing==1.5.2'))
>
> This was unexpected since sys.path (via virtualenv) has version 1.5.2 before
> 1.5.6. And the system gets 1.5.2 from 'import pyparsing', not 1.5.6.
Have you tried declaring the 1.5.2 dependency from your main project?
IIRC, that should make it take precedence over either of the indirect
dependencies.
More information about the Distutils-SIG
mailing list