runtime error
/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/home/user/.local/lib/python3.9/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/user/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/user/.local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/user/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/home/user/.local/lib/python3.9/site-packages/chainlit/cli/__init__.py", line 154, in chainlit_run run_chainlit(target) File "/home/user/.local/lib/python3.9/site-packages/chainlit/cli/__init__.py", line 55, in run_chainlit load_module(config.run.module_name) File "/home/user/.local/lib/python3.9/site-packages/chainlit/config.py", line 282, in load_module spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "app.py", line 49, in <module> pinecone.init(api_key=os.getenv("PINECONE_API_KEY"), environment=os.getenv("PINECONE_ENV")) File "/home/user/.local/lib/python3.9/site-packages/pinecone/deprecation_warnings.py", line 38, in init raise AttributeError(msg) AttributeError: init is no longer a top-level attribute of the pinecone package. Please create an instance of the Pinecone class instead. Example: import os from pinecone import Pinecone, ServerlessSpec pc = Pinecone( api_key=os.environ.get("PINECONE_API_KEY") ) # Now do stuff if 'my_index' not in pc.list_indexes().names(): pc.create_index( name='my_index', dimension=1536, metric='euclidean', spec=ServerlessSpec( cloud='aws', region='us-west-2' ) )
Container logs:
Fetching error logs...