Morning to all.
I am trying to read the data from the May bulk data files Companies House
Bu when i run the code which I have been running with no changes at all none of the files can be opened and imported.
I am getting a lot of errors see below as an example.
Traceback (most recent call last):
File “/usr/lib/python3.11/concurrent/futures/process.py”, line 256, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/neil/.local/lib/python3.11/site-packages/stream_read_xbrl.py”, line 432, in _xbrl_to_rows
run_code, company_id, date, filetype = mo.groups()
^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘groups’
“”"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/var/www/investor/storage/accounts/sr3.py”, line 15, in
df = pd.DataFrame(rows, columns=columns)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/neil/.local/lib/python3.11/site-packages/pandas/core/frame.py”, line 843, in init
data = list(data)
^^^^^^^^^^
File “/home/neil/.local/lib/python3.11/site-packages/stream_read_xbrl.py”, line 557, in
yield _COLUMNS, (
^
File “/home/neil/.local/lib/python3.11/site-packages/stream_read_xbrl.py”, line 549, in imap
yield queue.popleft().result()
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/concurrent/futures/_base.py”, line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/concurrent/futures/_base.py”, line 401, in __get_result
raise self._exception
AttributeError: ‘NoneType’ object has no attribute ‘groups’
None of my code has changed. I asked companies house and they referred me back to here.
Anybody else encountered this recently?
Thanks
Neil