Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Build fails on Windows: "ValueError: A 0.7-series setuptools cannot be installed with distribute" #562

Closed
agoradesign opened this issue Apr 11, 2016 · 12 comments

Comments

@agoradesign
Copy link

We experienced a huge problem today. First my colleague ran into it, and afterwards when I tried, the same thing happened to me. We have a working DrupalVM configuration, based on version 2.3.1, which we already successfully used several times, on different Windows machines - both Windows 7 and Windows 10. But today the build failed, without having changed anything on the config or any other file belonging to DrupalVM.

I've tried to update to 2.4.0, but this didn't change anything. I'm getting the following error message: ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /usr/local/lib/python2.7/dist-packages

My setup:

  • Windows 7
  • VirtualBox 5.0.16
  • Vagrant 1.8.1
  • DrupalVM 2.4.0

I'm attaching the full log, copied from the console window.
vagrant-log.txt

As far as I can understand the log, it seems that first a 0.6 version of setuptools is used, but later uninstalled and replaced by a more recent "20.7.0" version, but never a 0.7 version.... oooooooooooohhhhhh now I guess, what happened: whatever checks the version of setuptools, does it wrong! Because the version "20.7.0" is incorrectly identified as "0.7.0". What do you think????

@agoradesign
Copy link
Author

Setuptools 20.7.0 was released yesterday -> that's even one more clue, that back ups my assumption...

@geerlingguy
Copy link
Owner

Hmm... I'll try to take a look at this later—hopefully someone else can chime in if they find a quick fix. Worst case, I may be able to do some sort of workaround in JJG-Ansible-Windows.

@brockfanning
Copy link
Contributor

@agoradesign @geerlingguy I ran into it as well, and this quick fix is working for me. In provisioning/JJG-Ansible-Windows/windows.sh, add this line below line 53:

rm -fr /usr/local/lib/python2.7/dist-packages/distribute*

So, with the line above it:

echo "Installing required python modules."
rm -fr /usr/local/lib/python2.7/dist-packages/distribute*

@InPhoenityOld
Copy link

Thanks for the quick fix @brockfanning , worked for me.

@kburakozdemir
Copy link
Contributor

thanks very much for this quick fix @brockfanning , worked for me, too.

@oxyc
Copy link
Collaborator

oxyc commented Apr 12, 2016

Also see geerlingguy/JJG-Ansible-Windows#24

@agoradesign
Copy link
Author

I've tested the quick fix from @brockfanning today - worked for me too

@geerlingguy
Copy link
Owner

@agoradesign / @kburakozdemir / @brockfanning / @InPhoenity - Can you please download the latest Drupal VM master release (with the commit referenced just above this comment) and see if that gets pip installed correctly without requiring the manual fix mentioned above?

@brockfanning
Copy link
Contributor

@geerlingguy Works for me, thank you.

@kburakozdemir
Copy link
Contributor

@geerlingguy works for me, too. thanks a lot.

@geerlingguy
Copy link
Owner

Perfect! I'll close out this issue then; it should be good to go.

@TeddyHC
Copy link

TeddyHC commented Sep 12, 2016

@geerlingguy works for me, too. thanks a lot. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants