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

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

Closed
UmerYasin1 opened this issue May 27, 2021 · 8 comments
Closed

Comments

@UmerYasin1
Copy link

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
Copy link
Owner

iojw commented May 28, 2021

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

@UmerYasin1
Copy link
Author

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

@UmerYasin1
Copy link
Author

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
Copy link
Owner

iojw commented May 29, 2021

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
Copy link
Author

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
Copy link
Owner

iojw commented May 30, 2021

What's your OS and Python version?

@UmerYasin1
Copy link
Author

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

@iojw
Copy link
Owner

iojw commented Jan 2, 2023

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?

@iojw iojw closed this as completed Jan 2, 2023
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

No branches or pull requests

2 participants