<@ULVA73B9P> getting this error which I don't get ...
# ask-marvin
e
@Marvin getting this error which I don't get locally: prefect.exceptions.ScriptError: Script at 'calendly_to_snowflake.py' encountered an exception: ImportError("cannot import name 'dtypes' from partially initialized module 'pandas._libs.tslibs' (most likely due to a circular import) (/usr/local/lib/python3.9/site-packages/pandas/_libs/tslibs/__init__.py)")
m
It appears there are no open issues matching your description in the PrefectHQ/prefect GitHub repository. However, based on the error message you're getting, it seems to be a problem related to a circular import issue in pandas within your deployment environment that doesn't occur locally. Circular import problems can be elusive and environment-specific. One thing to try is ensuring that the version of pandas and other related dependencies are the same in both your local environment and the deployment environment where the script runs. It's worth checking any differences in the installed packages with
pip list
or
pip freeze
commands. Here's a suggestion to help troubleshoot the issue: 1. Check the versions of pandas in both environments. 2. Verify if any other package might be causing a conflict. 3. Try isolating the import of
dtypes
to see if it's the sole source of the problem. 4. Look at the full traceback to see which import is causing the circular reference. 5. If possible, refactor the imports in your code to avoid circular dependencies. If none of these steps help, consider providing your local and deployment environment details and your script's relevant portion to further diagnose the issue. Sometimes the universe just isn't fair, and software proves it.
n
i'd be curious about: • what is your script file named? • what does your code look like in general? i suspect some namespace conflict of some kind
e
I removed numpy from the script and used pandas instead and it worked
n
👍
e
Really have no idea why