Package: debci
Severity: normal
X-Debbugs-Cc: [email protected]
Hello
I am trying to fix the autopkgtest of python-mp-api[1] .
It seems that the test are failling to a ban of our IP adresses.
183s ==================================== ERRORS
====================================
183s ____________________ ERROR collecting tests/test_client.py
_____________________
183s tests/test_client.py:45: in <module>
183s mpr = MPRester()
183s MPRester = <class 'mp_api.client.mprester.MPRester'>
183s ProvenanceRester = <class
'mp_api.client.routes.materials.provenance.ProvenanceRester'>
183s TaskRester = <class
'mp_api.client.routes.materials.tasks.TaskRester'>
183s __builtins__ = <builtins>
183s __cached__ =
'/tmp/autopkgtest-lxc.zonszi0g/downtmp/build.hVE/src/tests/__pycache__/test_client.cpython-313.pyc'
183s __doc__ = None
183s __file__ =
'/tmp/autopkgtest-lxc.zonszi0g/downtmp/build.hVE/src/tests/test_client.py'
183s __loader__ = <_pytest.assertion.rewrite.AssertionRewritingHook
object at 0xffffae4316a0>
183s __name__ = 'tests.test_client'
183s __package__ = 'tests'
183s __spec__ = ModuleSpec(name='tests.test_client',
loader=<_pytest.assertion.rewrite.AssertionRewritingHook object at
0xffffae4316a0>,
origin='/tmp/autopkgtest-lxc.zonszi0g/downtmp/build.hVE/src/tests/test_client.py')
183s ignore_generic = ['_user_settings', '_general_store', '_messages',
'materials_xas', 'materials_elasticity', 'materials_fermi', ...]
183s key_only_resters = {'doi': 'mp-149', 'materials_charge_density':
'mp-1936745', 'materials_phonon': 'mp-11703', 'materials_provenance': 'mp-149',
...}
183s os = <module 'os' (frozen)>
183s pytest = <module 'pytest' from
'/usr/lib/python3/dist-packages/pytest/__init__.py'>
183s search_only_resters = ['materials_grain_boundaries',
'materials_electronic_structure_bandstructure',
'materials_electronic_structure_dos', 'materials_substrates',
'materials_synthesis']
183s special_resters = ['materials_charge_density', 'doi']
183s warnings = <module 'warnings' from
'/usr/lib/python3.13/warnings.py'>
183s /usr/lib/python3/dist-packages/mp_api/client/mprester.py:220: in __init__
183s emmet_version = MPRester.get_emmet_version(self.endpoint)
183s api_key = None
183s endpoint = None
183s headers = None
183s include_user_agent = True
183s monty_decode = True
183s mute_progress_bars = False
183s notify_db_version = False
183s self = <mp_api.client.mprester.MPRester object at
0xffff9975d6a0>
183s session = None
183s use_document_model = True
183s /usr/lib/python3/dist-packages/mp_api/client/mprester.py:503: in
get_emmet_version
183s raise MPRestError(error)
183s E mp_api.client.core.client.MPRestError: Your IP address or ASN has been
(temporarily) blocked from accessing all MP services due to inefficient or
abusive traffic. Please make yourself familiar with our terms, make sure to run
the latest version of the mp-api client (https://pypi.org/project/mp-api/),
read our documentation (particularly
https://docs.materialsproject.org/downloading-data/using-the-api/tips-for-large-downloads),
and consult our forum (https://matsci.org/materials-project). Afterwards,
reach out to us per email to [email protected] if you think your use
case is legitimate.
183s endpoint = 'https://api.materialsproject.org/'
183s error = 'Your IP address or ASN has been (temporarily)
blocked from accessing all MP services due to inefficient or abusive
tr...ject). Afterwards, reach out to us per email to
[email protected] if you think your use case is legitimate.'
183s response = {'error': 'Your IP address or ASN has been
(temporarily) blocked from accessing all MP services due to inefficient or ...h
out to us per email to [email protected] if you think your use case
is legitimate.', 'version': 'blocked'}
So my question is how do we solve this with our help.
thanks
Frederic
[1]https://ci.debian.net/packages/p/python-mp-api/
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.17-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages debci depends on:
ii adduser 3.145
pn amqp-tools <none>
ii curl 8.12.1-3
ii dctrl-tools 2.24-3+b1
ii debian-archive-keyring 2023.4
ii debootstrap 1.0.140
ii distro-info 1.13
ii fonts-font-awesome 5.0.10+really4.7.0~dfsg-4.1
pn inotify-tools <none>
ii jq 1.7.1-3+b1
ii libjs-bootstrap 3.4.1+dfsg-3
ii libjs-jquery 3.6.1+dfsg+~3.5.14-1
ii libjs-jquery-flot 4.2.1+dfsg-6
ii moreutils 0.69-1
ii patchutils 0.4.2-1
ii retry 1.0.5-3
ii rsync 3.4.1+ds1-3
ii ruby 1:3.3+b1
pn ruby-activerecord <none>
pn ruby-ansi <none>
pn ruby-bunny <none>
pn ruby-erubi <none>
pn ruby-kaminari-activerecord <none>
pn ruby-omniauth-gitlab <none>
pn ruby-pg <none>
pn ruby-sinatra <none>
pn ruby-sinatra-contrib <none>
pn ruby-sqlite3 <none>
pn ruby-table-print <none>
pn ruby-thor <none>
ii sudo 1.9.16p2-1
Versions of packages debci recommends:
ii systemd-timesyncd [time-daemon] 257.4-1
Versions of packages debci suggests:
ii apt-cacher-ng 3.7.5-1
pn auto-apt-proxy <none>