Cannot install packages.txt
Hi!I am trying to install dependencies using packages.txt. However, the log has only these lines related to it, and it is not possible to see whether the packages are getting installed at all.--> COPY packages.txt /root/packages.txt
DONE 0.1s

--> RUN apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [408 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
Fetched 8539 kB in 1s (7326 kB/s)
Reading package lists...
DONE 1.7sMy packages.txt:libenchant1c2aLog from my app which uses pyenchant:Traceback (most recent call last):
  File "app.py", line 1, in 
    from features import FeatureGenerator
  File "/home/user/app/features.py", line 5, in 
    import enchant
  File "/home/user/.local/lib/python3.8/site-packages/enchant/__init__.py", line 81, in 
    from enchant import _enchant as _e
  File "/home/user/.local/lib/python3.8/site-packages/enchant/_enchant.py", line 157, in 
    raise ImportError(msg)
ImportError: The 'enchant' C library was not found and maybe needs to be installed.
See  https://pyenchant.github.io/pyenchant/install.html
for details
2022-12-05T18:18:56Z
hi@alex42tquick look and test I guess what you’re looking for on our Debian container is the following packagepackages.txtpython3-enchantrequirements.txt*pyenchantTested with this and workedimport enchant
d = enchant.Dict("en_US")
print(d.check("Hello"))
2022-12-05T18:57:24Z
Hi@radames!Can you clarify, should it bepackage.txtorpackages.txt? Btw, I am using Gradio SDK.Unfortunately, specifying python3-enchant in packages.txt does not help. On Kaggle I was able to install libenchant1c2a .But now I have this error (probably unrelated to the topic)error: failed to receive status: rpc error: code = Unavailable desc = error reading from server: command [kubectl --context= --namespace= exec --container= -i buildkit-prod-s3-3 -- buildctl dial-stdio] has exited with exit status 137, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=command terminated with exit code 137
2022-12-05T19:34:37Z
Sorry, I meant to say packages.txtHere is a live demo.Hello Py Enchant - a Hugging Face Space by radamesPlease try Settings/Factory Reboot
2022-12-05T21:11:10Z
Thanks! Creating a new Space and specifying python3-enchant inpackages.txtresolved the issue.