yasserqureshi1 / Sneaker-Monitors

A collection of web monitors that notify of restocks or updates on sneaker related sites through Discord Webhook. This includes Shopify, Nike SNKRS (supports 42 countries), Supreme and now Footsite monitors!
GNU General Public License v3.0
462 stars 126 forks source link

Monitor setup bug #49

Closed sneakerxwars closed 3 years ago

sneakerxwars commented 3 years ago

requirements file not working

root@vps66937 [/home/sneake28/mon1/Sneaker-Monitors]# pip install -r requirements.txt Traceback (most recent call last): File "/usr/bin/pip", line 9, in load_entry_point('pip==21.0.1', 'console_scripts', 'pip')() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 60 sys.stderr.write(f"ERROR: {exc}")

sneakerxwars commented 3 years ago

Same thing as non root user.

On Cent OS

yasserqureshi1 commented 3 years ago

requirements file not working

root@vps66937 [/home/sneake28/mon1/Sneaker-Monitors]# pip install -r requirements.txt

Traceback (most recent call last):

File "/usr/bin/pip", line 9, in

load_entry_point('pip==21.0.1', 'console_scripts', 'pip')()

File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point

return get_distribution(dist).load_entry_point(group, name)

File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point

return ep.load()

File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load

entry = __import__(self.module_name, globals(),globals(), ['__name__'])

File "/usr/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 60

sys.stderr.write(f"ERROR: {exc}")

You are using Python2.7 when you should use Python3+ (written in Python3.8)

sneakerxwars commented 3 years ago

Thank you.

yum -y install python3-pip && pip3 ... solved the trick.