Facing Error while creating the package for model

Hi, I am facing a problem while creating package for the text classification model using Spacy library.

The error shown is : [WinError 206] The filename or extension is too long:
it also mentions Shutil.Error in the beginning.

How to resolve this issue?

What’s the command you ran and what paths did you use?

It looks like you might have accidentally created the Python package within the same directory as the model you trained. When you package the model, spaCy will copy the input data (trained model) into the package directory recursively, and then add all the package-specific files. But because you’re copying it into itself, you’re basically creating an infinite loop with insanely long paths, until shutil gives up.

Try removing all the nested directories created by the package command and start again, using a different directory as the output :slightly_smiling_face:

This is the command which i have used.
python -m spacy package C:\Users\amanpresingh\Desktop\new_prody C:\Users\amanpresingh\Desktop\final --create-meta

So , basically i must change the output directory to a completely new folder?

hey, Thank you for the response. It is working fine now. :slight_smile:

1 Like

Hello guys, I needed reviews for the Longpath tool!

1 Like

Hey John, yes I have used LPT. It is effective for longpath files. You can google to get more information about it.

1 Like

Hey I am trying to install LongPath Tool but it shows some error, can you guide me?

1 Like

Can you share the screen shot? If not, please check the system details mentioned on the LPT website.

1 Like

Thank you for the reply, let me check it.