deepnl icon indicating copy to clipboard operation
deepnl copied to clipboard

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

Open alicjanna opened this issue 8 years ago • 7 comments

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'

alicjanna avatar Feb 08 '18 11:02 alicjanna

@alicjanna Did you find a solution?

Masum06 avatar Apr 04 '18 17:04 Masum06

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!

akbir avatar May 18 '18 20:05 akbir

@am-khan Thanks for your answer.

alicjanna avatar May 20 '18 21:05 alicjanna

Thanks @am-khan !

Masum06 avatar May 24 '18 04:05 Masum06

Thanks @am-khan !

zhizhunbao avatar May 16 '19 09:05 zhizhunbao

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?

1eclipse avatar Jan 07 '20 12:01 1eclipse

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

datdinhquoc avatar Jan 06 '22 22:01 datdinhquoc