Bug 1909475

Summary: [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]`.
Product: [Fedora] Fedora Reporter: René Seifert <rene.seifert>
Component: python-googletransAssignee: Lyes Saadi <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/d7a536c8e1edf01fc8dfe17505ecc28c04c814b8
Whiteboard: abrt_hash:cff8a770d83b8883197ce1a1afa2cf1d21559835;VARIANT_ID=workstation;
Fixed In Version: python-googletrans-4.0.0~rc1-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-29 01:17:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

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.