Skip to content
This repository has been archived by the owner on Oct 9, 2021. It is now read-only.

Error: Python 3.10.0 #264

Open
Topology1225 opened this issue Oct 8, 2021 · 1 comment
Open

Error: Python 3.10.0 #264

Topology1225 opened this issue Oct 8, 2021 · 1 comment

Comments

@Topology1225
Copy link

Expected behavior (what should have happened):

  • Python 3.9.7
satoharu@opt-amp3:~$ wakatime
usage: wakatime [-h] [--entity FILE] [--key API_KEY] [--write]
                [--plugin PLUGIN] [--time time] [--lineno INT]
                [--cursorpos INT] [--entity-type ENTITY_TYPE]
                [--category CATEGORY] [--proxy PROXY] [--no-ssl-verify]
                [--ssl-certs-file FILE] [--project PROJECT]
                [--alternate-project PROJECT] [--language LANGUAGE]
                [--local-file FILE] [--hostname HOSTNAME] [--disable-offline]
                [--hide-file-names] [--hide-project-names]
                [--hide-branch-names] [--exclude PATH]
                [--exclude-unknown-project] [--include PATH]
                [--include-only-with-project-file] [--extra-heartbeats]
                [--log-file FILE] [--api-url URL] [--timeout SECONDS]
                [--sync-offline-activity AMOUNT] [--today] [--config FILE]
                [--config-section SECTION] [--config-read KEY]
                [--config-write KEY VALUE] [--verbose] [--version]
wakatime: error: argument --entity is required

Actual behavior (what went wrong):

  • 3.10.0
satoharu@opt-cps1:~$ wakatime
Traceback (most recent call last):
  File "/home/satoharu/.pyenv/versions/3.10.0/bin/wakatime", line 5, in <module>
    from wakatime.__init__ import execute
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/__init__.py", line 17, in <module>
    from .main import execute
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/main.py", line 32, in <module>
    from .api import send_heartbeats, get_time_today
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/api.py", line 22, in <module>
    from .session_cache import SessionCache
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/session_cache.py", line 26, in <module>
    from .packages import requests
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/packages/urllib3/__init__.py", line 8, in <module>
    from .connectionpool import (
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/packages/urllib3/connectionpool.py", line 29, in <module>
    from .connection import (
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/packages/urllib3/connection.py", line 39, in <module>
    from .util.ssl_ import (
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/packages/urllib3/util/__init__.py", line 3, in <module>
    from .connection import is_connection_dropped
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/packages/urllib3/util/connection.py", line 3, in <module>
    from .wait import wait_for_read
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/packages/urllib3/util/wait.py", line 1, in <module>
    from .selectors import (
  File "/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/site-packages/wakatime/packages/urllib3/util/selectors.py", line 14, in <module>
    from collections import namedtuple, Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/home/satoharu/.pyenv/versions/3.10.0/lib/python3.10/collections/__init__.py)

Environment:

  • OS: linux (Ubuntu 20.04.3 LTS)
  • Platform: Intel(R) Xeon(R) Silver 4210R CPU @ 2.40GHz

Logs:

@alanhamlett alanhamlett transferred this issue from wakatime/wakatime-cli Oct 8, 2021
@alanhamlett
Copy link
Member

Please use the new Go wakatime-cli since this Python one isn't supported any longer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants