Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72908 - [python-dateparser] No module named 'pytz'

Attached to Project: Community Packages
Opened by Paulo F (beholder) - Friday, 03 December 2021, 06:39 GMT
Last edited by Maxime Gauduin (Alucryd) - Friday, 14 January 2022, 17:59 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

after I installed python-dateparser and tried to import it, I got the following exception

```
$ python
Python 3.9.9 (main, Nov 20 2021, 21:30:06)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dateparser
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.9/site-packages/dateparser/__init__.py", line 3, in <module>
from .date import DateDataParser
File "/usr/lib/python3.9/site-packages/dateparser/date.py", line 9, in <module>
from dateparser.date_parser import date_parser
File "/usr/lib/python3.9/site-packages/dateparser/date_parser.py", line 4, in <module>
from .utils import strip_braces, apply_timezone, localize_timezone
File "/usr/lib/python3.9/site-packages/dateparser/utils/__init__.py", line 9, in <module>
from pytz import UTC, timezone, UnknownTimeZoneError
ModuleNotFoundError: No module named 'pytz'
>>> quit()

```

Additional info:
* package version(s): 1.1.0-1

Steps to reproduce:

```
import dateparser
```

Workaround:

manually installing python-pytz worked for me

```
pacman -S python-pytz
```
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Friday, 14 January 2022, 17:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.1.0-3

Loading...