Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring code profiler transform to new pythonic code layout #913

Closed
wants to merge 1 commit into from

Conversation

pankajskku
Copy link
Member

Why are these changes needed?

Refactoring code profiler transforms to new pythonic code layout to fix file path issue in the DPK package.

Issue Description
While working with the .whl distribution of the dpk_code_profiler_transform_python package (version 0.2.3.dev0), I noticed that certain .csv files required by the code are missing from the installed package. Specifically, the following file paths could not be resolved:
semantic-ruleset/ikb_model.csv
semantic-ruleset/null_libs.csv
When attempting to run the code, it fails with a FileNotFoundError because these files are not included in the wheel distribution.
Impact
The missing .csv files are essential for the proper functioning of the transform. Without them, the code cannot execute as intended, resulting in runtime errors.
Possible Cause
It seems that while these files are present in the source code, they are not being included in the .whl file during the packaging process. Locally I verified and these csv files are present in the files dpk_code_profiler_transform_ray-0.2.3.dev0.tar.gz and the dpk_code_profiler_transform_ray-0.2.3.dev0-py3-none-any.whl files created in dist folder after make build.
When I installed the packages for these transforms to use the DPK-inner venv, a folder named semantic-ruleset was created, but it does not contain the .csv files. To address this issue, I suggest ensuring that the .csv files are explicitly included in the wheel distribution.

Related issue number (if any).

@pankajskku pankajskku force-pushed the dev branch 6 times, most recently from 170c757 to 8d01d2f Compare January 6, 2025 06:41
@pankajskku pankajskku closed this Jan 6, 2025
pankajskku added a commit to pankajskku/data-prep-kit that referenced this pull request Jan 6, 2025
touma-I added a commit that referenced this pull request Jan 8, 2025
Refactoring code profiler transform to new pythonic code layout #913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant