-
Notifications
You must be signed in to change notification settings - Fork 100
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
Compilation error on Windows - missing directory #105
Comments
@jqluisneumann I'm not too familiar with how temporary directories work on Windows. Do you know the best practices for handling temporaries on Windows? |
Not really, I am afraid. But I have managed to find a workaround while looking at the frontend code. As export lib is just a convenience function, I managed to compile a model using "model.compile" and "treelite.shared", as long as i set dirpath in model.compile to the same directory where I have my jupyter notebook, lightgbm model, etc. So most likely a bug in the tempdir allocation. |
@jqluisneumann That's good to hear. Yes, I'd like to spend some time to learn more about how temporaries work in Windows. |
@jqluisneumann Update: I fixed the issue with temporary directories in #101. From now on, Treelite will always create temporary directories in the same directory as the |
I am trying read and compile a Lightgbm model but I am having issues with temporary files. My code is as follows:
And I get the following output:
But the compilation fails because it can't write to a temp file. The tempfolder never gets created, and the retcode_cpu0.txt file gets created on the same location of the lightgbm model and Jupyter notebook (I am running this in Jupyter Lab).
The text was updated successfully, but these errors were encountered: