bear / parsedatetime

Parse human-readable date/time strings
Apache License 2.0
695 stars 106 forks source link

AttributeError: 'module' object has no attribute 'pdtLocale_icu' #212

Closed phoebebright closed 7 years ago

phoebebright commented 7 years ago

Get this error when running tests.

Was able to "fix" by reverting to

from .pdt_locales import load_locale

pdtLocales = {
    'en_US': load_locale('en_US'),
    'en_AU': load_locale('en_AU'),
    ...

Fix only worked for some tests.

Using python 2.7.10

idpaterson commented 7 years ago

Hi Phoebe, would you please provide some context as to where that code was added, what it was originally, and in which version of parsedatetime you noticed the problem?

phoebebright commented 7 years ago

I'll delete this in a minute. I have a fork which comments out the force addition of . and - to the date separators and in syncing with your current master I have clearly made a mess! Much quicker to start with a clean fork and change one line of code!

idpaterson commented 7 years ago

No problem, parsedatetime version 3.0 is underway and once the new test suite is complete it will be time to move on to fixes like #152 based on your original request.

phoebebright commented 7 years ago

I look foward to it. Can I make a request?

idpaterson commented 7 years ago

Certainly, it's a good time to report any bugs or feature requests. For 3.0 it's unlikely that any major new features will be added unless pull requests are submitted since there are a lot of bugs to fix, but if you have an idea go ahead and make a new issue to share it.

phoebebright commented 7 years ago

Will do.

gdudek commented 4 years ago

Workaround: pip install 'parsedatetime==2.5'