ERROR: No .egg-info directory found"
Closed this issue · 2 comments
From comment on commit e4045e2 from diharvey:
I would love to use this package as I would like to run thousands of geostudio models in order to develop and understanding of the relationship of the phreatic surface elevation and the FoS of the slope in question. I am struggling to import the package and VS Code keeps giving me the error "pygeostudio is not a package. I have tried the fix mentioned above but i receive the error "ERROR: No .egg-info directory found". Please could you help me get this installed, I would love to use PyGeostudio.
This looks like you pip package is not up to date as on https://stackoverflow.com/questions/26091641/what-does-a-could-not-find-egg-info-directory-in-install-record-from-pip-mean. I advise you to update your pip version using the step describe in the link. Else, can you send me the full output of your VS code terminal ?
Moise
Hi, I have upgraded my setup tools but when I use "pip install ." i get the following error:
C:\Users\dharvey\Documents\Automation Projects\Python\PyGeostudio\PyGeoStudio-main\PyGeoStudio-main>pip install .
Processing c:\users\dharvey\documents\automation projects\python\pygeostudio\pygeostudio-main\pygeostudio-main
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "C:\Users\dharvey\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\dharvey\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\dharvey\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "C:\Users\dharvey\AppData\Local\Temp\pip-build-env-x182cve8\overlay\Lib\site-packages\setuptools\build_meta.py", line 379, in prepare_metadata_for_build_wheel
self._bubble_up_info_directory(metadata_directory, ".egg-info")
File "C:\Users\dharvey\AppData\Local\Temp\pip-build-env-x182cve8\overlay\Lib\site-packages\setuptools\build_meta.py", line 350, in _bubble_up_info_directory
info_dir = self._find_info_directory(metadata_directory, suffix)
File "C:\Users\dharvey\AppData\Local\Temp\pip-build-env-x182cve8\overlay\Lib\site-packages\setuptools\build_meta.py", line 361, in _find_info_directory
assert len(candidates) == 1, f"Multiple {suffix} directories found"
AssertionError: Multiple .egg-info directories found
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Did you also upgrade the pip
module ? Looks like now you have multiple .egg-info folders... Can you upgrade pip
and then reinstall with the command pip install . -vvv
?