Giter VIP home page Giter VIP logo

sport-activities-features's Introduction


sport-activities-features --- A minimalistic toolbox for extracting features from sports activity files written in Python


PyPI Version PyPI - Python Version Documentation Status PyPI - Downloads Downloads GitHub repo size GitHub license GitHub commit activity Average time to resolve an issue Percentage of issues still open All Contributors Fedora package AUR package Packaging status DOI

Unleashing the Power of Sports Activity Analysis: A Framework Beyond Ordinary Metrics πŸš€

Prepare to dive into the thrilling world of sports activity analysis, where hidden geographic, topological, and personalized data await their grand unveiling. In this captivating journey, we embark on a quest to extract the deepest insights from the wealth of information generated by monitoring sports activities. Brace yourself for a framework that transcends the limitations of conventional analysis techniques. πŸ’ͺπŸ”

Traditional approaches often rely on integral metrics like total duration, total distance, and average heart rate, but they fall victim to the dreaded "overall metrics problem." These metrics fail to capture the essence of sports activities, omitting crucial components and leading to potentially flawed and misleading conclusions. They lack the ability to recognize distinct stages and phases of the activity, such as the invigorating warm-up, the endurance-testing main event, and the heart-pounding intervals. β±οΈπŸš΄β€β™€οΈπŸ“ˆ

Fortunately, our sport-activities-framework rises above these limitations, revealing a comprehensive panorama of your sports activity files. This framework combines the power of identification and extraction methods to unlock a treasure trove of valuable data. Picture this πŸ“· : effortlessly identifying the number of hills, extracting average altitudes of these remarkable formations, measuring the total distance conquered on those inclines, and even deriving climbing ratios for a true measure of accomplishment (total distance of hills vs. total distance). But that's just the tip of the iceberg! The framework seamlessly integrates a multitude of extensions, including historical weather parsing, statistical evaluations, and ex-post visualizations that bring your data to life. πŸ—»πŸ“ŠπŸŒ¦οΈ

For those seeking to venture further, we invite you to explore the realms of scientific papers on data mining that delve into these captivating topics. Discover how our framework complements the world of generating and predicting automated sport training sessions, creating a harmonious synergy between theory and practice. πŸ“šπŸ”¬πŸ’‘

Detailed insights πŸ”

Prepare to be astounded by the capabilities of the sport-activities-features framework. It effortlessly handles TCX & GPX activity files and harnesses the power of the Overpass API nodes. Presenting the range of functions at your disposal:

  • Unleash the integral metrics: From total distance to total duration and even calorie count, witness the extraction of these vital statistics with a single glance. πŸ“β°πŸ”₯ (See example)

  • Conquer the peaks: Ascend to new heights by extracting topographic features like the number of hills, their average altitudes, the total distance covered on these majestic slopes, and the thrilling climbing ratio. Prepare for a breathtaking adventure! β›°οΈπŸ“ˆπŸ§—β€β™‚οΈ (See example)

  • Embark on a visual journey: Immerse yourself in the beauty of your accomplishments as you plot the identified hills on a mesmerizing map. Witness the landscape come alive before your eyes. πŸ—ΊοΈπŸžοΈπŸ–ŒοΈ (See example)

  • Embrace the rhythm of intervals: Explore the intervals within your sports activities, uncovering their numbers, durations, distances, and heart rates. Unveil the heartbeat of your performance! πŸƒβ€β™€οΈπŸ“ŠπŸ’“ (See example)

  • Calculate the training loads: Dive deep into the intricate world of training loads and discover the Banister TRIMP and Lucia TRIMP methods. Gain invaluable insights into optimizing your training regimen. πŸ“ˆβš–οΈπŸ‹οΈβ€β™‚οΈ (See example)

  • Weather the storm: Unlock the power of historical weather data from external services, adding a fascinating layer of context to your sports activities. β˜€οΈπŸŒ§οΈβ›ˆοΈ

  • Unveil the secrets within coordinates: Explore the integral metrics of your activities within specific geographical areas, uncovering valuable data on distance, heart rate, and speed. Peer into the depths of your performance! πŸŒπŸ“πŸ“‰ (See example)

  • Embrace randomness: Extract activities from CSV files and indulge in the excitement of randomly selecting a specific number of activities. Embrace the element of surprise! πŸŽ²πŸ“‚πŸŽ‰ (See example)

  • Conquer the dead ends: Unravel the mysteries of your sports activities by identifying the dead ends. Prepare to navigate the uncharted territories of your performance! πŸš§πŸ—ΊοΈπŸ” (See example)

  • Unlock the format: Seamlessly convert TCX files to GPX, opening doors to even more possibilities. Adapt and conquer! βš™οΈπŸ”„βœ¨ (See example)

