Skip to content

Error getting latest chebi version #49

@kkaris

Description

@kkaris

Error can be reproduced by:

import bioversions
bioversions.get_version('chebi')

Relevant part of the error (the full traceback is 200+ lines):

ConnectionError: HTTPConnectionPool(host='ftp.ebi.ac.uk', port=80): Max retries exceeded with url: /pub/databases/chebi/ontology/chebi.obo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5dcb7bcb50>: Failed to establish a new connection: [Errno 111] Connection refused'))

One possible lead on this issue I think is the port used. Because we use port 80 according to the traceback, the full URL should be http://ftp.ebi.ac.uk/pub/databases/chebi/ontology/chebi.obo, note the http here because port 80 is used, while going to that URL in the browser, you're redirected to https://ftp.ebi.ac.uk/pub/databases/chebi/ontology/chebi.obo, again note https which implies port 443 should be used. My guess here is that somewhere, the http URL is requested, but that it's only the https URL actually works, hence the ConnectionError. I haven't been able to find where the http request would come from though.

My setup:

bioversions version: 0.5.560 (I run a git cloned setup)
Python version: 3.11.7
OS (output from uname -a): Linux 5.15.0-126-generic #136~20.04.1-Ubuntu SMP Thu Nov 14 16:38:05 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions