Bug 1909475 - [abrt] dialect: __init__(): _client.py:590:__init__:ImportError: Using http2=True, but the 'h2' package is not installed. Make sure to install httpx using `pip install httpx[http2]`.
Summary: [abrt] dialect: __init__(): _client.py:590:__init__:ImportError: Using http2=...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-googletrans
Version: 33
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lyes Saadi
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:cff8a770d83b8883197ce1a1afa...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-20 09:21 UTC by René Seifert
Modified: 2020-12-29 01:17 UTC (History)
1 user (show)

Fixed In Version: python-googletrans-4.0.0~rc1-1.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-29 01:17:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.14 KB, text/plain)
2020-12-20 09:22 UTC, René Seifert
no flags Details
File: cgroup (587 bytes, text/plain)
2020-12-20 09:22 UTC, René Seifert
no flags Details
File: cpuinfo (2.50 KB, text/plain)
2020-12-20 09:22 UTC, René Seifert
no flags Details
File: environ (1.23 KB, text/plain)
2020-12-20 09:22 UTC, René Seifert
no flags Details
File: mountinfo (4.24 KB, text/plain)
2020-12-20 09:22 UTC, René Seifert
no flags Details
File: namespaces (172 bytes, text/plain)
2020-12-20 09:22 UTC, René Seifert
no flags Details
File: open_fds (900 bytes, text/plain)
2020-12-20 09:22 UTC, René Seifert
no flags Details

Description René Seifert 2020-12-20 09:21:59 UTC
Description of problem:
After boot i got this message

Version-Release number of selected component:
dialect-1.1.0-3.fc33

Additional info:
reporter:       libreport-2.14.0
cmdline:        /usr/bin/python3 /usr/share/dialect/search_provider
crash_function: __init__
exception_type: ImportError
executable:     /usr/share/dialect/search_provider
interpreter:    python3-3.9.0-1.fc33.x86_64
kernel:         5.9.14-200.fc33.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
_client.py:590:__init__:ImportError: Using http2=True, but the 'h2' package is not installed. Make sure to install httpx using `pip install httpx[http2]`.

Traceback (most recent call last):
  File "/usr/share/dialect/search_provider", line 187, in <module>
    TranslateService()
  File "/usr/share/dialect/search_provider", line 40, in __init__
    self.translator = Translator()
  File "/usr/lib/python3.9/site-packages/googletrans/client.py", line 61, in __init__
    self.client = httpx.Client(http2=http2)
  File "/usr/lib/python3.9/site-packages/httpx/_client.py", line 590, in __init__
    raise ImportError(
ImportError: Using http2=True, but the 'h2' package is not installed. Make sure to install httpx using `pip install httpx[http2]`.

Local variables in innermost frame:
auth: None
params: None
headers: None
cookies: None
proxies: None
timeout: Timeout(timeout=5.0)
pool_limits: None
max_redirects: 20
event_hooks: None
base_url: ''
transport: None
app: None
cert: None
http2: True
limits: Limits(max_connections=100, max_keepalive_connections=20)
self: <httpx.Client object at 0x7fc978d362b0>
trust_env: True
verify: True
__class__: <class 'httpx.Client'>

Comment 1 René Seifert 2020-12-20 09:22:03 UTC
Created attachment 1740594 [details]
File: backtrace

Comment 2 René Seifert 2020-12-20 09:22:05 UTC
Created attachment 1740595 [details]
File: cgroup

Comment 3 René Seifert 2020-12-20 09:22:06 UTC
Created attachment 1740596 [details]
File: cpuinfo

Comment 4 René Seifert 2020-12-20 09:22:08 UTC
Created attachment 1740597 [details]
File: environ

Comment 5 René Seifert 2020-12-20 09:22:10 UTC
Created attachment 1740598 [details]
File: mountinfo

Comment 6 René Seifert 2020-12-20 09:22:12 UTC
Created attachment 1740599 [details]
File: namespaces

Comment 7 René Seifert 2020-12-20 09:22:14 UTC
Created attachment 1740600 [details]
File: open_fds

Comment 8 Lyes Saadi 2020-12-20 12:38:49 UTC
So, this is actually a python-googletrans bug, but that's not an issue since I'm also its maintainer :P!

The python-googletrans devs forgot to specify the h2 dependency :/!

To quickly solve this, run:
```
sudo dnf install python-h2
```

I'll add the dependency and update googletrans this afternoon (at least... my afternoon, depending on which timezone you are :P!).

Comment 9 Fedora Update System 2020-12-20 13:25:38 UTC
FEDORA-2020-05916911d2 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-05916911d2

Comment 10 Fedora Update System 2020-12-21 02:23:49 UTC
FEDORA-2020-05916911d2 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-05916911d2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-05916911d2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2020-12-29 01:17:18 UTC
FEDORA-2020-05916911d2 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.