iojw / socialscan

Python library for accurately querying username and email usage on online platforms
Mozilla Public License 2.0
1.42k stars 187 forks source link

No module named 'socialscan.util'; 'socialscan' is not a package #37

Closed UmerYasin1 closed 1 year ago

UmerYasin1 commented 3 years ago

I had install SocialScan using this command " pip install socialscan " but still I am getting this error ...

Traceback (most recent call last): File "C:\Users\lenovo\Desktop\project\email-saga-master\socialscan.py", line 1, in from socialscan.util import Platforms, sync_execute_queries File "C:\Users\lenovo\Desktop\project\email-saga-master\socialscan.py", line 1, in from socialscan.util import Platforms, sync_execute_queries ModuleNotFoundError: No module named 'socialscan.util'; 'socialscan' is not a package

iojw commented 3 years ago

What is the command you are running that causes the above error?

UmerYasin1 commented 3 years ago

When I run my program this error pop up in terminal ....

UmerYasin1 commented 3 years ago

My code :

from socialscan.util import Platforms, sync_execute_queries import pandas

INPUT_FILE = 'Book1.xlsx'

df = pandas.read_excel(INPUT_FILE, 'Sheet1', usecols=['Emails']) listt =df['Emails'].tolist()

platforms = [Platforms.GITHUB, Platforms.LASTFM , Platforms.Instagram, Platforms.Twitter, Platforms.Tumblr, Platforms.Pinterest, Platforms.Spotify, Platforms.Firefox, Platforms.Pinterest]

results = sync_execute_queries(listt, platforms) for result in results: print(f"{result.query} on {result.platform}: {result.message} (Success: {result.success}, Valid: {result.valid}, Available: {result.available})")

iojw commented 3 years ago

It may be because your file is named socialscan.py. Try a different name. Otherwise, it's an issue with your Python PATH configuration.

UmerYasin1 commented 3 years ago

Thanks It works ..... I need one more help when i run my code i got this error in terminal .....

raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed

Can you please resolve it .....

iojw commented 3 years ago

What's your OS and Python version?

UmerYasin1 commented 3 years ago

I am Using Python 3.9 and Window 10 OS And Code editor Pycharm ....

iojw commented 1 year ago

This is related to #2.

Closing this as it is stale. If this issue still occurs, could you post more details about the socialscan version you are using in that issue?