And that's just the beginning! The sport-activities-framework holds countless other features, awaiting your exploration. Brace yourself for an exhilarating journey of discovery, where the ordinary becomes extraordinary, and your sports activities come alive like never before. 🌟πŸ”₯πŸƒβ€β™‚οΈ

The framework comes with two (testing) benchmark datasets, which are freely available to download from: DATASET1, DATASET2.

Installation

pip

Install sport-activities-features with pip:

pip install sport-activities-features

Alpine Linux

To install sport-activities-features on Alpine, use:

$ apk add py3-sport-activities-features

Fedora Linux

To install sport-activities-features on Fedora, use:

$ dnf install python3-sport-activities-features

Arch Linux

To install sport-activities-features on Arch Linux, please use an AUR helper:

$ yay -Syyu python-sport-activities-features

API

There is a simple API for remote work with the sport-activities-features package available here.

Graphical User Interface

There is a simple Graphical User Interface for the sport-activities-features package available here.

Historical weather data

Weather data parsed is collected from the Visual Crossing Weather API. Please note that this is an external unaffiliated service, and users must register to use the API. The service has a free tier (1000 Weather reports/day) but is otherwise operating on a pay-as-you-go model. For pricing and terms of use, please read the official documentation of the API provider.

Overpass API & Open Elevation API integration

Without performing activities, we can use the OpenStreetMap for the identification of hills, total ascent, and descent. This is done using the Overpass API which is a read-only API that allows querying of OSM map data. In addition to that altitude, data is retrieved by using the Open-Elevation API which is an open-source and free alternative to the Google Elevation API. Both of the solutions can be used by using free publicly acessible APIs (Overpass, Open-Elevation) or can be self hosted on a server or as a Docker container (Overpass, Open-Elevation).

CODE EXAMPLES:

Reading files

(*.TCX)

from sport_activities_features.tcx_manipulation import TCXFile

# Class for reading TCX files
tcx_file=TCXFile()
data = tcx_file.read_one_file("path_to_the_file") # Represents data as dictionary of lists

# Alternative choice
data = tcx_file.read_one_file("path_to_the_file", numpy_array= True) # Represents data as dictionary of numpy.arrays

(*.GPX)

from sport_activities_features.gpx_manipulation import GPXFile

# Class for reading GPX files
gpx_file=GPXFile()

# Read the file and generate a dictionary with 
data = gpx_file.read_one_file("path_to_the_file") # Represents data as dictionary of lists

# Alternative choice
data = gpx_file.read_one_file("path_to_the_file", numpy_array= True) # Represents data as dictionary of numpy.arrays

Extraction of topographic features

from sport_activities_features.hill_identification import HillIdentification
from sport_activities_features.tcx_manipulation import TCXFile
from sport_activities_features.topographic_features import TopographicFeatures
from sport_activities_features.plot_data import PlotData

# Read TCX file
tcx_file = TCXFile()
activity = tcx_file.read_one_file("path_to_the_file")

# Detect hills in data
Hill = HillIdentification(activity['altitudes'], 30)
Hill.identify_hills()
all_hills = Hill.return_hills()

# Extract features from data
Top = TopographicFeatures(all_hills)
num_hills = Top.num_of_hills()
avg_altitude = Top.avg_altitude_of_hills(activity['altitudes'])
avg_ascent = Top.avg_ascent_of_hills(activity['altitudes'])
distance_hills = Top.distance_of_hills(activity['positions'])
hills_share = Top.share_of_hills(distance_hills, activity['total_distance'])

Extraction of intervals

import sys
sys.path.append('../')

from sport_activities_features.interval_identification import IntervalIdentificationByPower, IntervalIdentificationByHeartrate
from sport_activities_features.tcx_manipulation import TCXFile

# Reading the TCX file
tcx_file = TCXFile()
activity = tcx_file.read_one_file("path_to_the_data")

# Identifying the intervals in the activity by power
Intervals = IntervalIdentificationByPower(activity["distances"], activity["timestamps"], activity["altitudes"], 70)
Intervals.identify_intervals()
all_intervals = Intervals.return_intervals()

# Identifying the intervals in the activity by heart rate
Intervals = IntervalIdentificationByHeartrate(activity["timestamps"], activity["altitudes"], activity["heartrates"])
Intervals.identify_intervals()
all_intervals = Intervals.return_intervals()

Parsing of Historical weather data from an external service

from sport_activities_features import WeatherIdentification
from sport_activities_features import TCXFile

# Read TCX file
tcx_file = TCXFile()
tcx_data = tcx_file.read_one_file("path_to_file")

# Configure visual crossing api key
visual_crossing_api_key = "weather_api_key" # https://www.visualcrossing.com/weather-api

# Explanation of elements - https://www.visualcrossing.com/resources/documentation/weather-data/weather-data-documentation/
weather = WeatherIdentification(tcx_data['positions'], tcx_data['timestamps'], visual_crossing_api_key)
weatherlist = weather.get_weather(time_delta=30)
tcx_weather = weather.get_average_weather_data(timestamps=tcx_data['timestamps'],weather=weatherlist)
# Add weather to TCX data
tcx_data.update({'weather':tcx_weather})

The weather list is of the following type:

     [
        {
            "temperature": 14.3,
            "maximum_temperature": 14.3,
            "minimum_temperature": 14.3,
            "wind_chill": null,
            "heat_index": null,
            "solar_radiation": null,
            "precipitation": 0.0,
            "sea_level_pressure": 1021.6,
            "snow_depth": null,
            "wind_speed": 6.9,
            "wind_direction": 129.0,
            "wind_gust": null,
            "visibility": 40.0,
            "cloud_cover": 54.3,
            "relative_humidity": 47.6,
            "dew_point": 3.3,
            "weather_type": "",
            "conditions": "Partially cloudy",
            "date": "2016-04-02T17:26:09+00:00",
            "location": [
                46.079871179535985,
                14.738618675619364
            ],
            "index": 0
        }, ...
    ]

Extraction of integral metrics

import sys
sys.path.append('../')

from sport_activities_features.tcx_manipulation import TCXFile

# Read TCX file
tcx_file = TCXFile()

integral_metrics = tcx_file.extract_integral_metrics("path_to_the_file")

print(integral_metrics)

Weather data extraction

from sport_activities_features.weather_identification import WeatherIdentification
from sport_activities_features.tcx_manipulation import TCXFile

#read TCX file
tcx_file = TCXFile()
tcx_data = tcx_file.read_one_file("path_to_the_file")

#configure visual crossing api key
visual_crossing_api_key = "API_KEY" # https://www.visualcrossing.com/weather-api

#return weather objects
weather = WeatherIdentification(tcx_data['positions'], tcx_data['timestamps'], visual_crossing_api_key)
weatherlist = weather.get_weather()

Using Overpass queried Open Street Map nodes

import overpy
from sport_activities_features.overpy_node_manipulation import OverpyNodesReader

# External service Overpass API (https://wiki.openstreetmap.org/wiki/Overpass_API) (can be self-hosted)
overpass_api = "https://lz4.overpass-api.de/api/interpreter"

# External service Open Elevation API (https://api.open-elevation.com/api/v1/lookup) (can be self-hosted)
open_elevation_api = "https://api.open-elevation.com/api/v1/lookup"

# OSM Way (https://wiki.openstreetmap.org/wiki/Way)
open_street_map_way = 164477980

overpass_api = overpy.Overpass(url=overpass_api)

# Get an example Overpass way
q = f"""(way({open_street_map_way});<;);out geom;"""
query = overpass_api.query(q)

# Get nodes of an Overpass way
nodes = query.ways[0].get_nodes(resolve_missing=True)

# Extract basic data from nodes (you can, later on, use Hill Identification and Hill Data Extraction on them)
overpy_reader = OverpyNodesReader(open_elevation_api=open_elevation_api)
# Returns {
#         'positions': positions, 'altitudes': altitudes, 'distances': distances, 'total_distance': total_distance
#         }
data = overpy_reader.read_nodes(nodes)

Extraction of data inside the area

import numpy as np
import sys
sys.path.append('../')

from sport_activities_features.area_identification import AreaIdentification
from sport_activities_features.tcx_manipulation import TCXFile

