Closed BLKSerene closed 9 months ago
@BLKSerene, it sounds correct. What is your environment (os, python version) and which specific commands did you use?
The error occurred on CI with Windows Server 2019 and Python 3.11.4. I use the sentiment analysis function (underthesea.sentiment
) which downloads the model automatically the first time the function is invoked
When running on Windows CI with Python 3.11, a permission error is raised when trying to remove the downloaded model zip file after the model content is extracted.
The problem might be that the zip file is not closed properly before trying to delete the file. Maybe using
with
would be a better choice here.