attardi / deepnl

Deep Learning for Natural Language Processing
GNU General Public License v3.0
457 stars 116 forks source link

'<' not supported between instances of 'dict' and 'dict' #54

Open alicjanna opened 6 years ago

alicjanna commented 6 years ago

I'm trying to install the library on windows 10 on Anaconda 3 and I get the error. I run the command: python setup.py build and I get this:

Traceback (most recent call last): File "setup.py", line 62, in nthreads=4), File "C:\Users\DominikaSarkowicz\Anaconda3\envs\tensorflow\lib\site-packages\Cython\Build\Dependencies.py", line 1000, in cythonize to_compile.sort() TypeError: '<' not supported between instances of 'dict' and 'dict'

Masum06 commented 6 years ago

@alicjanna Did you find a solution?

akbir commented 6 years ago

hey, i found you need to use python2 for this code to work. You also need to have Cython 2.5 installed. Any later version has a problem!

alicjanna commented 6 years ago

@am-khan Thanks for your answer.

Masum06 commented 6 years ago

Thanks @am-khan !

zhizhunbao commented 5 years ago

Thanks @am-khan !

1eclipse commented 4 years ago

Halo! Have you successfully installed deepnl? Where do you install it? windows, linux or mac? i have some problems in windows? Can you help me?

datdinhquoc commented 2 years ago

not about deepnl, but i made it work this way

change

to_compile.sort()

to

to_compile.sort(key=lambda x: x[0]) # it's a tuple, the first value is numeric