immortal3
immortal39mo ago

generate-metadata command failing

Lock files were there but i wanted them to re-generated because of newly added requirements.txt
error: Uncaught (in promise) Error: Failed to generate lockfile. Status was: Internal Server Error, timeout after 20s, SyntaxError: Unexpected token 'i', "timeout after 20s" is not valid JSON
throw new Error(
^
at updateScriptLock (https://deno.land/x/wmill@v1.304.3/metadata.ts:219:11)
at eventLoopTick (ext:core/01_core.js:168:7)
at async generateMetadataInternal (https://deno.land/x/wmill@v1.304.3/metadata.ts:132:5)
at async Command.generateMetadata [as actionHandler] (https://deno.land/x/wmill@v1.304.3/script.ts:677:7)
at async Command.execute (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1948:7)
at async Command.parseCommand (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1780:14)
error: Uncaught (in promise) Error: Failed to generate lockfile. Status was: Internal Server Error, timeout after 20s, SyntaxError: Unexpected token 'i', "timeout after 20s" is not valid JSON
throw new Error(
^
at updateScriptLock (https://deno.land/x/wmill@v1.304.3/metadata.ts:219:11)
at eventLoopTick (ext:core/01_core.js:168:7)
at async generateMetadataInternal (https://deno.land/x/wmill@v1.304.3/metadata.ts:132:5)
at async Command.generateMetadata [as actionHandler] (https://deno.land/x/wmill@v1.304.3/script.ts:677:7)
at async Command.execute (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1948:7)
at async Command.parseCommand (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1780:14)
11 Replies
rubenf
rubenf9mo ago
Hi @immortal3 , could you give us a minimal reproduction please
immortal3
immortal3OP9mo ago
requirements.txt file
requests
xmltodict
bs4
markdownify
python-magic
more_itertools>=10.2
openpyxl
pandas
numpy
unstructured[pdf,md,pptx,docx]==0.12.0
pypdf==3.17.4
pikepdf==8.11.2
python-dotenv
python-dateutil
pre-commit
black
pylint
requests
xmltodict
bs4
markdownify
python-magic
more_itertools>=10.2
openpyxl
pandas
numpy
unstructured[pdf,md,pptx,docx]==0.12.0
pypdf==3.17.4
pikepdf==8.11.2
python-dotenv
python-dateutil
pre-commit
black
pylint
and
wmill script generate-metadata
wmill script generate-metadata
rubenf
rubenf9mo ago
Could you make a public GitHub repo, it might be related to one of your script as well Or a zip would work as well
immortal3
immortal3OP9mo ago
it's hello world with just requirements.txt which fails on
wmill script generate-metadata
wmill script generate-metadata
rubenf
rubenf9mo ago
thanks, I will take a look today
immortal3
immortal3OP9mo ago
@rubenf any update on this ? You can also suggest any bypass that would work for time being. I would like to get POC working on windmill.
rubenf
rubenf9mo ago
I will try to investigate today I will investigate tomorrow, sorry for the delay
immortal3
immortal3OP9mo ago
Not sure why but override is not working, am i missing something ? Following script but on execution, it is not installing these libraries.
#extra_requirements:
#pydantic
#requests
#xmltodict
#bs4
#markdownify
#more_itertools>=10.2
#readabilipy
#openpyxl
#pandas
#numpy
#unstructured[pdf,md,pptx,docx]==0.12.0
#pypdf==3.17.4
#pikepdf==8.11.2
#python-dotenv
#python-dateutil

..... script
#extra_requirements:
#pydantic
#requests
#xmltodict
#bs4
#markdownify
#more_itertools>=10.2
#readabilipy
#openpyxl
#pandas
#numpy
#unstructured[pdf,md,pptx,docx]==0.12.0
#pypdf==3.17.4
#pikepdf==8.11.2
#python-dotenv
#python-dateutil

..... script
rubenf
rubenf9mo ago
what's the error?
immortal3
immortal3OP9mo ago
There is no error, but packages are not getting picked up. I manually edited .yaml file to add libraries for testing. But, my free limit is over. Free limit is one time offer or does it reset on monthly ?
rubenf
rubenf9mo ago
it reset monthly

Did you find this page helpful?