chartbeat-labs / textacy

NLP, before and after spaCy
https://textacy.readthedocs.io
Other
2.21k stars 249 forks source link

Could able to import textacy package. #245

Closed raman-r-4978 closed 5 years ago

raman-r-4978 commented 5 years ago

Workspace:

Screenshot 2019-05-30 at 3 50 38 PM(1)

can some of you please help me to solve this?

bdewilde commented 5 years ago

Whoa, that's weird — normally the standard library works without any trouble. Can you import bz2 directly in the repl?

raman-r-4978 commented 5 years ago

Hey @bdewilde , Thanks for your reply.

Can you import bz2 directly in the repl?

The same error happens. Has it something to do with my system or python3.7 env? Why I am asking this is, It is working completely fine in python3.5 env.

bdewilde commented 5 years ago

Hi @RamanRajarathinam , I can't tell you exactly what's gone wrong, but something in your PY3.7 install is definitely off. The standard library should always work. Are you able to install a fresh version, and then import bz2 without issue?

raman-r-4978 commented 5 years ago

Are you able to install a fresh version, and then import bz2 without issue?

Nope. There seems to be a problem in import bz2 itself

bdewilde commented 5 years ago

Hey, I have no way to debug this. import bz2 is valid Python that should work without issue, assuming the installation is good. I did a bit of google searching and found a couple SO posts about bz2 issues on Linux — e.g. this or this — maybe they can point you in the right direction.