tpircher / pycrc

Free, easy to use Cyclic Redundancy Check (CRC) calculator and source code generator
https://pycrc.org
MIT License
34 stars 8 forks source link

Mistakenly deleting all third party libraries during uninstallation #8

Open gpchn opened 4 months ago

gpchn commented 4 months ago

I don't know why, but I almost accidentally deleted all the packages under "python\lib\site-packages" while trying to delete pycrc

Here's the terminal output:

    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\subprocess.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\symbol.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\sys.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tempfile.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\textwrap.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tkinter\__init__.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tkinter\commondialog.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tkinter\constants.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tkinter\dialog.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tkinter\filedialog.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tkinter\font.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tkinter\messagebox.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tkinter\ttk.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tokenize.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\tracemalloc.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\types.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\typing.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\__init__.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\async_case.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\case.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\loader.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\main.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\mock.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\result.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\runner.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\signals.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\suite.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\unittest\util.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\urllib\__init__.pyi
    d:\python312\lib\site-packages\jedi\third_party\typeshed\stdlib\3\urllib\error.pyi
ERROR: Operation cancelled by user
PS C:\(my work path)> pip uninstall pycrc
Found existing installation: pycrc 0.10.0
Uninstalling pycrc-0.10.0:
  Would remove:
    d:\python312\lib\site-packages\*
    d:\python312\scripts\pycrc.exe
  Would not remove (might be manually added):
ERROR: Operation cancelled by user
PS C:\(my work path)> 

Python 3.12.1, pycrc 0.10.0

I'm not sure, it seems to be a vulnerability in this package. Please quickly check, this is indeed very dangerous.

It should be useful to fix it with Python installer...

gpchn commented 4 months ago

Fortunately, it seems like I cancelled it in time and didn't delete it at all

The new problem is, how can I uninstall pycrc...