Open cloudytechi opened 3 years ago
I don't see how this issue is related to DataCleaner. I think maybe you're wanting to post about the python library of the name "datacleaner" - https://pypi.org/project/datacleaner/. But despite the unfortunate name clash, these are not the same projects!
I have a bunch of local Python scripts that I need to execute from a local MS SQL Server. There is no problem if I try to import standard Python libraries (for example, pandas). I get an error, when I try to import a Python file, called Simulator.py located in the C:/Users/amusaeva/PyCharmProjects/ARW/WorkforceModel folder.
EXEC sp_execute_external_script @language =N'Python', @script=N' import sys sys.path.insert(0, "C:/Users/amusaeva/PyCharmProjects/ARW/WorkforceModel") import Simulator '
Here is the error message I get when running this SQL script:
I know there is definitely a Python script called Simulator.py in that WorkforceModel directory and I don't think I have any syntax mistakes because when I run the exact three lines in Python through a PS window, the module gets imported with no problem. Why does my stored procedure not see the Python script?
Pursuing Data Scientist Certification.