-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyCBC install instructions are confusing #124
Comments
Duncan, Looking at the documentation again, can you try the following --process-dependency-links On Tue, Jun 30, 2015 at 3:07 PM, Duncan Brown notifications@github.com
|
The pycbc install documentation page lists the following option. pip install “numpy>=1.6.4” unittest2 This installs from current master and creates a git checkout of pycbc. pip install “numpy>=1.6.4” unittest2 On Tue, Jun 30, 2015 at 3:09 PM, Alex Nitz alex.nitz@ligo.org wrote:
|
Thanks, I was trying to copy and paste from the email that you sent Sarah. I'm leaving this ticket open, as the install instructions are somewhat confusing. It's not clear to the new user where to begin. Should I manually install all of the dependencies listed at the top of the page, skip to using virtualenv, or…? I will take a look at this when I get back to Syracuse. |
Hi Duncan, Alex, After installing lalsuite, I was able to install the released version of pycbc on CIT with pip install unittest2 pycbc --upgrade --user --process-dependency-links From the instructions page here: https://ldas-jobs.ligo.caltech.edu/~cbc/docs/pycbc/install.html, I agree that it was not clear what was the best option for installing pycbc for my uses (using some of the tools). I think the section on virtualenv was close to what I wanted but I didn't realize that. I think that the instructions for doing a pycbc 'pip install' should be moved a bit higher. |
After spending much time trying to follow the instructions for installing from source, I can find nothing that works, except commenting out the use of All of the comments above on this issue are for What methods are currently expected to work? I would argue that it is critical that installing from a local git checkout be supported, to a path of the user's choosing, and without |
Josh, It would help if you could post the error you are getting and exact command python setup.py install --prefix=/path/to/install/location Works for me, and so does doing pip install pycbc --user or --target. On Mon, Jul 13, 2015 at 6:18 AM, josh-willis notifications@github.com
Is there a reason you are manually installing the dependencies? If there
|
I am running unittest2 is required to run the test suite with python-2.6 The following error occurred while trying to add or remove files in the
The installation directory you specified (via --install-dir, --prefix, or
This directory does not currently exist. Please create it and try again, or Even though of course I do have write permissions to that directory. Also, if in your previous comment you are saying that we should be adding a directory that the install procedure should create to PYTHONPATH (and which the pycbc-user-env.sh should add to PYTHONPATH after the install) before the install, then I would argue that this is badly broken. It is essential to development that we be able to easily install isolated installs of just pycbc. |
Josh, Thank you for the followup. On Mon, Jul 13, 2015 at 9:09 AM, josh-willis notifications@github.com
The issue is that the packages need to be installed and used immediately —
|
Alex, On Jul 13, 2015, at 5:00 PM, Alex Nitz wrote:
I am using setuptools 18.0.1. This directory is only for PyCBC, and that is the only thing I want installed there. My general pattern is to have separate install directories for each branch of each LSC authored package I'm using (so, for instance, lalsuite, pycbc-pylal, pycbc-glue, and pycbc). They each have their own install directory trees, with subdirectories for different branches. This is deliberate and not an install configuration I want to change: I want to be sure that by sourcing appropriate config files I know exactly which versions of each package are used, and can easily toggle one without reinstalling another. The only things I want installed using --user are dependencies that are external to the LSC and reasonably stable, so that I will not be updating them frequently.
But before switching to setuptools it did NOT need to be explicitly added to PYTHONPATH at all---that was done after the install by sourcing the appropriate configure file. We are now in the perverse situation that we have to create directories that the install process itself should be creating.
It is vital for a sensible development environment that we be able to install pycbc without it installing a bunch of dependencies into the same target that have no business being there. Sorry but I have now spent several days debugging this when I needed to be testing cpuopt so that it can be reviewed. It is so far as I can tell impossible to install current pycbc master on CIT in a user environment: pycbc now depends on h5py (even if you don't use the hdf5 workflow) and with python 2.6, h5py depends on unittest2 (even if you aren't running any tests---it will build, but 'import h5py' will fail). And you cannot install unittest2 using --user, because of a bug that has been open since March and not fixed in the process of several releases, despite the fix being simple (one line). I manually did that, commented out the use of setuptools in pycbc, and was then able to get pycbc to install on CIT. So current install on master is IMHO badly broken, and at the very least should support a distutils only install where that is desired. If there is a way to install without pulling in dependencies using setuptools then that needs to be documented. Josh Josh Willis Associate Professor Email: josh.willis@acu.edu Abilene Christian University Phone: (325) 674-2527 Foster Science Building Room 317 |
On Mon, Jul 13, 2015 at 1:07 PM, josh-willis notifications@github.com
Josh, we should sort out the various issues that crop up, but there is python setup.py install --old-and-unmanageable
|
Cleaned up the install instructions. |
what is the best way to install the pycbc?plz recommend |
When running
[dbrown@seaview ~]$ pip install pycbc --user
I get the error:
Downloading/unpacking mpld3>=0.3git (from pycbc)
Could not find a version that satisfies the requirement mpld3>=0.3git (from pycbc) (from versions: 0.0.1, 0.1, 0.2)
Some insecure and unverifiable files were ignored (use --allow-unverified mpld3 to allow).
I looked at pypa/pip#1423 which discusses this issue, but I couldn't resolve it with any combination of --allow-unverified and --allow-all-external that I could figure out.
pip 1.5.6
The text was updated successfully, but these errors were encountered: