Skip to content

Error when using the example code #10

@git-jamesfrench

Description

@git-jamesfrench

Hello, i have installed sunzip on my windows computer using "pip install sunzip" and i got an error when using this example code :

import sunzip

f = sunzip.Sunzip("archive.zip")

f.extract()

the error

Traceback (most recent call last):
  File "c:\Users\*****\Desktop\sunzip\sunzip.py", line 1, in <module>
    import sunzip
  File "c:\Users\*****\Desktop\sunzip\sunzip.py", line 3, in <module>
    f = sunzip.Sunzip("archive.zip")
        ^^^^^^^^^^^^^
AttributeError: partially initialized module 'sunzip' has no attribute 'Sunzip' (most likely due to a circular import). Did you mean: 'sunzip'?

Thanks !

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