V.0.17.0 after cloning, got error "cannot import name 'FIELD_DATAFRAME' from 'business_rules.fields" #1843
Replies: 3 comments 2 replies
|
@JozefAerts per your first comment--it looks like you are running an incompatible version of python (3.13) with engine. I suspect this is what is causing your error. Engine does not use the plain busines-rules package from PyPi. I believe this is occurring due to a different dependency resolution behavior in the newer python version. We have also moved away from requirements.txt and all our dependencies are in the pyproject.toml now. https://github.com/cdisc-org/cdisc-rules-engine/blob/main/docs/quick-start.md#3-install-dependencies please see our quickstart virtual environment steps. |
|
Solved, I cloned 0.17.1, then did the setup using Python 3.12.10 and everything works correctly now. As I realize that some of my "functions requests" necessary for SEND rules have got a low priority, and I am now already better in Python, I will generate a separate branch, and try to add them myself. |

Uh oh!
There was an error while loading. Please reload this page.
After cloning repository, needed to install additional packages, but at the end, when doing "python core.py update-cache, I got the error:
File "D:\PycharmProjects\cdisc-rules-engine_2026-08-31\cdisc_rules_engine\check_operators\dataframe_operators.py", line 3, in
from business_rules.fields import FIELD_DATAFRAME
ImportError: cannot import name 'FIELD_DATAFRAME' from 'business_rules.fields' (C:\Users\Jozef\AppData\Roaming\Python\Python313\site-packages\business_rules\fields.py)
Python version is 3.13.3
Current contents of fields.py in C:\Users\Jozef\AppData\Roaming\Python\Python313\site-packages\business_rules\ is:
FIELD_TEXT = 'text'
FIELD_NUMERIC = 'numeric'
FIELD_NO_INPUT = 'none'
FIELD_SELECT = 'select'
FIELD_SELECT_MULTIPLE = 'select_multiple'
I am missing something? Must something be added to this file?
All reactions