dennisvang / tufup-example

Example of a self-updating application using tufup.
MIT License
13 stars 8 forks source link

ModuleNotFoundError: No module named 'tufup' #33

Closed NguyenDucQuan12 closed 5 months ago

NguyenDucQuan12 commented 5 months ago

Hello, when I try to run your example, I get an error that module name 'tufup' cannot be installed. image image

NguyenDucQuan12 commented 5 months ago

first try python -m pip install --upgrade --force-reinstall pip and then do python -m pip freeze for those who encounter errors like me when using virtual environments

NguyenDucQuan12 commented 5 months ago

image I have installed the required files, but I still get this error. Please tell me how to fix it

python -m pip freeze
altgraph==0.17.4
bsdiff4==1.2.4
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
cryptography==42.0.5
idna==3.6
packaging==24.0
pefile==2023.2.7
pycparser==2.22
pyinstaller==6.5.0
pyinstaller-hooks-contrib==2024.3
PyNaCl==1.5.0
pywin32-ctypes==0.2.2
requests==2.31.0
ruff==0.3.5
securesystemslib==0.31.0
tuf==3.1.1
tufup @ git+https://github.com/dennisvang/tufup.git@9e53b744a8811d0d9ab6820172da11c9a4327453
urllib3==2.2.1
dennisvang commented 5 months ago

@NguyenDucQuan12

What happens if you run tufup -v on the command line?

NguyenDucQuan12 commented 5 months ago

@dennisvang return tufup 0.7.1 image image

dennisvang commented 5 months ago

@NguyenDucQuan12 This looks like an IDE configuration issue.

I'm not familiar with VS Code/Pylance, but perhaps it's related to this issue?