# Reading the TCX file.
tcx_file = TCXFile()
activity = tcx_file.read_one_file('path_to_the_data')

# Converting the read data to arrays.
positions = np.array([*activity['positions']])
distances = np.array([*activity['distances']])
timestamps = np.array([*activity['timestamps']])
heartrates = np.array([*activity['heartrates']])

# Area coordinates should be given in clockwise orientation in the form of 3D array (number_of_hulls, hull_coordinates, 2).
# Holes in area are permitted.
area_coordinates = np.array([[[10, 10], [10, 50], [50, 50], [50, 10]],
                             [[19, 19], [19, 21], [21, 21], [21, 19]]])

# Extracting the data inside the given area.
area = AreaIdentification(positions, distances, timestamps, heartrates, area_coordinates)
area.identify_points_in_area()
area_data = area.extract_data_in_area()

Identify interruptions

from sport_activities_features.interruptions.interruption_processor import InterruptionProcessor
from sport_activities_features.tcx_manipulation import TCXFile

"""
Identify interruption events from a TCX or GPX file.
"""

# read TCX file (also works with GPX files)
tcx_file = TCXFile()
tcx_data = tcx_file.read_one_file("path_to_the_data")

"""
Time interval = time before and after the start of an event
Min speed = Threshold speed to trigger an event/interruption (trigger when under min_speed)
overpass_api_url = Set to something self-hosted, or use a public instance from https://wiki.openstreetmap.org/wiki/Overpass_API
"""
interruptionProcessor = InterruptionProcessor(time_interval=60, min_speed=2,
                                              overpass_api_url="url_to_overpass_api")

"""
If classify is set to true, also discover if interruptions are close to intersections. Returns a list of [ExerciseEvent]
"""
events = interruptionProcessor.events(tcx_data, True)

Overpy (Overpass API) node manipulation

Generate TCXFile parsed like data object from overpy.Node objects

import overpy
from sport_activities_features.overpy_node_manipulation import OverpyNodesReader


# External service Overpass API (https://wiki.openstreetmap.org/wiki/Overpass_API) (can be self-hosted)
overpass_api = "https://lz4.overpass-api.de/api/interpreter"

# External service Open Elevation API (https://api.open-elevation.com/api/v1/lookup) (can be self-hosted)
open_elevation_api = "https://api.open-elevation.com/api/v1/lookup"

# OSM Way (https://wiki.openstreetmap.org/wiki/Way)
open_street_map_way = 164477980

overpass_api = overpy.Overpass(url=overpass_api)

# Get an example Overpass way
q = f"""(way({open_street_map_way});<;);out geom;"""
query = overpass_api.query(q)

# Get nodes of an Overpass way
nodes = query.ways[0].get_nodes(resolve_missing=True)

# Extract basic data from nodes (you can, later on, use Hill Identification and Hill Data Extraction on them)
overpy_reader = OverpyNodesReader(open_elevation_api=open_elevation_api)
# Returns {
#         'positions': positions, 'altitudes': altitudes, 'distances': distances, 'total_distance': total_distance
#         }
data = overpy_reader.read_nodes(nodes)

Missing elevation data extraction

from sport_activities_features import ElevationIdentification
from sport_activities_features import TCXFile

tcx_file = TCXFile()
tcx_data = tcx_file.read_one_file('path_to_file')

elevations = ElevationIdentification(tcx_data['positions'])
"""Adds tcx_data['elevation'] = eg. [124, 21, 412] for each position"""
tcx_data.update({'elevations':elevations})

Example of a visualization of the area detection

Area Figure

Example of visualization of dead-end identification

Dead End Figure

License

This package is distributed under the MIT License. This license can be found online at http://www.opensource.org/licenses/MIT.

Disclaimer

This framework is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it at your own risk!

Cite us

I. Jr. Fister, L. Lukač, A. Rajőp, I. Fister, L. Pečnik and D. Fister, "A minimalistic toolbox for extracting features from sport activity files", 2021 IEEE 25th International Conference on Intelligent Engineering Systems (INES), 2021, pp. 121-126, doi: 10.1109/INES52918.2021.9512927.

Further read

[1] Awesome Computational Intelligence in Sports

Related frameworks

[1] AST-Monitor: A wearable Raspberry Pi computer for cyclists

[2] TCXReader.jl: Julia package designed for parsing TCX files

