LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-23-2013, 07:14 PM   #1
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
New to Python, need some assistance with virtualenv.


Ok, so I decided to go through the Python track at http://www.codecademy.com/. I've decided to set up my environment so I can start doing some dev work. I'm trying to set up pip, virtualenv, and virtualenvwrapper. I have my .bashrc set up with this:
Code:
export PROJECT_HOME=$HOME/Devel
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
source /usr/bin/virtualenvwrapper_lazy.sh
When I run workon, no errors or problems. When I try to run
Code:
mkvirtualenv temp
I got:
Code:
New python executable in temp/bin/python
Installing setuptools.............done.
Installing pip...............done.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/virtualenvwrapper/hook_loader.py", line 16, in <module>
    from stevedore import ExtensionManager
ImportError: No module named stevedore
So as root, I did
Code:
pip install stevedore
Now I get
Code:
New python executable in temp/bin/python
Installing setuptools.............done.
Installing pip...............done.
stevedore.extension Could not load 'user_scripts': virtualenv-clone
stevedore.extension virtualenv-clone
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 83, in _load_plugins
    invoke_kwds,
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 95, in _load_one_plugin
    plugin = ep.load()
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1953, in load
    if require: self.require(env, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1966, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
DistributionNotFound: virtualenv-clone
stevedore.extension Could not load 'user_scripts': virtualenv-clone
stevedore.extension virtualenv-clone
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 83, in _load_plugins
    invoke_kwds,
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 95, in _load_one_plugin
    plugin = ep.load()
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1953, in load
    if require: self.require(env, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1966, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
DistributionNotFound: virtualenv-clone
stevedore.extension Could not load 'user_scripts': virtualenv-clone
stevedore.extension virtualenv-clone
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 83, in _load_plugins
    invoke_kwds,
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 95, in _load_one_plugin
    plugin = ep.load()
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1953, in load
    if require: self.require(env, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1966, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
DistributionNotFound: virtualenv-clone
stevedore.extension Could not load 'project': virtualenv-clone
stevedore.extension virtualenv-clone
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 83, in _load_plugins
    invoke_kwds,
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 95, in _load_one_plugin
    plugin = ep.load()
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1953, in load
    if require: self.require(env, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1966, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
DistributionNotFound: virtualenv-clone
stevedore.extension Could not load 'user_scripts': virtualenv-clone
stevedore.extension virtualenv-clone
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 83, in _load_plugins
    invoke_kwds,
  File "/usr/lib64/python2.7/site-packages/stevedore/extension.py", line 95, in _load_one_plugin
    plugin = ep.load()
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1953, in load
    if require: self.require(env, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 1966, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
DistributionNotFound: virtualenv-clone
I read that this is a certain bug discussed here, but the me-too workaround doesn't work for me. I have no /bin/activate. Any help is appreciated.
 
Old 06-23-2013, 08:20 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,441

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
Why, exactly, are you messing around with the virtual environments? It's quite simple to develop python apps without that.
 
Old 06-23-2013, 10:24 PM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,566

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394
Isn't the next step obvious?

Code:
pip install virtualenv-clone
 
  


Reply

Tags
pip, python, virtualenv


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Python wins trademark dispute, rival stops calling itself “Python” LXer Syndicated Linux News 0 03-21-2013 07:40 PM
Python 2.6 dependencies error installing python-sqlite2-2.5.5-1.1.i586.rpm jmp007 Linux - Newbie 1 02-11-2011 11:05 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
LXer: Review: Programming in Python 3: A Complete Introduction to the Python Language LXer Syndicated Linux News 0 01-26-2009 04:50 AM
LXer: Move to python 2.4 / Changing the packaging style for python packages LXer Syndicated Linux News 0 06-13-2006 07:54 PM


All times are GMT -5. The time now is 07:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration