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

PartFind data issue when installed via github #72

Open
5 tasks
paddy-r opened this issue Apr 30, 2023 · 0 comments
Open
5 tasks

PartFind data issue when installed via github #72

paddy-r opened this issue Apr 30, 2023 · 0 comments

Comments

@paddy-r
Copy link
Owner

paddy-r commented Apr 30, 2023

In user manual, instructions are to install PartFind with pip install git+https://github.com/thazlehurst/partfind@strembed_legacy (PartFind install method 1), but when packaged into executable, get the following error:

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\ProgramData\\Anaconda3\\envs\\sb_small\\lib\\site-packages\\trained_models'

...so obviously error in how data is packaged and relative paths. Works fine when PartFind cloned and then installed via pip install -v -e . though (PartFind install method 2). To do list:

  • Check/diagnose whether happens in both Python and executable
  • Add extra Python/exe switch somewhere, if necessary
  • Fix and verify working for Python and executable versions
  • Fix and verify working for both methods of installing PartFind
  • Edit user manual accordingly

Some things to check along the way:

  • Check how/where paths are set depending on whether run as Python or exe, as seems to be relative path issue (and so probably easily fixed)
  • Look at paths to source and destination of /trained_data folders in create_exe.bat, as this will affect executable
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

1 participant