Comments (10)
Can someone test this new aggregator ?
- install the new version with the pipenv method
(https://github.com/EIDA/eida-statistics/tree/main/aggregator#install-and-execute) - parse an existing logfile and look at the result to see if it looks fine
- send the statistics
@kbouk thank you for volunteering :) Let me know how it goes in this issue.
from eida-statistics.
Hello @jschaeff ,,
I installed the new version (pip3 install eida-statistics-aggregator), however when running it I get the following error (using python 3.6.9):
_eida_stats_aggregator --output-directory aggregates fdsnws_request.log.2022-06-11.bz2
Parsing fdsnws_request.log.2022-06-11.bz2 [------------------------------------] 0%
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/fdsnnetextender/fdsnnetextender.py", line 31, in extend
dateparam = date(year=int(date_string), month=1, day=1)
ValueError: invalid literal for int() with base 10: '2013-02-15'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/eida_stats_aggregator", line 11, in
load_entry_point('eida-statistics-aggregator==0.6.0', 'console_scripts', 'eida_stats_aggregator')()
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/aggregator/aggregator.py", line 235, in cli
statistics.parse_file(f)
File "/usr/local/lib/python3.6/dist-packages/aggregator/aggregator.py", line 193, in parse_file
extended_network = net_extender.extend(trace['net'], trace['start'][0:10])
File "/usr/local/lib/python3.6/dist-packages/fdsnnetextender/fdsnnetextender.py", line 35, in extend
dateparam = date.fromisoformat(date_string)
AttributeError: type object 'datetime.date' has no attribute 'fromisoformat'
from eida-statistics.
The function datetime.date.fromisoformat() has been introduced in Python 3.7
Do you think the program should be python3.6 compatible ?
from eida-statistics.
If it's only this error, it would be nice to make it 3.6 compatible. Probably a simple replacement with strptime
could be enough.
from eida-statistics.
It would be enough. It's just soo less fun :)
from eida-statistics.
@kbouk you have to upgrade a dependency of this project : fdsnnetextender == 3.2.0
Can you give it another try ?
from eida-statistics.
https://pypi.org/project/fdsnnetextender/
from eida-statistics.
Hello @jschaeff,
Yes it works fine now with python 3.6. I am attaching some outputs.
2022-06-12_2022-06-12.json.gz
2022-06-12_2022-06-13.json.gz
from eida-statistics.
Thank you @kbouk I was able to ingest the result on my development environment.
There was no temporary network in your example, and I would like to test the aggregator with some usage stats from temporary network.
I validated that there is no regression bug though.
@ALL can someone test the new aggregator whith temporary networks involved ?
from eida-statistics.
I validated also with temporary networks. The fix is ready to hit the production.
from eida-statistics.
Related Issues (20)
- Starttime mandatory
- Group all statistics regarding restricted networks in "Other" HOT 5
- Replace datacenter and network management API with an information method HOT 2
- Implement a caching system HOT 2
- Add more functional tests HOT 1
- Write some behavioural tests
- Having openapi spec file served on the right protocol (https) HOT 2
- eida_statsman : add interface to manage networks and nodes policy HOT 2
- A simple method to get nodes and networks HOT 3
- Layout of the documentation HOT 2
- Sort CSV output HOT 1
- Extra information at the top of CSV format HOT 3
- eidastats_man manage authorizations HOT 1
- Permission error on table dataselect_stats problem is not reported to client HOT 1
- inconsistency in clients cardinality. HOT 8
- Webservice: accept JWT authentication
- Strange distribution of data from some nodes. HOT 1
- Sentry: set DSN by environment variable HOT 5
- Internal 500 errors HOT 5
- Pyramid-openapi3 dependency HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eida-statistics.