Skip to content

Python3 upload error #40

@HelloThere4587

Description

@HelloThere4587

Hello there,

I have issues uploading subtitles, my code is simple:

... 
if not already_in_db:
    params = {'baseinfo': {
        'idmovieimdb': imdb_id
    },
        'cd1': {
            'subhash': sub_hash,
            'subfilename': filename,
            'subcontent': get_gzip_base64_encoded(file)
        }}
    url = ost.upload_subtitles(params)

And I have the project using the setup.py file installed and use Python 3.7 on Debian 10.

The issue is that the upload does not work (instead of the url None is returned) and if I use the debugger I get the following output:

error
The file is located in /usr/lib/python3.7/xmlrpc/client.py .

But the code runs without issues if I use Python2 instead.

I hope this helps fixing the issue and thank you for this project 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions