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

ModuleNotFoundError: No module named 'ojd_daps_skills.pipeline' #133

Open
NTHB-BFSU opened this issue Sep 18, 2024 · 3 comments
Open

ModuleNotFoundError: No module named 'ojd_daps_skills.pipeline' #133

NTHB-BFSU opened this issue Sep 18, 2024 · 3 comments

Comments

@NTHB-BFSU
Copy link

Dear Developer Team,

I am encountering a ModuleNotFoundError related to the ojd_daps_skills library while trying to use the GreenMeasures class from the dap_prinz_green_jobs library. The error message indicates that the pipeline module is not found within the ojd_daps_skills library.

Steps taken:

  1. Cloned the ojd_daps_skills and dap_prinz_green_jobs repositories from GitHub.
  2. Installed the required dependencies for both libraries.
  3. Attempted to import the GreenMeasures class from dap_prinz_green_jobs.pipeline.green_measures.green_measures.

Error Message: ModuleNotFoundError: No module named 'ojd_daps_skills.pipeline'

Upon inspecting the ojd_daps_skills repository, I noticed that there is no pipeline directory.

Could you please provide guidance on:

  1. Whether the pipeline module has been moved or renamed in the ojd_daps_skills library.
  2. Any updates or patches available to address this issue.
  3. Recommended steps or best practices for integrating these two libraries.

Thank you for your assistance.

@NTHB-BFSU
Copy link
Author

@sqr00t @mindrones @saabi @georgerichardson Thank you for your help!

@sqr00t
Copy link
Contributor

sqr00t commented Sep 18, 2024

Hi @NTHB-BFSU ,

Instead of cloning the libraries. Could you install the repository by adding them as a dependency in the project you're working from?

Based on your workflow, you would need to activate the dap_prinz_green_jobs conda environment, then work using this conda environment.

If your intent is to use these libraries in a separate project, i.e. one with dependencies defined with a requirements.txt file, i.e. in your requirements.txt you should have the below

git+https://github.com/nestauk/dap_prinz_green_jobs.git
git+https://github.com/nestauk/ojd_daps_skills/tree/06edb1497c5b033eebfbb59d2196f77e3900d0be

It would be most helpful if you could paste the full stack trace of the error message!

Edit: Apologies for the confusion. We've identified some lines in the source to update accounting for the refactored ojd_daps_skills, please follow Liz's suggestion, or use the above commit version for ojd_daps_skills.

@lizgzil
Copy link
Contributor

lizgzil commented Sep 18, 2024

Thanks for flagging this @NTHB-BFSU !

It is likely to be because we recently did a big refactor of the ojd_daps_skills library and it no longer has a pipeline folder.

I suggest you pip install a pre-refactor version of ojd_daps_skills, e.g. perhaps try pip install git+https://github.com/nestauk/ojd_daps_skills/tree/06edb1497c5b033eebfbb59d2196f77e3900d0be

As @sqr00t says, if this doesn't work - do let us know the full stack trace message.

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

No branches or pull requests

3 participants