[3] TCXWriter: A Tiny Library for writing/creating TCX files on Arduino

Contributors ✨

Thanks go to these wonderful people (emoji key):

alenrajsp
alenrajsp

πŸ’» ⚠️ πŸ’‘ πŸ“– πŸ€” πŸ› 🚧
Iztok Fister Jr.
Iztok Fister Jr.

πŸ’» πŸ› ⚠️ πŸ’‘ πŸ“– πŸ€” πŸ§‘β€πŸ« πŸ“¦ 🚧 πŸ”£
luckyLukac
luckyLukac

πŸ€” πŸ’» πŸ› ⚠️ πŸ’‘
rhododendrom
rhododendrom

πŸ’» 🎨 πŸ“– πŸ€”
Luka Pečnik
Luka Pečnik

πŸ’» πŸ“– ⚠️ πŸ›
spelap
spelap

πŸ’»
Oromion
Oromion

🚧 πŸ›
Luka Koprivc
Luka Koprivc

πŸ›
Nejc Graj
Nejc Graj

πŸ›
MlinaricNejc
MlinaricNejc

πŸ›
Tatookie
Tatookie

πŸ’» πŸ› ⚠️ πŸ’‘ 🚧
Zala Lahovnik
Zala Lahovnik

πŸ“– πŸ’»
Tadej Lahovnik
Tadej Lahovnik

πŸ“–
HlisTilen
HlisTilen

πŸ“–

This project follows the all-contributors specification. Contributions of any kind are welcome!

sport-activities-features's People

Contributors

alenrajsp avatar allcontributors[bot] avatar carlosal1015 avatar dependabot[bot] avatar firefly-cpp avatar garyjellyarms avatar hlistilen avatar kukovecrok avatar lahovniktadej avatar luckylukac avatar lukapecnik avatar rhododendrom avatar spelapecnik avatar zala-lahovnik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sport-activities-features's Issues

issue with parsing test data

an issue while trying to perform the Hills.identify_hills(), pictures of the stack call back and some of the test files that caused the issue
errors
wrong_files

Tcxreader issue

activity = tcx_file.read_one_file('dead_end.tcx')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/lib/python3.11/site-packages/sport_activities_features/tcx_manipulation.py", line 57, in read_one_file
tcx = TCXReader().read(filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/tcxreader/tcxreader.py", line 48, in read
self.trackpoint_parser(tcx_point, trackpoint)
File "/usr/lib/python3.11/site-packages/tcxreader/tcxreader.py", line 116, in trackpoint_parser
tcx_point.time = datetime.datetime.strptime(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '2021-09-29T15:17:30Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'

Segments

Description: Implement "segments" functionality - similar to what we can see in Strava.

Input: segment which is represented as a path (collection of GPS points); a collection of sports activities

Output: Table of results

Add 0.3.13 to pypi

Please upload the newer version (0.3.13) to pypi, so that it can be used in sport-activities-features-gui (pyproject toml has 0.3.13 specified).

image

Support FIT files

GPX and TCX file extensions are now supported by this software. However, support for FIT files is still missing. It is heavily used by Garmin as well as Zwift.

More info

Any volunteers for working on this task? @alenrajsp or @luckyLukac?

Read one GPX file produces division by zero

When I mass imported a mass collection, exported from strava, a large ammount of them failed. It would appear, when parsing the file a point is somehow read twice but differently - picture provided bellow.

image

image

These different points are actually one the the XML

image

Hill visualization creates overlapping hills

It would appear detected hills can overlap. After creation of visuals of hill climbs using the algorithm, I've noticed weird behavior when processing the data further - my bug seems to appear from hills being allowed to overlap, which I don't know if is the desired behavior. Here is the issue visualized in google earth -
image
There are actually 4 dots in the picture
image
Here are the two hills on top of each other
image
This is an outtake of my exported and processed XML file
image
The problem isn't export related as I can see the values in my debugger. I'm attaching the problematic file bellow

02_25_2019_10_51_26_trackMap.zip

seaborn-* styles are deprecated

The seaborn-whitegrid style used in this package was renamed and deprecated in Matplotlib 3.6 The upcoming Matplotlib 3.8 release has removed the deprecated names and will cause this package to fail to import, e.g.,

______________ ERROR collecting tests/test_area_identification.py ______________
/usr/lib64/python3.12/site-packages/matplotlib/style/core.py:137: in use
    style = _rc_params_in_file(style)
/usr/lib64/python3.12/site-packages/matplotlib/__init__.py:869: in _rc_params_in_file
    with _open_file_or_url(fname) as fd:
/usr/lib64/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
/usr/lib64/python3.12/site-packages/matplotlib/__init__.py:846: in _open_file_or_url
    with open(fname, encoding='utf-8') as f:
E   FileNotFoundError: [Errno 2] No such file or directory: 'seaborn-whitegrid'

The above exception was the direct cause of the following exception:
tests/test_area_identification.py:6: in <module>
    from sport_activities_features.area_identification import AreaIdentification
sport_activities_features/__init__.py:18: in <module>
    from sport_activities_features.plot_data import PlotData
sport_activities_features/plot_data.py:3: in <module>
    plt.style.use('seaborn-whitegrid')
/usr/lib64/python3.12/site-packages/matplotlib/style/core.py:139: in use
    raise OSError(
E   OSError: 'seaborn-whitegrid' is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in `style.available`)

Add tests

Add tests for GPXFile, InterruptionProcessor, OverpyNodesReader, WeatherIdentification.

Invalid configuration

COMMAND: poetry build

RuntimeError

The Poetry configuration is invalid:
- Additional properties are not allowed ('group' was unexpected)

at /usr/lib/python3.11/site-packages/poetry/core/factory.py:43 in create_poetry
39β”‚ message = ""
40β”‚ for error in check_result["errors"]:
41β”‚ message += " - {}\n".format(error)
42β”‚
β†’ 43β”‚ raise RuntimeError("The Poetry configuration is invalid:\n" + message)
44β”‚
45β”‚ # Load package
46β”‚ name = local_config["name"]
47β”‚ version = local_config["version"]

Poetry Issue

There is an issue with poetry.lock and/or pyproject.toml (the file cannot be read nor updated). A more detailed description can be found in the attached screenshot.

Screenshot 2021-11-18 174445

Fix building docs when using LaTeX

Latexmk: Run number 1 of rule 'pdflatex'
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
Latexmk: ====Undefined refs and citations with line #s in .tex file:
! LaTeX Error: Unicode character πŸš€ (U+1F680)
! LaTeX Error: Unicode character πŸ’ͺ (U+1F4AA)
! LaTeX Error: Unicode character πŸ” (U+1F50D)
! LaTeX Error: Unicode character ⏱ (U+23F1)
! LaTeX Error: Unicode character (U+FE0F)
! LaTeX Error: Unicode character 🚴 (U+1F6B4)
! LaTeX Error: Unicode character ‍ (U+200D)
And 89 more --- see log file 'sport-activities-features.log'

Failed to validate build-system in pyproject.toml: Unknown properties: exclude

Hi, when I tried to compile from source 0.3.15 I got the following message

==> Retrieving sources...
  -> Downloading sport-activities-features-0.3.15.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 4468k    0 4468k    0     0  5834k      0 --:--:-- --:--:-- --:--:--  9.9M
==> Validating source files with sha512sums...
    sport-activities-features-0.3.15.tar.gz ... Passed
==> Extracting sources...
  -> Extracting sport-activities-features-0.3.15.tar.gz with bsdtar
==> Starting build()...
ERROR Failed to validate `build-system` in pyproject.toml: Unknown properties: exclude
==> ERROR: A failure occurred in build().
    Aborting...

Similar issue https://github.com/orgs/python-poetry/discussions/8111

Tests

@alenrajsp, your tests are failing. Please check it out!

FAILED sport_activities_features/tests/test_overpy_node_manipulation.py::TestWeather::test_generated_object_altitudes - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

FAILED sport_activities_features/tests/test_overpy_node_manipulation.py::TestWeather::test_generated_object_properties - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

One test is failing

Hi @luckyLukac,

ERROR collecting sport_activities_features/tests/test_area_identification.py _
ImportError while importing test module '/builddir/build/BUILD/sport-activities-features-0.2.6/sport_activities_features/tests/test_area_identification.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.10/importlib/init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
sport_activities_features/tests/test_area_identification.py:4: in
from sport_activities_features.area_identification import AreaIdentification
sport_activities_features/area_identification.py:1: in
import geotiler
E ModuleNotFoundError: No module named 'geotiler'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.