attardi / deepnl

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

Build deepnl #41

Closed qizzz closed 7 years ago

qizzz commented 7 years ago

Is this normal?

Please put "# distutils: language=c++" in your .pyx or .pxd file(s) Warning: Extension name 'deepnl/words' does not match fully qualified name 'words' of 'deepnl/words.pyx' deepnl/words.pyx: cannot find cimported module 'trainer' deepnl/words.pyx: cannot find cimported module 'network' deepnl/words.pyx: cannot find cimported module 'math' deepnl/words.pyx: cannot find cimported module 'extractors' deepnl/words.pxd: cannot find cimported module 'trainer' deepnl/words.pxd: cannot find cimported module 'network' Warning: Extension name 'deepnl/hpca' does not match fully qualified name 'hpca' of 'deepnl/hpca.pyx' deepnl/hpca.pyx: cannot find cimported module 'network' ...

attardi commented 7 years ago

Not normal, it is already there. Did you install Cython?

qizzz commented 7 years ago

Thanks a lot for the reply, Giuseppe! Yes, I've installed Cython... After I built with this problem, I couldn't run scripts under bin/, since every time I ran them, it would give me error like "no deepnl module" in the lines of importing deepnl, deepnl.network etc.

MelodiousThonk commented 7 years ago

I have the same problem

liyumeng commented 7 years ago

I have the same problem, then I create an empty file named __init__.py in deepnl/deepnl/. It's solved!

attardi commented 7 years ago

Good suggestion. Fixed.