-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running 'beat init' #41
Comments
Thanks for reporting. Thats an issue I will have to fix on the code side. ... |
Fixed in: 97729c5 |
Hi, When I wrote; beat init --help it says; I don't understand the problem. Could you please help? |
you need to install the package 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 <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2749, in
<module>
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 444, in
_build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 725, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 628, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: tqdm>=4.19.4
(base) seda@NEPHY:~$
Thanks very much.
Seda.
Hannes Vasyura-Bathke <[email protected]>, 16 Ara 2020 Çar, 13:42
tarihinde şunu yazdı:
… 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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#41 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHNK6KKC72ZQOCJYFWJN4PDSVCFIFANCNFSM4H3XNSIQ>
.
--
------------------------------------------
*Arş. Gör. Dr. Seda ÖZARPACI*
* Yıldız Teknik Üniversitesi*
* Jeodezi Anabilim Dalı*
-------------------------------------------
|
Dear Seda, if you did not use anaconda before there is no need to install it. Especially, when you start learning a new software you will want to at least reduce that error source to its minimum. All the best! |
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 <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
3088, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
3072, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
576, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
589, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'scipy>=1.1' distribution was not
found and is required by beat
Hannes Vasyura-Bathke <[email protected]>, 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
<#41 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHNK6KKT5C7MS6S376VFDTTSVE3U7ANCNFSM4H3XNSIQ>
.
--
------------------------------------------
*Arş. Gör. Dr. Seda ÖZARPACI*
* Yıldız Teknik Üniversitesi*
* Jeodezi Anabilim Dalı*
-------------------------------------------
|
You need to upgrade scipy to its latest version. Now you have only an old version installed. |
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 <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
3088, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
3072, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
576, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
589, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'scipy>=1.1' distribution was not
found and is required by beat
Hannes Vasyura-Bathke <[email protected]>, 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
<#41 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHNK6KMAPA7PMBCZYHKS5TDSVYXWHANCNFSM4H3XNSIQ>
.
--
------------------------------------------
*Arş. Gör. Dr. Seda ÖZARPACI*
* Yıldız Teknik Üniversitesi*
* Jeodezi Anabilim Dalı*
-------------------------------------------
|
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 With: you then can locate which package is loaded- hopefully that is the old scipy. You need to remove that then. All the best and good luck! |
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 <[email protected]>, 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
<#41 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHNK6KJ3ACI22R245HSNEJTSVZK5LANCNFSM4H3XNSIQ>
.
--
------------------------------------------
*Arş. Gör. Dr. Seda ÖZARPACI*
* Yıldız Teknik Üniversitesi*
* Jeodezi Anabilim Dalı*
-------------------------------------------
|
With python it is possible to install different versions of the same package in parallel if you are not careful and new to python. Now you have somewhere in your computer multiple installations of scipy. You can also try: 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): |
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-x86_64.egg/beat/apps/beat.py", line 1641, in main
globals()'command_' + command
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?
The text was updated successfully, but these errors were encountered: