Could you try to make this an optional feature with
```python
try:
  import qrcode
except Import Error:
  draw_qrcode = False
else:
  draw_qrcode = True
```
And later you can test this variable an only draw the qrcode, if draw_qrcode == True. If you do it in this way, distributors like fedora can make the qrcode-package an optional dependency.