Closed vic-chou closed 5 years ago
Thanks for reporting. Thats an issue I will have to fix on the code side. ...
Fixed in: https://github.com/hvasbath/beat/commit/97729c527e1c1aa63c7624081d2c3b32c7ae5669 Please update your local installation! Please re-open if the issue persists.
Hi,
When I wrote;
beat init --help
it says;
Traceback (most recent call last):
File "/usr/local/bin/beat", line 5, in
I don't understand the problem. Could you please help?
you need to install the package psutil Which operating system do you use? Do you use anaconda? for example with: sudo apt install python3-psutil
If you use anaconda then you should use that instead of the system manager.
Hi,
Thanks for your reply. I installed psutil and then some more packages but still have problems. Lastly it asked tqdm, I also installed it but still asks for it.
I don't understand the problem. I use Ubuntu 14.04.5. I also installed Anaconda.
(base) seda@NEPHY:~$ pip install tqdm
Requirement already satisfied: tqdm in
./anaconda3/lib/python3.8/site-packages (4.54.1)
(base) seda@NEPHY:~$ beat init --help
Traceback (most recent call last):
File "/usr/local/bin/beat", line 5, in
Dear Seda,
if you did not use anaconda before there is no need to install it. Ubuntu 14 is a VERY VERY OLD Operating System. I strongly recommend updating it to at least 18.04. It is even officially from the Ubuntu side not supported anymore. So you wont get updates and you will face exactly such package versioning issues as you see now.
Especially, when you start learning a new software you will want to at least reduce that error source to its minimum.
All the best! Hannes
Dear Hannes,
I installed 18.04 as you suggested and installed everything in the https://hvasbath.github.io/beat/
But still it needs (I think) scipy even though I also installed it.
What do you think about that? Could you help me??
Thanks very much, Seda.
(base) seda@ozarpaci:~/anaconda3$ pip install scipy Requirement already satisfied: scipy in ./lib/python3.8/site-packages (1.5.2) Requirement already satisfied: numpy>=1.14.5 in ./lib/python3.8/site-packages (from scipy) (1.19.2) (base) seda@ozarpaci:~/anaconda3$ beat init --help Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 574, in _build_master ws.require(requires) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 892, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 783, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (scipy 0.19.1 (/usr/lib/python3/dist-packages), Requirement.parse('scipy>=1.1'), {'beat'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/beat", line 6, in
Hannes Vasyura-Bathke notifications@github.com, 17 Ara 2020 Per, 01:59 tarihinde şunu yazdı:
Dear Seda,
if you did not use anaconda before there is no need to install it. Ubuntu 14 is a VERY VERY OLD Operating System. I strongly recommend updating it to at least 18.04. It is even officially from the Ubuntu side not supported anymore. So you wont get updates and you will face exactly such package versioning issues as you see now.
Especially, when you start learning a new software you will want to at least reduce that error source to its minimum.
All the best! Hannes
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hvasbath/beat/issues/41#issuecomment-747091743, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNK6KKT5C7MS6S376VFDTTSVE3U7ANCNFSM4H3XNSIQ .
Arş. Gör. Dr. Seda ÖZARPACI
You need to upgrade scipy to its latest version. Now you have only an old version installed. pip3 install scipy --upgrade
I did that too, but still the same error.
Found existing installation: scipy 1.5.2
Uninstalling scipy-1.5.2:
Successfully uninstalled scipy-1.5.2
Successfully installed scipy-1.5.4 (base) seda@ozarpaci:~/anaconda3$ (base) seda@ozarpaci:~/anaconda3$ beat init --help Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 574, in _build_master ws.require(requires) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 892, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 783, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (scipy 0.19.1 (/usr/lib/python3/dist-packages), Requirement.parse('scipy>=1.1'), {'beat'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/beat", line 6, in
Hannes Vasyura-Bathke notifications@github.com, 20 Ara 2020 Paz, 20:27 tarihinde şunu yazdı:
You need to upgrade scipy to its latest version. Now you have only an old version installed. pip3 install scipy --upgrade
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hvasbath/beat/issues/41#issuecomment-748635997, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNK6KMAPA7PMBCZYHKS5TDSVYXWHANCNFSM4H3XNSIQ .
Arş. Gör. Dr. Seda ÖZARPACI
Likely you have multiple scipy versions installed in your computer. Clearly the updated one fulfills the requirements.
Please test in a python/ipython session:
import scipy print(scipy.version.version)
With: print(scipy.file)
you then can locate which package is loaded- hopefully that is the old scipy. You need to remove that then. In case you have even more than 2 you need to make sure to only install one. If you install several you need to make use of environments, as with anaconda.
All the best and good luck! Hannes
Dear Hannes,
Sorry to tell this but;
import scipy scipy.version '1.5.4' print(scipy.version.version) 1.5.4 scipy.version.full_version '1.5.4' scipy.version.release True scipy.version.short_version '1.5.4' scipy.version.version '1.5.4'
I don't understand the problem. This is the new version, right? Why is this happening?
Sorry to bother you! Seda.
Hannes Vasyura-Bathke notifications@github.com, 20 Ara 2020 Paz, 23:11 tarihinde şunu yazdı:
Likely you have multiple scipy versions installed in your computer. Clearly the updated one fulfills the requirements.
Please test in a python/ipython session:
import scipy print(scipy.version.version)
With: print(scipy.file)
you then can locate which package is loaded- hopefully that is the old scipy. You need to remove that then. In case you have even more than 2 you need to make sure to only install one. If you install several you need to make use of environments, as with anaconda.
All the best and good luck! Hannes
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hvasbath/beat/issues/41#issuecomment-748664913, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNK6KJ3ACI22R245HSNEJTSVZK5LANCNFSM4H3XNSIQ .
Arş. Gör. Dr. Seda ÖZARPACI
With python it is possible to install different versions of the same package in parallel if you are not careful and new to python. Thats why anaconda exists to prevent it from happening. But if you dont know it well you can still seriously mess things up. It happens if you use multiple package managers like apt, pip3 and or anaconda.
Now you have somewhere in your computer multiple installations of scipy. You can also try: locate scipy
To find all the different versions.
Likely you have a scipies under the path(s) (might be slightly different for you if you have a different python version): /usr/local/lib/python3.6/dist-packages/ /usr/lib/python3.6/dist-packages/ /home/seda/.local/lib/python3.6/site-packages/
Hi, when I run the command "beat init LandersEQ 1992-06-28 --datatypes='seismic' --individual_gfs --n_sources=1 --source_type=MTSource --min_mag=7" to initialise a new Modeling Project, I meet an error:
beat init LandersEQ 1992-06-28 --datatypes='seismic' --individual_gfs --n_sources=1 --source_type=MTSource --min_mag=7 utility - INFO Getting relevant events from the gCMT catalog for the dates:1992-06-27 00:00:00.000 - 1992-06-29 00:00:00.000
config - INFO Added hyperparameter h_any_P_0_Z to config and model setup! config - INFO Added hyperparameter h_any_S_1_Z to config and model setup! config - INFO All hyperparameters ok! config - INFO Number of hyperparameters! 2 config - INFO All priors ok! Traceback (most recent call last): File "/usr/local/bin/beat", line 9, in
load_entry_point('beat==1.0', 'console_scripts', 'beat')()
File "/usr/local/lib/python3.6/dist-packages/beat-1.0-py3.6-linux-x8664.egg/beat/apps/beat.py", line 1641, in main
globals()['command' + command](args)
File "/usr/local/lib/python3.6/dist-packages/beat-1.0-py3.6-linux-x86_64.egg/beat/apps/beat.py", line 301, in command_init
individual_gfs=options.individual_gfs)
File "/usr/local/lib/python3.6/dist-packages/beat-1.0-py3.6-linux-x86_64.egg/beat/config.py", line 1437, in init_config
c.regularize()
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 796, in regularize
self.validate(regularize=True, depth=depth)
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 793, in validate
self.T.instance.validate(self, regularize, depth)
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 506, in validate
val = validator.validate_children(val, regularize, depth)
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 518, in validate_children
newpropval = prop.validate(propval, regularize, depth-1)
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 506, in validate
val = validator.validate_children(val, regularize, depth)
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 518, in validate_children
newpropval = prop.validate(propval, regularize, depth-1)
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 506, in validate
val = validator.validate_children(val, regularize, depth)
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 518, in validate_children
newpropval = prop.validate(propval, regularize, depth-1)
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 503, in validate
validator.validate_extra(val)
File "/usr/local/lib/python3.6/dist-packages/pyrocko/guts.py", line 1315, in validate_extra
self.xname(), val, repr(self.choices)))
pyrocko.guts.ValidationError: structure: "identity" is not a valid choice out of ['variance', 'exponential', 'import', 'non-toeplitz']
I don't know how to fix this. Can you give me some suggestions?