angelosalatino / cso-classifier

Python library that classifies content from scientific papers with the topics of the Computer Science Ontology (CSO).
https://cso.kmi.open.ac.uk
Apache License 2.0
84 stars 18 forks source link

error in setup of cso classifier #17

Open AsmaKhatoon123 opened 4 months ago

AsmaKhatoon123 commented 4 months ago

hello there

Following the mentioned steps, we have got this error

"python setup.py egg_info did not run successfully. exit code: 1

[8 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\asmas\cso-classifier\setup.py", line 5, in long_description = fh.read() File "C:\Users\asmas\anaconda3\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 38260: character maps to [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details."

can you help in this

angelosalatino commented 4 months ago

hi @AsmaKhatoon123 which version of python are you using?

AsmaKhatoon123 commented 4 months ago

It's 3.11

On Mon, 8 Jul 2024, 4:18 pm Angelo A. Salatino, @.***> wrote:

hi @AsmaKhatoon123 https://github.com/AsmaKhatoon123 which version of python are you using?

— Reply to this email directly, view it on GitHub https://github.com/angelosalatino/cso-classifier/issues/17#issuecomment-2214056254, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5P56EHXB2IOTL4Z6B2DKMDZLKGTLAVCNFSM6AAAAABKQC6D2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGA2TMMRVGQ . You are receiving this because you were mentioned.Message ID: @.***>

angelosalatino commented 4 months ago

Can you try either 3.7 or 3.8?

Currently it does not support versions from 3.10 onwards

AsmaKhatoon123 commented 4 months ago

The older versions are in security fix phases, download page is redirecting to t

On Mon, 8 Jul 2024, 5:09 pm Angelo A. Salatino, @.***> wrote:

Can you try either 3.7 or 3.8?

Currently it does not support versions from 3.10 onwards

— Reply to this email directly, view it on GitHub https://github.com/angelosalatino/cso-classifier/issues/17#issuecomment-2214182937, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5P56EHS25IE573T4VPCL6DZLKMTHAVCNFSM6AAAAABKQC6D2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGE4DEOJTG4 . You are receiving this because you were mentioned.Message ID: @.***>

AsmaKhatoon123 commented 4 months ago

The older versions are in security fix phases, download page is redirecting to the newer versions of python.

On Mon, 8 Jul 2024, 5:09 pm Angelo A. Salatino, @.***> wrote:

Can you try either 3.7 or 3.8?

Currently it does not support versions from 3.10 onwards

— Reply to this email directly, view it on GitHub https://github.com/angelosalatino/cso-classifier/issues/17#issuecomment-2214182937, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5P56EHS25IE573T4VPCL6DZLKMTHAVCNFSM6AAAAABKQC6D2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGE4DEOJTG4 . You are receiving this because you were mentioned.Message ID: @.***>

angelosalatino commented 4 months ago

Have you tried here: https://www.python.org/downloads/release/python-3717/

AsmaKhatoon123 commented 4 months ago

I have tried using python 3.8 in a virtual environment but getting the same issue.

On Mon, Jul 8, 2024 at 7:49 PM Angelo A. Salatino @.***> wrote:

Have you tried here: https://www.python.org/downloads/release/python-3717/

— Reply to this email directly, view it on GitHub https://github.com/angelosalatino/cso-classifier/issues/17#issuecomment-2214306704, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5P56EBRBK25SCGAYLQ2O4DZLKRGLAVCNFSM6AAAAABKQC6D2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGMYDMNZQGQ . You are receiving this because you were mentioned.Message ID: @.***>

angelosalatino commented 4 months ago

Very strange. I will have someone look into this.

Can you give me more details so to reproduce the error? I am assuming you are using windows OS.

Are you installing the github version or the pipy version?

Which your current python version?

Can I also ask you to run a test for me? Can you download and try to install the version on github (instead of pipy)? Please comment line 4 and 5 of setup.py before installing it. This seems a silly coded error that may come from the readme file

Thank you

AsmaKhatoon123 commented 3 months ago

I have tried all the instructions, but the same error prompts every time. i need to classify the topics from the abstract and the title, can i do it using "https://cso.kmi.open.ac.uk/classify/" do they have the same effect as the CSO-classifier?

On Tue, Jul 9, 2024 at 12:27 AM Angelo A. Salatino @.***> wrote:

Very strange. I will have someone look into this.

Can you give me more details so to reproduce the error? I am assuming you are using windows OS.

Are you installing the github version or the pipy version?

Which your current python version?

Can I also ask you to run a test for me? Can you download and try to install the version on github (instead of pipy)? Please comment line 4 and 5 of setup.py before installing it. This seems a silly coded error that may come from the readme file

Thank you

— Reply to this email directly, view it on GitHub https://github.com/angelosalatino/cso-classifier/issues/17#issuecomment-2215007208, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5P56EEEECFDU7J5N7DW5B3ZLLR35AVCNFSM6AAAAABKQC6D2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJVGAYDOMRQHA . You are receiving this because you were mentioned.Message ID: @.***>

angelosalatino commented 3 months ago

Yes, they are the same code. Just exposed online.

It depends how many paper you have to classify.

if it is in the range of 10/20 then yes. If it happens to be more than that, I would encorage to fix the python library.

If you comment line 4 and 5 of setup.py before installing it, what error do you get? Sorry, but without a clear error statement it is very hard to troubleshoot.

Best