Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem when parsing #47

Open
Asma-droid opened this issue Aug 28, 2020 · 2 comments
Open

problem when parsing #47

Asma-droid opened this issue Aug 28, 2020 · 2 comments

Comments

@Asma-droid
Copy link

Hi,

When i launch print(d.parse_time(u'Let's meet at 11:45am')), i obtain the error
'<' not supported between instances of 'slice' and 'int'

@masdeseiscaracteres
Copy link

I had the same problem. Apparently, it is due to an incompatibility between python-duckling and the latest release of JPype1. The setup.py file in python-duckling is not constraining the version of JPype1 and, consequently, the latest available version is installed.

What I did to solve it was to install the latest version of JPype1 at the time my version of python-duckling was released.
That is, for python-duckling==1.8.0 (released on Apr 5, 2018), I installed JPype1==0.6.3 (released on Apr 3, 2018).

P.S.: If facing compilation issues when doing pip install JPype1==0.6.3, try installing the first version released as a wheel package, that is: pip install --force-reinstall JPype1==0.7.0

@nbeuchat
Copy link

nbeuchat commented Jan 21, 2021

I had a similar issue and @masdeseiscaracteres solution worked. However, I had to use pip install --force-reinstall JPype1==0.6.3 (not pip install --force-reinstall JPype1==0.7.0)

My error message was: TypeError: int() argument must be a string, a bytes-like object or a number, not 'java.lang.String'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants