jonathandunn / text_analytics

Basic text analytics and natural language processing in Python
GNU General Public License v3.0
119 stars 53 forks source link

metaclass conflict error #7

Closed Estella85 closed 2 years ago

Estella85 commented 2 years ago

Hello all,

after I run the first step of lab1.2

from text_analytics import text_analytics import os import pandas as pd print("Done!")

I got the following error "TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases".

I'm new to phyton, so, how can I solve this?

In addition to that, Is there a way I can download and see the structure of data we have to work on (e.g. "Wordclouds.Business_Insider.gz")? I cannot find it in this package https://github.com/jonathandunn/text_analytics.

Thank you Alessandra

damiansastre commented 2 years ago

Hi Alessandra,

can you try changing the line:

from text_analytics import text_analytics

to

from text_analytics import TextAnalytics

let me know if it works.

On Fri, 18 Mar 2022 at 10:51 PM, Estella85 @.***> wrote:

Hello all,

after I run the first step of lab1.2

from text_analytics import text_analytics import os import pandas as pd print("Done!")

I got the following error "TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases".

I'm new to phyton, so, how can I solve this?

In addition to that, Is there a way I can download and see the structure of data we have to work on (e.g. "Wordclouds.Business_Insider.gz")? I cannot find it in this package https://github.com/jonathandunn/text_analytics.

Thank you Alessandra

— Reply to this email directly, view it on GitHub https://github.com/jonathandunn/text_analytics/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG5YK6S2RTI7HOQIFWSRMLVARGZ5ANCNFSM5RBK5HIA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Estella85 commented 2 years ago

Hi tagercito,

thank you for your support. I tried but I got the same error.

jonathandunn commented 2 years ago

Kia ora Alessandra,

I'm assuming you are referring to this notebook: https://github.com/jonathandunn/corpus_analysis/blob/main/Lab%201.2.%20Accessing%20the%20Corpora.ipynb

First, the data should be available here: https://doi.org/10.24433/CO.3402613.v1

Second, in terms of the error itself, I've not seen that one before. Are you referring to a pip installed version of text_analytics or a local version?

Cheers,

Jonathan