-
Notifications
You must be signed in to change notification settings - Fork 327
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
Issue running setup.py #64
Comments
Not the exact solution but following one of the comment in this answer and another issue which is similar to this, here. We get the same error in the archlinux installation as well, doing a similar change in the archlinux by adding the But doing the same on kali linux even though it is not necessary, it does not solve the issue. |
Same error on the latest Kali Linux. The workarounds described above do not work... |
The I fixed the issue with first installing the required dependencies with: pip3 install shodan requests prompt_toolkit wget beautifulsoup4 click urllib3 IP2proxy wget paramiko h8mail nmap pythonping whois gmplot pillow lxml tweepy Next, I removed the setuptools parts from the setup.py file: import os
import pip
fout = open("core/config.py", "w")
# Shodan.io API (https://developer.shodan.io/api)
fout.write("shodan_api = " + '"' + "e9SxSRCE1xDNS4CzyWzOQTUoE55KB9HX" + '"' + "\n")
fout.close()
fout = open("plugins/api.py", "w")
# NumVerify API (https://numverify.com/documentation)
fout.write("def phoneapis():"+ "\n")
fout.write(" api= "+ '"' + "ecf584dd7bccdf2c152fdf3f5595ba20" + '"' + "\n")
# IP Stack API (https://ipstack.com/documentation)
fout.write(" return str(api)"+ "\n")
fout.write("def ipstack():"+ "\n")
fout.write(" api="+ '"' +"406792616a740641c6a0588a0ee1c509"+ '"' + "\n")
fout.write(" return str(api)"+ "\n")
# Google Maps API (hhttps://developers.google.com/maps/documentation/places/web-service/get-api-key)
fout.write("def gmap():"+ "\n")
fout.write(" api="+ '"' +"AIzaSyBY9Rfnjo3UWHddicUrwHCHY37OoqxI478"+ '"' + "\n")
fout.write(" return str(api)"+ "\n")
fout.close()
try:
import wget
except Exception as e:
print(e)
pip.main(['install','wget'])
import wget
# ip2 Location Database (https://lite.ip2location.com/database/px8-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen?lang=en_US)
url="https://www.ip2location.com/download?token=hg5uYe2Jvri4R7P1j8b71Pk8dnvIU2M6A9jz2tvcVtGx8ZK2UPQgzr6Hk3cV68oH&file=PX8LITEBIN"
print('\nDownloading IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN.BIN...')
filepath=os.getcwd()+"/plugins/"
wget.download(url,out=filepath)
print('\nDownload Finished')
import zipfile
print('\nExtracting Files')
with zipfile.ZipFile(filepath+"IP2PROXY-LITE-PX8.BIN.ZIP","r") as zip_ref:
zip_ref.extract("IP2PROXY-LITE-PX8.BIN",filepath)
print("\nInstallation Successfull")
print("\n\nNote: APIs included in ReconSpider are FREE and having limited & restricted usage per month, Please update the current APIs with New APIs in setup.py file, and re-install once done.")
print("\nWarning: Not updating the APIs can result in not showing the expected output or it may show errors.") Now you can run the setup.py again to download the remaining parts: |
─# pip3 install reconspider.py |
└─# python3 reconspider.py ______ \ ____ ____ ____ ____ / / || | /______ Traceback (most recent call last): |
pip3 seem to have a depracated nmap version and will not install it, installing it using sudo apt install nmap or pip install nmap does not resolve the issue since when running the setup again it does not see it and will give the following message : |
Here's a link for your problem https://stackoverflow.com/questions/58478745/python-3-does-not-recognize-nmap-module-what-am-i-doing-wrong-here if the nmap command doesn't work |
Describe the bug
When i run the install command "python3 setup.py install" i get the following output
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:264: UserWarning: Unknown distribution option: 'console'
warnings.warn(msg)
error: Multiple top-level packages discovered in a flat-layout: ['core', 'plugins'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
find
directive withinclude
orexclude
)src-layout
py_modules
orpackages
with a list of names.To find more information, look for “package discovery” on setup tools docs.
To Reproduce
Steps to reproduce the behavior:
2.) see message described above
Expected behavior
the install script to run without issue
Screenshots
see attached image
Desktop (please complete the following information):
Additional context
i apologize if this was already covered somewhere but i didn't see it, but if not then I'm hoping someone could lend some advice or suggestions my way for some help on this
The text was updated successfully, but these errors were encountered: