<#317 Skip listing relative module files> Pull req...
# flyte-github
a
#317 Skip listing relative module files Pull request opened by wild-endeavor Some python modules have a
__file__
attribute that's not an absolute path. This leads to errors like the below in our naive way of checking, but I think it's okay to just skip these for now. We can get more in the weeds by inspecting the spec and loader but for now let's just skip these for now
Copy code
Filtered traceback (most recent call last):
  File "/Users/johnvotta/code/flyte-sdk/examples/ml/embed_wikipedia.py", line 195, in <module>
    run = flyte.run(main, 256, shard="20231101.en")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/johnvotta/code/flyte-sdk/.venv/lib/python3.12/site-packages/flyte/_run.py", line 695, in run
    return await _Runner().run.aio(task, *args, **kwargs)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/johnvotta/code/flyte-sdk/.venv/lib/python3.12/site-packages/flyte/_run.py", line 571, in run
    return await self._run_remote(task, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/johnvotta/code/flyte-sdk/.venv/lib/python3.12/site-packages/flyte/_run.py", line 188, in _run_remote
    code_bundle = await build_code_bundle(
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/johnvotta/code/flyte-sdk/.venv/lib/python3.12/site-packages/async_lru/__init__.py", line 221, in __call__
    return await asyncio.shield(fut)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '_classes.py'

Exception ignored in: <function ResourceTracker.__del__ at 0x1111abb00>
Traceback (most recent call last):
  File "/Users/johnvotta/code/flyte-sdk/.venv/lib/python3.12/site-packages/multiprocess/resource_tracker.py", line 80, in __del__
  File "/Users/johnvotta/code/flyte-sdk/.venv/lib/python3.12/site-packages/multiprocess/resource_tracker.py", line 89, in _stop
  File "/Users/johnvotta/code/flyte-sdk/.venv/lib/python3.12/site-packages/multiprocess/resource_tracker.py", line 102, in _stop_locked
AttributeError: '_thread.RLock' object has no attribute '_recursion_count'
flyteorg/flyte-sdk