pip-gui icon indicating copy to clipboard operation
pip-gui copied to clipboard

FileNotFoundError

Open Jalkhov opened this issue 3 years ago • 6 comments

Error when press Next in Install new packages, Update existing packages and Uninstall existing packages.

FileNotFoundError: [Errno 2] No such file or directory: 'c:\\pythons\\python39-64\\lib\\site-packages\\pipgui\\.\\Resource_Files\\Installed Packages\\installedPackageList3.json'

Jalkhov avatar Apr 09 '21 17:04 Jalkhov

Hey, thanks for reporting the issue! I'll check what's going wrong.

BRO3886 avatar Apr 09 '21 18:04 BRO3886

I have fixed this problem in my pull request #34 I have modified the way the paths of certain files are obtained, now absolute paths are used to avoid problems with relative paths.

Jalkhov avatar Apr 10 '21 11:04 Jalkhov

Log:

  File "c:\python39\lib\site-packages\pipgui\__main__.py", line 184, in radioCheck
    self.update = UpdateWindow()
  File "c:\python39\lib\site-packages\pipgui\__main__.py", line 221, in __init__
    self.outdatedPackages = json.load(open(
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\python39\\lib\\site-packages\\pipgui\\.\\Resource_Files\\Outdated Packages\\outdatedPackageList3.json'

Cyberavater avatar Jun 15 '21 15:06 Cyberavater

Hi. I just installed and started.

pipgui-log

looking the code this directories not exist in the installation directory

INSTALLED_DIR = './Resource_Files/Installed Packages/' OUTDATED_DIR = './Resource_Files/Outdated Packages/' ASSETS_DIR = './Resource_Files/Assets/' PACKAGE_DIR = './Resource_Files/Current Packages/'

teckscam avatar Jun 30 '21 21:06 teckscam

I´m create a pull requests. This bug stay on the setup file. https://github.com/GDGVIT/pip-gui/pull/36#issue-681355656

teckscam avatar Jul 01 '21 01:07 teckscam

I grouped everything and added some corrections. Pull requests -> corrections and optimizations, fix this error included. #37

teckscam avatar Jul 03 '21 23:07 teckscam

This issue still happens with Python 3.10 on Windows 10 64-bit.

...>pipgui.exe
Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\site-packages\pipgui\__main__.py", line 188, in radioCheck
    self.uninstall = UninstallWindow()
  File "C:\Program Files\Python310\lib\site-packages\pipgui\__main__.py", line 291, in __init__
    self.allPackages = json.load(open(
FileNotFoundError: [Errno 2] No such file or directory:
   'C:\\Program Files\\Python310\\lib\\site-packages\\pipgui\\.\\Resource_Files\\Installed Packages\\installedPackageList3.json'

It doesn't matter what mode is selected - the error is always the same. pipgui-1.4 was installed via pip install pipgui.

Anton-V-K avatar Dec 13 '23 09:12 Anton-V-K