Skip to contentSkip to conversation

b4 trouble!

DISCUSSION Bhaskar Chowdhury 1 participant 2 messages Jul 1, 2020

lore
Share & tools
lore
#0 lore raw

Kai,

The story goes like this :

Once cloned the git repo and as suggested in README in the cloned repo ,I made an alias in .bashrc like this :

alias b4="The path to the b4.sh"

source .bashrc

But...I got this ...I tried this from within the dir and outside of it..

✔ ~/git-linux/b4 [master|✔]
07:53 $ b4
Traceback (most recent call last):
File "/home/bhaskar/git-linux/b4/b4/command.py", line 10, in <module>
import b4
File "/home/bhaskar/git-linux/b4/b4/__init__.py", line 15, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
✘-1 ~/git-linux/b4 [master|✔]
07:53 $ cd ~
bhaskar@Gentoo_07:53:29_Wed Jul 01:~> b4
Traceback (most recent call last):
File "/home/bhaskar/git-linux/b4/b4/command.py", line 10, in <module>
import b4
File "/home/bhaskar/git-linux/b4/b4/__init__.py", line 15, in <module>
import requests
ModuleNotFoundError: No module named 'requests'

Is this a expected behavior of it??? I know what it is missing, but the point is ,why the end user have to take care of this??

OR, this is tool made for certain people and those people know what exactly do with this kind of return???

I am lost ...and can we make some sanity check to before running . Will that be costly enough or bring more maintenance headache. I am not sure, because I lack knowledge ,probably.

Kindly , shed some light.

Thanks,
Bhaskar

#1 lore raw

On 07:59 Wed 01 Jul 2020, Bhaskar Chowdhury wrote:
Never mind ...got it ...

08:04 $ sudo !!
sudo eselect python set 3
Password:
✔ ~/git-linux/b4 [master|✔]
08:05 $ eselect python list
Available Python interpreters, in order of preference:

  [1]   python3.7
  [2]   python3.6 (uninstalled)
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)

✔ ~/git-linux/b4 [master|✔]
08:05 $ ./b4.sh
usage: b4 [-h] [--version] [-d] [-q]
{mbox,am,attest,attverify,pr,ty,diff} ...

A tool to work with public-inbox patches

positional arguments:
{mbox,am,attest,attverify,pr,ty,diff}
sub-command help
mbox Download a thread as an mbox file
am Create an mbox file that is ready to git-am
attest Submit cryptographic attestation for patches
attverify Verify cryptographic attestation of patches in
an mbox
pr Fetch a pull request found in a message ID
ty Generate thanks email when something gets
merged/applied
diff Show a range-diff to previous series revision

optional arguments:

  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -d, --debug           Add more debugging info to the output (default:

False)
-q, --quiet Output critical information only (default:
False)

Quoted 59 lines

Kai,

The story goes like this :

Once cloned the git repo and as suggested in README in the cloned repo ,I made an alias in .bashrc like this :

alias b4="The path to the b4.sh"

source .bashrc

But...I got this ...I tried this from within the dir and outside of it..

✔ ~/git-linux/b4 [master|✔]
07:53 $ b4
Traceback (most recent call last):
File "/home/bhaskar/git-linux/b4/b4/command.py", line 10, in <module>
import b4
File "/home/bhaskar/git-linux/b4/b4/__init__.py", line 15, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
✘-1 ~/git-linux/b4 [master|✔]
07:53 $ cd ~
bhaskar@Gentoo_07:53:29_Wed Jul 01:~> b4
Traceback (most recent call last):
File "/home/bhaskar/git-linux/b4/b4/command.py", line 10, in <module>
import b4
File "/home/bhaskar/git-linux/b4/b4/__init__.py", line 15, in <module>
import requests
ModuleNotFoundError: No module named 'requests'

Is this a expected behavior of it??? I know what it is missing, but the point is ,why the end user have to take care of this??

OR, this is tool made for certain people and those people know what exactly do with this kind of return???

I am lost ...and can we make some sanity check to before running . Will that be costly enough or bring more maintenance headache. I am not sure, because I lack knowledge ,probably.

Kindly , shed some light.

Thanks,
Bhaskar

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEnwF+nWawchZUPOuwsjqdtxFLKRUFAl779QsACgkQsjqdtxFL KRVU8Af+LmwX9EkEOMCY9vN55nU0Dgrzja11luTVNbAc1WvxNsbuc0xhOaC0rNdw AKv2W0T99iupiE7J6HJqH6dRlDqvSBwcpgqjRn3+l1x8nV+gXZOpkX8D5BTKRF38 LVp8Vf+TPYGP/l5QzEajR205VQdoswFS42cT3UamPjm/Fg4a1iMdTm1OfP29PwQx PSfFRzH6ZCeZsZl/Yz8EKHW4DzrZiELWchCwOluBrMLJUyNEN8hu3zNkWbMgm6aV FQJ/OwrvlSIdQHgHri5KkvO3Bv+siY0FgKhsCmQIcxDONIL+MgHHc8w0vSBf4jzQ 69wyz/IjeJmz2Anm8sVCcyjUpY2r2g==
=fs7w
-----END PGP SIGNATURE-----