Setting up bsdpy

bmarks
Contributor II

I am having a hard time setting up bsdpy using the commands located on Github. This is making me feel like a novice but I'll admit I don't have a lot of Github experience. I cut and paste every command without issue, but when I get to the final command I get an error:

Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt

Thoughts? I can't use Docker because I am being required to use RHEL 6 and an older kernel that doesn't appear to be compatible with Docker.

Also, is this command still correct if everything has been moved to Github as an alert of the previous site mentions?

git clone https://bitbucket.org/bruienne/bsdpy.git
7 REPLIES 7

bmarks
Contributor II

I guess part of what I don't understand is, after cloning that directory and going into it, there isn't a "requirements.txt" file anywhere in that folder.

chriscollins
Valued Contributor

Two things: he's hosting the most up to date repos on github instead of bitbucket now: https://github.com/bruienne/bsdpy/

The branch he recommends you use is the API branch is what the Docker version is using and has the requirements file needed for the dependencies:
https://github.com/bruienne/bsdpy/tree/api?files=1

bmarks
Contributor II

I'm using the info referenced on github. That's what I said in the first sentence. That's why I'm confused by the final command I pasted above. So, should the "git clone" command be something different, like:

git clone https://github.com/bruienne/bsdpy/tree/api?files=1

I thought the "git clone" commands had to reference a URL ending in .git.

chriscollins
Valued Contributor

@bmarks was reading too fast on my phone on the train and saw your link to the old repo which is why I said that.

The link on that github was just to show you the branch that had the files you needed.

In the repository you already cloned, just cd into the directory and do a

git checkout api

To switch to the correct branch.

bmarks
Contributor II

Huzzah! Thank you. I knew this was going to be something simple. I don't really have any Github experience.

bmarks
Contributor II

Alright, now I'm stumped again. I'm having a hard time reading these setup instructions and determining how to change the default directory. I see where it says what the default is, and then I see a bunch of debug logs, but I can't decipher how to change the directory. Due to security requirements out of my control, I need the NBI directory to be "/u01/nbi/" instead of just "/nbi/" at the root of the volume.

vmiller
New Contributor II

To change the directory you would need to specify --path /u01/nbi when launching BSDPy. There is however a problem in the code that prevents using a directory more than one level deep. I have a pull request opened for this that has not merged yet : https://github.com/bruienne/bsdpy/pull/4