Closed AlexandreSajus closed 4 months ago
If it is the same as the one I encountered, it seems related to pip, not the taipy package.
An easy workaround that worked for me was to just uninstall the first version of taipy and re-install the version I want.
After testing, I agree with @jrobinAV . The version.json
is deleted when switching to 3.0.0, even if it is present in version 3.0.0. Can you from 3.0.0 and 3.1.0?
When we switched from a multi-repository package structure to a mono repository package structure for Taipy 3.1, there was a small issue that caused the sub-packages (taipy-config, taipy-core, etc.) not to be fully compatible between the two versions, which causes that when pip tries to use a previous installed sub packed that is already cached in the python environment ends up with missing non-python files(JSON, pyi, etc.) that are required for Taipy to work properly.
This issue can be solved by forcing pip to reinstall all dependencies with: pip install --no-cache-dir -I taipy==3.0.0
. We are now adding an entry to the documentation and will not patch Taipy 3.0 to resolve this issue. Note that this only happens in this specific case of downgrading from 3.1 to 3.0 and older versions, and future versions of Taipy will have this side effect.
Description Installing taipy in a virtual environment and then installing
taipy==3.0.0
will trigger this error on import:We found this error with Jean-Robin this morning, and a user contacted support about it this evening.
This is Critical as the error triggers on import, and the error message does not provide ways to fix this.
Workarounds
How to reproduce In a terminal:
python -m venv venv
.\venv\Scripts\activate
pip install taipy
pip install taipy==3.0.0
python
import taipy
Expected behavior Changing versions of Taipy should not trigger errors
Runtime environment