You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serverless version 2.52.1
serverless-python-requirements version 5.1.1
python3.8
running with dockerizePip enabled
When running sls deploy, serverless-python-requirements is pulling in packages that are not required by the project. In particular, it is pulling in a 209mb copy of PyQt5 which is not needed.
This occurs when I change the package version of one of my required libraries in my requirements.txt folder. Initially I just figured that meant they developed a dependency on PyQt5. However I have confirmed directly with the developer of the package that they do not have a dependency on PyQt5. I have also confirmed this locally by running pipdeptree.
The package in question which seems to cause PyQt5 to get pulled in is facebook-scraper.
When I set the requirements.txt version to 0.2.10 as it originally was, it doesn't pull in PyQt5.
However it appears if I change it to literally any other version, such as a previous version (0.2.9) or the latest version (0.2.45), PyQt5 gets pulled in despite absolutely not existing in the pipdeptree.
Any advice would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Running with the following:
serverless version 2.52.1
serverless-python-requirements version 5.1.1
python3.8
running with dockerizePip enabled
When running sls deploy, serverless-python-requirements is pulling in packages that are not required by the project. In particular, it is pulling in a 209mb copy of PyQt5 which is not needed.
This occurs when I change the package version of one of my required libraries in my requirements.txt folder. Initially I just figured that meant they developed a dependency on PyQt5. However I have confirmed directly with the developer of the package that they do not have a dependency on PyQt5. I have also confirmed this locally by running pipdeptree.
Here is the pipdeptree for my project:
Warning!!! Possibly conflicting dependencies found:
-rllib3==1.26.2
aiohttp==3.6.3
boto3==1.16.2
DateTime==4.3
facebook-scraper==0.2.45
Flask==1.1.2
html2text==2020.1.16
nulltype==2.3.1
pipdeptree==2.0.0
plaid-python==6.1.0
py3-pinterest==1.1.2
pylint==2.6.0
python-dotenv==0.15.0
selenium==3.141.0
twitter-scraper==0.4.4
unicode==2.8
webdriver-manager==3.4.1
wheel==0.35.1
Here is the contents of my requirements, generated by sls package:
CHANGES.md
DateTime
DateTime-4.3.dist-info
LICENSE
MechanicalSoup-1.1.0.dist-info
PyQt5
PyQt5-5.15.4.dist-info
PyQt5_Qt5-5.15.2.dist-info
PyQt5_sip-12.9.0.dist-info
README.md
pycache
_distutils_hack
aiohttp
aiohttp-3.7.4.post0.dist-info
appdirs-1.4.4.dist-info
appdirs.py
async_timeout
async_timeout-3.0.1.dist-info
attr
attrs-21.2.0.dist-info
backports
beautifulsoup4-4.9.3.dist-info
bin
boto3
boto3-1.18.13.dist-info
botocore
botocore-1.21.13.dist-info
bs4
bs4-0.0.1.dist-info
certifi
certifi-2021.5.30.dist-info
chardet
chardet-4.0.0.dist-info
charset_normalizer
charset_normalizer-2.0.4.dist-info
colorama
colorama-0.4.4.dist-info
configparser-5.0.2.dist-info
configparser.py
crayons-0.4.0.dist-info
crayons.py
cssselect
cssselect-1.1.0.dist-info
dateparser
dateparser-1.0.0.dist-info
dateparser_data
dateparser_scripts
dateutil
demjson-2.2.4.dist-info
demjson.py
distutils-precedence.pth
facebook_scraper
facebook_scraper-0.2.45.dist-info
fake_useragent
fake_useragent-0.1.11.dist-info
idna
idna-3.2.dist-info
jmespath
jmespath-0.10.0.dist-info
lxml
lxml-4.6.3.dist-info
mechanicalsoup
multidict
multidict-5.1.0.dist-info
parse-1.19.0.dist-info
parse.py
pkg_resources
plaid
plaid_python-7.4.0.dist-info
py3_pinterest-1.2.2.dist-info
py3pin
pyee
pyee-8.1.0.dist-info
pyppeteer
pyppeteer-0.2.5.dist-info
pyquery
pyquery-1.4.3.dist-info
python_dateutil-2.8.2.dist-info
pytz
pytz-2021.1.dist-info
regex
regex-2021.8.3.dist-info
requests
requests-2.26.0.dist-info
requests_html-0.10.0.dist-info
requests_html.py
requests_toolbelt
requests_toolbelt-0.9.1.dist-info
requirements 2.txt
requirements.txt
s3transfer
s3transfer-0.5.0.dist-info
selenium
selenium-3.141.0.dist-info
setuptools
setuptools-57.4.0.dist-info
six-1.16.0.dist-info
six.py
soupsieve
soupsieve-2.2.1.dist-info
tests
tqdm
tqdm-4.62.0.dist-info
twitter_scraper
twitter_scraper-0.4.4.dist-info
typing_extensions-3.10.0.0.dist-info
typing_extensions.py
tzlocal
tzlocal-2.1.dist-info
urllib3
urllib3-1.26.6.dist-info
w3lib
w3lib-1.22.0.dist-info
webdriver_manager
webdriver_manager-3.4.2.dist-info
websockets
websockets-8.1.dist-info
yarl
yarl-1.6.3.dist-info
zope
zope.interface-5.4.0-py3.8-nspkg.pth
zope.interface-5.4.0.dist-info
The package in question which seems to cause PyQt5 to get pulled in is facebook-scraper.
When I set the requirements.txt version to 0.2.10 as it originally was, it doesn't pull in PyQt5.
However it appears if I change it to literally any other version, such as a previous version (0.2.9) or the latest version (0.2.45), PyQt5 gets pulled in despite absolutely not existing in the pipdeptree.
Any advice would be greatly appreciated.
The text was updated successfully, but these errors were encountered: