Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ImportError #2203

Closed
wants to merge 1 commit into from
Closed

Conversation

cy3erdr4g0n
Copy link

error from import other modue in sherlock.py

from .init import ( # noqa: E402
ImportError: attempted relative import with no known parent package

@ppfeister
Copy link
Member

Hey @cy3erdr4g0n --- how did you attempt to run Sherlock?

These imports are sherlock. rather than relative due to the fact Sherlock is an installable package rather than a script.

@cy3erdr4g0n
Copy link
Author

cy3erdr4g0n commented Jun 28, 2024

Hi @ppfeister,
Cd sherlock
Cd sherlock
Python3 sherlock {username}

@ppfeister
Copy link
Member

That would be the cause of your errors right there, actually.

Sherlock transitioned from a simple script to a proper installable package some time ago. Take a look at https://sherlockproject.xyz/installation for the up to date methods. You don't need the source code for any of the standard methods found via that link.

Let me know how it goes

@ppfeister
Copy link
Member

#2213 (staged for 0.15.0) will warn users when ran with the old unsupported method -- closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants