bugBKChem - Bugs: bug #30654, Setup fails when installing from...


bug #30654: Setup fails when installing from git repos.

Submitter:  None
Submitted:  Thu 05 Aug 2010 06:57:19 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Works For Me
Privacy:  Public Assigned to:  abadar
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Mon 09 Aug 2010 08:45:23 AM UTC, comment #1: 

You should use Git submodules as described here:

Use these commands to get the repository:

>$ git clone git://gitorious.org/bkchem/bkchem.git
>$ cd bkchem
>$ git submodule init
>$ git submodule update

This will download all needed files in appropriate directory structure. Then just execute the setup as usual, that will set up also OASA. You can also run BKChem directly from your repository, no need to install it:

>$ python bkchem/bkchem.py

This is the preferred way of using BKChem from development sources. BKChem releases which will have corresponding versions of OASA released will have adjusted setup.py and they will require separate installation of OASA.

Reinis Danne <abadar>
Group administrator
Thu 05 Aug 2010 06:57:19 AM UTC, original submission:  

After removing an older BKChem version installed via Ubuntu 10.04 into a Python2.6 environment I cloned the oasa, bkchem, bkchem-plugins, and piddle from Gitorious:

In the oasa directory I executed, as per the usual:
python setup.py install --prefix=/usr/local/

No errors were detected and import oasa worked fine.

In the bkchem directory I executed, as per the usual:
python setup.py install --prefix=/usr/local/

This gave the following error:
package init file 'bkchem/oasa/__init__.py' not found (or not a regular file)
error: package directory 'bkchem/oasa/oasa' does not exist

The bkchem setup.py file packages = line contains bkchem/oasa/oasa even though this directory does not exist in the git repo (although the oasa directory does, but is blank).

Upon removal of the 'bkchem/oasa/oasa' and 'bkchem/oasa/oasa/graph' packages no errors were encountered in setup.py

To make the setup.py more general it could either check for the existence of the oasa directory in the bkchem package or see if oasa imports and is a compatible version.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #21145:  setup_patch added by None (718B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by abadar (Posted a comment)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-09 abadar StatusNone Works For Me
        PrivacyPrivate Public
        Assigned toNone abadar
    2010-08-05 None Attached File- Added setup_patch, #21145

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code