Open Jaguar101-jr opened 7 months ago
It's not clear from your message what steps you took to install the repo or what else you are doing. I have never seen the errors you have reported. Please follow the installation instructions at:
https://code.usgs.gov/ghsc/esi/shakemap/-/wikis/Installation
Even me I'm bit confused cuz my Ubuntu OS is working well when I run SCons of Madacascar/Shell scipts of Seismic Un*x. But let me ask you one question please: does this repo of shakemap can be installed on Linux v16 or not?
It's unclear. We only have resources to test ShakeMap on the systems available to us. We are running on Scientific Linux 7.9, Amazon Linux, and have at least one user running on Ubuntu 20.04.
Thank you sir for your comment. I tried to re-download the source code using this link https://code.usgs.gov/ghsc/esi/shakemap cuz my network cloning is slow on VirtualBox. I also, installed Ubuntu 20.04 OS instead of v.16 and installed all prerequisite packages and then run {bash install.sh} but still I get exactly the same error shown above. Furthermore, I also tried to change the setup directory from /Home into /Desktop but still receive the same error.
I can't reproduce this problem. From the error messages it looks like your virtual box is having trouble connecting to some external resource. "files.pythonhosted.org". From a quick google search it seems that this might be related to access to pypi.python.org. Make sure you can ping these. Some people also suggested adding --default-timeout=100 to the pip install command. You could modify install.sh to add that.
It works and had installed it finally. The main issue was that my university uses a 5G/4G network and it was restricted by your server despite I was using paid VPN services to tunnel the whole PC even the VB. Now I'm stuck at the second step 'installing: [STREC]{(https://code.usgs.gov/ghsc/esi/strec)} and I believe the reason is the same.
Please describe your issue here: I installed conda separately, after running the shell script in install.sh I got error as {Activating the shakemap virtual environment
############# Installing shakemap ##############
Obtaining file:///home/osboxes/shakemap/ghsc-esi-shakemap-main
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... error
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
main()
File "/home/osboxes/miniconda3/envs/shakemap/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(hook_input['kwargs'])
File "/home/osboxes/miniconda3/envs/shakemap/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 132, in get_requires_for_build_editable
return hook(config_settings)
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 448, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 3, in
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools/init.py", line 104, in setup
return distutils.core.setup( attrs)
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 147, in setup
_setup_distribution = dist = klass(attrs)
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 307, in init
_Distribution.init(self, dist_attrs)
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 283, in init
self.finalize_options()
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 658, in finalize_options
ep(self)
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools_scm/_integration/setuptools.py", line 121, in infer_version
_assign_version(dist, config)
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools_scm/_integration/setuptools.py", line 56, in _assign_version
_version_missing(config)
File "/tmp/pip-build-env-lxaktkn4/overlay/lib/python3.9/site-packages/setuptools_scm/_get_version_impl.py", line 112, in _version_missing
raise LookupError(
LookupError: setuptools-scm was unable to detect version for /home/osboxes/shakemap/ghsc-esi-shakemap-main.
│ exit code: 1
╰─> [37 lines of output] Traceback (most recent call last): File "/home/osboxes/miniconda3/envs/shakemap/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Installation of shakemap failed.
} What am I missing? My Linux OS Ubuntu LTS 16 is an image of a virtual box contains Madagascar and Seismic Un*x software with full python and other programming languages packages.