Hi, I am trying to publish an app following viktor tutorial. App is working fine in development workspace. While publishing, I am getting following error:
*SUCCESS uploading completed!*
* ERROR packing completed with errors: Could not generate manifest.*
What can be possible reason for that?
Hi Abhi, looking into it.
Did you by any chance specify
pathlib==1.0.1 in the requirements file?
Yes, I have specified that.
Alright is there a reason for pinning it explicitly? Pathlib is part of the standard Python library, so it should not be necessary to add it as separate requirement. Currently this results in an import error, because pathlib is using an old import path:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "viktor_connector/connector.pyx", line 22, in init connector
File "/builds/viktor-core/viktor-packer/site-packages/pathlib.py", line 10, in <module>
from collections import Sequence
ImportError: cannot import name 'Sequence' from 'collections' (/usr/local/lib/python3.11/collections/__init__.py)
Could you remove
pahtlib from the requirements file and try again?
Hi , that’s resolve the problem.