Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running mbslave sync #59

Open
Simon-Nemaura opened this issue Jan 15, 2023 · 1 comment
Open

Error running mbslave sync #59

Simon-Nemaura opened this issue Jan 15, 2023 · 1 comment

Comments

@Simon-Nemaura
Copy link

Simon-Nemaura commented Jan 15, 2023

I see the following error when running mbslave sync

% mbslave sync
INFO:mbdata.replication:Downloading https://metabrainz.org/api/musicbrainz/replication-155737.tar.bz2?token=***
Traceback (most recent call last):
  File "/Users/simonhopkin/.local/bin/mbslave", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/simonhopkin/.local/pipx/venvs/mbdata/lib/python3.11/site-packages/mbdata/replication.py", line 803, in main
    args.func(config, args)
  File "/Users/simonhopkin/.local/pipx/venvs/mbdata/lib/python3.11/site-packages/mbdata/replication.py", line 520, in mbslave_sync_main
    process_tar(packet, db, config, ignored_schemas, ignored_tables, schema_seq, replication_seq, hook)
  File "/Users/simonhopkin/.local/pipx/venvs/mbdata/lib/python3.11/site-packages/mbdata/replication.py", line 457, in process_tar
    logger.info("Processing %s", fileobj.name)
                                 ^^^^^^^^^^^^
AttributeError: 'HTTPResponse' object has no attribute 'name'

I installed mbdata using pipx:

pipx install 'mbdata[replication]'
@nix234
Copy link

nix234 commented Jan 19, 2023

Exactly the same problem on FreeBSD also installed with pipx, init worked but sync gave me the same error:

Traceback (most recent call last):
  File "/usr/home/mbdata/.local/bin/mbslave", line 8, in <module>
    sys.exit(main())
  File "/usr/home/mbdata/.local/pipx/venvs/mbdata/lib/python3.9/site-packages/mbdata/replication.py", line 803, in main
    args.func(config, args)
  File "/usr/home/mbdata/.local/pipx/venvs/mbdata/lib/python3.9/site-packages/mbdata/replication.py", line 520, in mbslave_sync_main
    process_tar(packet, db, config, ignored_schemas, ignored_tables, schema_seq, replication_seq, hook)
  File "/usr/home/mbdata/.local/pipx/venvs/mbdata/lib/python3.9/site-packages/mbdata/replication.py", line 457, in process_tar
    logger.info("Processing %s", fileobj.name)
AttributeError: 'HTTPResponse' object has no attribute 'name' 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants