diff --git a/reportportal_client/service.py b/reportportal_client/service.py
index 2bd83c9..43bde6b 100644
--- a/reportportal_client/service.py
+++ b/reportportal_client/service.py
@@ -475,7 +475,8 @@ class ReportPortalService(object):
                        'machine': "Windows10_pc"}
         """
         try:
-            agent_version = pkg_resources.get_distribution(agent_name)
+            agent_version = pkg_resources.get_distribution(
+                agent_name).version
             agent = '{0}-{1}'.format(agent_name, agent_version)
         except pkg_resources.DistributionNotFound:
             agent = 'not found'

Duplicate agent name in agent name attached as system information
```
# python
Python 3.6.5 (default, Apr 10 2018, 17:08:37) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from reportportal_client.service import ReportPortalService
>>> ReportPortalService.get_system_information('pytest-reportportal')
{'agent': 'pytest-reportportal-pytest-reportportal 5.0.2', 'os': 'Linux', 'cpu': 'x86_64', 'machine': 'x86_64'}
```

diff --git a/tests/test_service.py b/tests/test_service.py
index 9d57f80..8dc178c 100644
--- a/tests/test_service.py
+++ b/tests/test_service.py
@@ -83,24 +83,23 @@ class TestReportPortalService:
         :param rp_service: Pytest fixture
         """
         mock_get.return_value = {"id": 111}
-        _get_msg = rp_service.finish_launch('name', datetime.now().isoformat())
+        _get_msg = rp_service.finish_launch(
+            'name', datetime.now().isoformat())
         assert _get_msg == {"id": 111}
 
     @mock.patch('platform.system', mock.Mock(return_value='linux'))
     @mock.patch('platform.machine', mock.Mock(return_value='Windows-PC'))
     @mock.patch('platform.processor', mock.Mock(return_value='amd'))
-    @mock.patch('pkg_resources.get_distribution',
-                mock.Mock(return_value='pytest 5.0'))
-    def test_get_system_information(self):
+    @mock.patch('pkg_resources.get_distribution')
+    def test_get_system_information(self, distro):
         """Test for validate get_system_information."""
-
-        expected_result = {'agent': 'pytest-pytest 5.0',
+        distro.return_value.version = '5.0'
+        expected_result = {'agent': 'reportportal-client-5.0',
                            'cpu': 'amd',
                            'machine': 'Windows-PC',
                            'os': 'linux'}
-
-        cond = (ReportPortalService.get_system_information('pytest')
-                == expected_result)
+        cond = (ReportPortalService.get_system_information(
+            'reportportal-client') == expected_result)
         assert cond
 
     @mock.patch('platform.system', mock.Mock())

pip install -e .[dev]
parse_log_pytest
pytest
pycodestyle pydocstyle pytest delayed-assert requests
3.8
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi==2025.1.31
charset-normalizer==3.4.1
delayed-assert==0.3.6
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
idna==3.10
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
packaging @ file:///croot/packaging_1720101850331/work
pluggy @ file:///tmp/build/80754af9/pluggy_1648042571233/work
pycodestyle==2.12.1
pydocstyle==6.3.0
pytest @ file:///croot/pytest_1717793244625/work
-e git+https://github.com/reportportal/client-Python.git@85bf231c8c04bce4f66771a4565591af2e03fbb4#egg=reportportal_client
requests==2.32.3
six==1.17.0
snowballstemmer==2.2.0
tomli @ file:///opt/conda/conda-bld/tomli_1657175507142/work
urllib3==2.2.3

name: client-Python
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - exceptiongroup=1.2.0=py38h06a4308_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - packaging=24.1=py38h06a4308_0
  - pip=24.2=py38h06a4308_0
  - pluggy=1.0.0=py38h06a4308_1
  - pytest=7.4.4=py38h06a4308_0
  - python=3.8.20=he870216_0
  - readline=8.2=h5eee18b_0
  - setuptools=75.1.0=py38h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tomli=2.0.1=py38h06a4308_0
  - wheel=0.44.0=py38h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - delayed-assert==0.3.6
      - idna==3.10
      - pycodestyle==2.12.1
      - pydocstyle==6.3.0
      - requests==2.32.3
      - six==1.17.0
      - snowballstemmer==2.2.0
      - urllib3==2.2.3
prefix: /opt/conda/envs/client-Python

tests/test_service.py::TestReportPortalService::test_get_system_information
tests/test_service.py::TestServiceFunctions::test_check_convert_to_string tests/test_service.py::TestServiceFunctions::test_dict_to_payload_with_system_key[True] tests/test_service.py::TestServiceFunctions::test_dict_to_payload_with_system_key[False] tests/test_service.py::TestServiceFunctions::test_get_id tests/test_service.py::TestServiceFunctions::test_get_msg tests/test_service.py::TestServiceFunctions::test_get_data tests/test_service.py::TestServiceFunctions::test_get_json tests/test_service.py::TestServiceFunctions::test_get_messages tests/test_service.py::TestReportPortalService::test_start_launch tests/test_service.py::TestReportPortalService::test_finish_launch tests/test_service.py::TestReportPortalService::test_get_system_information_docker tests/test_service.py::TestReportPortalService::test_get_system_information_without_pkg
reportportal_client/service.py
reportportal_client/service.py