Skip to content
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

How can I fully uninstall it and install again... #15

Open
OrionRandD opened this issue Sep 10, 2022 · 3 comments
Open

How can I fully uninstall it and install again... #15

OrionRandD opened this issue Sep 10, 2022 · 3 comments

Comments

@OrionRandD
Copy link

I am getting these errors:
How can I fully uninstall it and install again.
I am getting these errors:

biblehub find Matthew 2:4

Traceback (most recent call last):
File "/home/vagner/.local/bin/biblehub", line 6, in
from biblehub import get_versions, find_verse, search, styling, parse_str, find_passage
File "/home/vagner/.local/lib/python3.10/site-packages/biblehub/init.py", line 1, in
from biblehub.scrape_verses import find_verse, get_versions
File "/home/vagner/.local/lib/python3.10/site-packages/biblehub/scrape_verses.py", line 1, in
import requests
File "/home/vagner/.local/lib/python3.10/site-packages/requests/init.py", line 63, in
from . import utils
File "/home/vagner/.local/lib/python3.10/site-packages/requests/utils.py", line 29, in
from .cookies import RequestsCookieJar, cookiejar_from_dict
File "/home/vagner/.local/lib/python3.10/site-packages/requests/cookies.py", line 174, in
class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'


It is installed, though
$ which biblehub
/home/vagner/.local/bin/biblehub

@joshpetit
Copy link
Owner

Hm,try doing

pip install --upgrade --force-reinstall biblehub

@OrionRandD
Copy link
Author

Hm,try doing

pip install --upgrade --force-reinstall biblehub

before doing that, I've found that biblehub here is installed in system-wide way.
and I can run it with, say:
sudo biblehub find matthew 23:1
But, if I run it as a normal user,
it does not work...
Then I created an group called biblehub and added myself to it,
but it refuses to work as a normal user...

ll /usr/local/bin/biblehub
-rwxr-xr-x 1 root biblehub 5.2K Sep 10 19:18 /usr/local/bin/biblehub*

and

ll /home/vagner/.local/lib/python3.10/site-packages/bin/biblehub
-rwxr-xr-x 1 vagner biblehub 174 Sep 10 19:00 /home/vagner/.local/lib/python3.10/site-packages/bin/biblehub*

I think I have to clean up all traces of biblehub in

/usr/local/lib/python3.10/dist-packages/biblehub-2.0.1.dist-info/
and
/usr/local/lib/python3.10/dist-packages/biblehub/

I did that once, but I used "rm -fr" and installed it as as normal use with pip3,
Then the files were place in:
/home/vagner/.local/lib/python3.10/site-packages/bin/biblehub
But, I had that error up there again...
Is there a pip or pip3 command to purge biblehub completely, from system-wide and also from a user installation and then issue the command you just asked me?
thx

@joshpetit
Copy link
Owner

Hm. One thing I would always recommend is never trying to manually do package management, that will always cause problems haha. If you want to uninstall something you installed with sudo, you would do sudo pip uninstall $PACKAGE_NAME.

I'm not really sure what you could to fix this. If the biblehub executable is not on your path, you could try to just install it for the user then it'll have the same affect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants