oduwsdl / hypercane

A toolkit for developing algorithms that sample mementos from a web archive collection.

Home Page:https://oduwsdl.github.io/hypercane

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uninstalling hypercane wouldn't remove the hc script from .local/bin/

himarshaj opened this issue · comments

  • When uninstalling hypercane,
$ pip3 uninstall hypercane
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Found existing installation: hypercane 0.2021.3.10.202429
Uninstalling hypercane-0.2021.3.10.202429:
  Would remove:
    /home/marsh/.local/lib/python3.8/site-packages/hypercane
    /home/marsh/.local/lib/python3.8/site-packages/hypercane-0.2021.3.10.202429.egg-info
Proceed (y/n)? y
  Successfully uninstalled hypercane-0.2021.3.10.202429
  • With this, hypercane will be uninstalled but the hc script from .local/bin/ will not get automatically removed.
$ which hc
/home/marsh/.local/bin/hc

$/.local/lib/python3.8/site-packages

$ hc --help
hc (Hypercane) is a framework for building algorithms for sampling mementos from a web archive collection.
It is a complex toolchain requiring a supported action and additional arguments.

For example:
    hc sample dsa1 -i archiveit -a 8778 -o story-mementos.txt

This is the list of supported actions:

    * sample
    * report
    * synthesize
    * identify
    * filter
    * cluster
    * score
    * order

For each of these actions, you can view additional help by typing --help after the action name, for example:
    hc sample --help

$ hc sample --help
Traceback (most recent call last):
  File "/home/marsh/.local/bin/hc", line 54, in <module>
    actionmodule = importlib.import_module(supported_actions[action])
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'hypercane'