If I refrain from importing any libraries above, and instead create a straightforward function to generate a wheel file, everything works perfectly:
def codeversion():
print(f"Package Imported Successfully")
However, when I include certain libraries, generate the wheel file, and upload into the synapse spark pools, I encounter errors.
from typing import Optional
from datetime import datetime
from delta import *
Here is the error message
Warning: you have pip-installed dependencies in your environment file , but you do not list pip itself as one of your conda dependencies.
Conda may not use the correct pip to install your packages and they may end up in the wrong place. Please add an explicit pip dependency.
here is what my setup files look like:
import setuptools
setuptools.setup(
name = 'depackage',
version='0.0.1',
description="",
author='',
packages=setuptools.find_packages(),
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
],
extras_require={
"dev": ["typing", "datetime","delta","pip"],
},
python_requires = '>= 3.10.0'
)