Ticket #122 (reopened defect)

Opened 6 years ago

Last modified 4 years ago

Wrong link for vpy_install download

Reported by: gabeh Owned by: wehart
Priority: blocker Milestone: PyUtilib 4.6
Component: Documentation Version:
Keywords: Cc: jdsiiro


The vpy_install link in the Download section currently points to this file:


This is DEFINITELY the wrong vpy_install for installing pyutilib as it requires pyutilib. The link should probably be changed to download this file:


Change History

comment:1 Changed 5 years ago by wehart


I think that this is OK. The vpy_install scripts in pyutilib.virtualenv/trunk/scripts is a stand-alone script that doesn't rely on PyUtilib?

comment:2 Changed 5 years ago by wehart

  • Status changed from new to closed
  • Resolution set to worksforme

comment:3 Changed 4 years ago by gahacke

  • Status changed from closed to reopened
  • Resolution worksforme deleted


I'm still convinced something is wrong here. The link on this page


downloads a vpy_install script from here


with the following content:

#!/usr/bin/env python                                                                                                    

import sys
from os.path import join, abspath, dirname, exists, getmtime
from inspect import getfile, currentframe

here = dirname( abspath( getfile( currentframe() ) ) )
base = abspath( join( here, '..' ) )

# NOTE: insert this pyutilib.virtualenv path *second*.                                                                   
#   '' (the CWD) should always be first.                                                                                 
sys.path.insert(1, base)

from pyutilib.virtualenv.vpy_install import main

If I try to use it to install pyutilib, I'm not surprised that I get the error below:

(build)10-196-67-117:pyomo ghackebeil$ python scripts/vpy_install 
Traceback (most recent call last):
  File "scripts/vpy_install", line 14, in <module>
    from pyutilib.virtualenv.vpy_install import main
ImportError: No module named pyutilib.virtualenv.vpy_install

I think the link needs to be changed to this:


comment:4 Changed 4 years ago by gahacke

I see where I'm getting confused. That script expects pyutilib.virtualenv to already be checked out. In that case, there is no point in providing a separate download link. The documentation doesn't make this very clear. In fact, it suggests the opposite. Perhaps this is the correct link:


I am currently using this (as a replacement for pyomo_install) to install the pyomo and pyutilib development branches on my machine. E.g.,

python vpy_install.py \

--trunk \
--config= https://software.sandia.gov/svn/public/pyutilib/vpy/dev.ini \
--config= https://software.sandia.gov/svn/public/pyomo/vpy/dev.ini \

It seems to work find for Python 2 and Python 3.

Note: See TracTickets for help on using tickets.