Skip to content

Update setup.py to resolve missing packages error upon install#1

Open
amrtini wants to merge 1 commit into
amyycb:mainfrom
amrtini:patch-1
Open

Update setup.py to resolve missing packages error upon install#1
amrtini wants to merge 1 commit into
amyycb:mainfrom
amrtini:patch-1

Conversation

@amrtini
Copy link
Copy Markdown

@amrtini amrtini commented May 10, 2024

I got the following error upon install:

(c:\Users\x\Documents\dev\mike\.conda) PS C:\Users\x\Documents\dev\mike> pip install simradrain
ERROR: Could not find a version that satisfies the requirement simradrain (from versions: none)
ERROR: No matching distribution found for simradrain
(c:\Users\x\Documents\dev\mike\.conda) PS C:\Users\x\Documents\dev\mike> pip install git+https://github.com/amyycb/simradrain.git#egg=simradrain
Collecting simradrain
  Cloning https://github.com/amyycb/simradrain.git to c:\users\x\appdata\local\temp\pip-install-uf4b67xe\simradrain_96b406cf853548d29eb880c04ddbd194
  Running command git clone --filter=blob:none --quiet https://github.com/amyycb/simradrain.git 'C:\Users\x\AppData\Local\Temp\pip-install-uf4b67xe\simradrain_96b406cf853548d29eb880c04ddbd194'
  Resolved https://github.com/amyycb/simradrain.git to commit 790b675914dd5764df955acb2041ba4e911ec757
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      running egg_info
      creating C:\Users\x\AppData\Local\Temp\pip-pip-egg-info-2l3htp6u\SimulateRadarRainfall.egg-info
      writing C:\Users\x\AppData\Local\Temp\pip-pip-egg-info-2l3htp6u\SimulateRadarRainfall.egg-info\PKG-INFO
      writing dependency_links to C:\Users\x\AppData\Local\Temp\pip-pip-egg-info-2l3htp6u\SimulateRadarRainfall.egg-info\dependency_links.txt
      writing requirements to C:\Users\x\AppData\Local\Temp\pip-pip-egg-info-2l3htp6u\SimulateRadarRainfall.egg-info\requires.txt
      writing top-level names to C:\Users\x\AppData\Local\Temp\pip-pip-egg-info-2l3htp6u\SimulateRadarRainfall.egg-info\top_level.txt
      writing manifest file 'C:\Users\x\AppData\Local\Temp\pip-pip-egg-info-2l3htp6u\SimulateRadarRainfall.egg-info\SOURCES.txt'
      error: package directory 'sim' does not exist
      [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.

I changed the packages in setup.py since the specified packages are python modules.
Thanks for making the code public!

//Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant