virtualenvwrapper 4.3.2 -- hooks don't work?

44 views
Skip to first unread message

Nitzan Shaked

unread,
Feb 5, 2015, 5:08:29 PM2/5/15
to virtuale...@googlegroups.com
I've spent quite a bit of time on this and hoping somebody here can help me save my sanity.

* setup: osx 10.9, python 2.7, pip 6.0.8, virtualenvwrapper 4.3.2 (installed via "sudo pip install virtualenvwrapper").
* problem: global hooks don't work; they are simply not run/sourced.

* investigation: going deeper and deeper into the rabbit hole I ended up pkg_resources. This is used by stevedore "plugins" (used by virtualenvwrapper's hooks_loader.py, used by virtualenvwrapper_run_hooks from the .sh file).
If I understand correctly pkg_resources is blind to the python package virtualenvwrapper (and a few other packages), which in my case is installed in /Library/Python/2.7/site-packages. This, because it looks only for .egg and .egg-info files, whereas virtualenvwrapper is installed (from the PyPI .whl) with a dist-info.

This is when I venture into unknown territory (setuptools, distutils, wheels, eggs, ...) and was hoping somebody might have a clue.

tia!

Doug Hellmann

unread,
Feb 6, 2015, 8:45:56 AM2/6/15
to virtuale...@googlegroups.com
I’ve had a couple of reports of this, but you’re the first one who has mentioned wheels and this is, I think the first release of virtualenvwrapper where I built a wheel. Maybe that package file is bad.

Can you try downloading the sdist by hand and then installing that with pip to see if it works? If so, I’ll delete the wheel package and see if I can figure out what I did wrong while building it.

Doug


tia!

--
You received this message because you are subscribed to the Google Groups "virtualenvwrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to virtualenvwrap...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nitzan Shaked

unread,
Feb 10, 2015, 11:51:25 AM2/10/15
to virtuale...@googlegroups.com
Works. Downloaded sdist, ran "pip install --user virtualenv*tar.gz", everything works.

What's the next step?

Doug Hellmann

unread,
Feb 10, 2015, 2:59:00 PM2/10/15
to virtuale...@googlegroups.com
I’ve removed the wheel file from PyPI. I’ll tag and build a new one and test before uploading it.

Thanks for helping to track this down!
Reply all
Reply to author
Forward
0 new messages