WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

EKS Circular import #139

@vulcan-332

Description

@vulcan-332

Hi, I am trying to run the Pose-app locally on my GPU. I followed the pose-app documentation and after some troubleshooting with lightning and numpy versions, when I finally call lightning_app run app app.py it gives me this error with EKS circular import:

`(LIGHTNING) khoj@lambda:~/S1DZ/Pose-app$ lightning_app run app app.py
/home/khoj/miniconda3/envs/LIGHTNING/lib/python3.10/site-packages/lightning/fabric/init.py:41: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
A newer version of lightning is available (2.5.5). Would you like to upgrade? [Y/n]: n
Your Lightning App is starting. This won't take long.
2025-10-16 11:53:28.148 WARNING streamlit.runtime.caching.cache_data_api: No runtime found, using MemoryCacheStorageManager
2025-10-16 11:53:28.161 WARNING streamlit.runtime.caching.cache_data_api: No runtime found, using MemoryCacheStorageManager
2025-10-16 11:53:28.162 WARNING streamlit.runtime.caching.cache_data_api: No runtime found, using MemoryCacheStorageManager
ERROR: Found an exception when loading your application from app.py. Please, resolve it to run your app.

Traceback (most recent call last):
File "app.py", line 33, in
from lightning_pose_app.ui.train_infer import TrainUI
File "/home/khoj/S1DZ/Pose-app/lightning_pose_app/ui/train_infer.py", line 16, in
from eks.singlecam_smoother import ensemble_kalman_smoother_singlecam
File "/home/khoj/miniconda3/envs/LIGHTNING/lib/python3.10/site-packages/eks/init.py", line 1, in
from eks import EKSConnector
ImportError: cannot import name 'EKSConnector' from partially initialized module 'eks' (most likely due to a circular import) (/home/khoj/miniconda3/envs/LIGHTNING/lib/python3.10/site-packages/eks/init.py)`

My guess is that this is happening because eks.py is the name of the file AND the package 'EKS'.
Also, are most of the requirements out-dated? It was difficult to install the pose-app and the documentation alone is really not enough. To make sure it was not a local issue, I also tried installing it on GitHub-codespaces, but the identical circular import error exists there too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions