- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-24-2023 12:18 AM - edited 04-24-2023 12:19 AM
Hey,
I had the same issue using Expedition 1.2.58 (latest build)...when looking at the two cli command that Expedition seems to run for BPA (bpa-cli and bpa-legacy-cli) they both returned error for
------------------------------------
File "/usr/local/lib/python3.8/dist-packages/bpa/utils/common.py", line 9, in <module>
from pandas.io.json import json_normalize
ImportError: cannot import name 'json_normalize' from 'pandas.io.json' (/usr/local/lib/python3.8/dist-packages/pandas/io/json/__init__.py)
---------------------------
File "/usr/local/lib/python3.8/dist-packages/bpa/legacy/cli.py", line 10, in <module>
from pandas.io.json import json_normalize
ImportError: cannot import name 'json_normalize' from 'pandas.io.json' (/usr/local/lib/python3.8/dist-packages/pandas/io/json/__init__.py)
------------------------
I updated both files
/usr/local/lib/python3.8/dist-packages/bpa/utils/common.py
/usr/local/lib/python3.8/dist-packages/bpa/legacy/cli.py
And changes the lines
---Before----
from pandas.io.json import json_normalize
----After------------
from pandas import json_normalize
Now BPA is working inside Expedition for me 🙂