Skip to content

circular import  #120

@abtinmo

Description

@abtinmo

I installed the package on a freshly created environment and the first import raises an import error.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/User/Programming/functional/.venv/lib/python3.9/site-packages/pfun/__init__.py", line 5, in <module>
    from . import clock, console, files, logging, random, state, subprocess  # noqa
  File "/Users/User/Programming/functional/.venv/lib/python3.9/site-packages/pfun/clock.py", line 6, in <module>
    from . import effect
ImportError: cannot import name 'effect' from partially initialized module 'pfun' (most likely due to a circular import) (/Users/User/Programming/functional/.venv/lib/python3.9/site-packages/pfun/__init__.py)
>>> ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions