[MacPorts] #66825: py39-scrapy apparently installs without problems, but produces errors when run
MacPorts
noreply at macports.org
Sat Feb 4 08:29:00 UTC 2023
#66825: py39-scrapy apparently installs without problems, but produces errors when
run
----------------------+-------------------------
Reporter: typonaut | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: py39-scrapy
----------------------+-------------------------
py39-scrapy appears to install without issues, but when run produces
errors (MacOS 10.6):
{{{
python39 -m scrapy
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py",
line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py",
line 87, in _run_code
exec(code, run_globals)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/__main__.py", line 1, in <module>
from scrapy.cmdline import execute
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/cmdline.py", line 9, in <module>
from scrapy.crawler import CrawlerProcess
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/crawler.py", line 18, in <module>
from scrapy.core.engine import ExecutionEngine
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/core/engine.py", line 17, in <module>
from scrapy.core.scraper import Scraper
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/core/scraper.py", line 24, in <module>
from scrapy.utils.log import failure_to_exc_info, logformatter_adapter
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/utils/log.py", line 12, in <module>
from scrapy.utils.versions import scrapy_components_versions
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/utils/versions.py", line 12, in <module>
from scrapy.utils.ssl import get_openssl_version
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/utils/ssl.py", line 1, in <module>
import OpenSSL
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import SSL, crypto
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/OpenSSL/SSL.py", line 9, in <module>
from OpenSSL._util import (
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/OpenSSL/_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14,
in <module>
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so, 2): Symbol
not found: _ERR_put_error
Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
Expected in: flat namespace
in
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
}}}
or
{{{
scrapy
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 581, in _build_master
ws.require(__requires__)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 800, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 3.3.2
(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages), Requirement.parse('cryptography<39,>=38.0.0'),
{'pyOpenSSL'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/local/bin/scrapy", line 33, in <module>
sys.exit(load_entry_point('Scrapy==2.7.1', 'console_scripts',
'scrapy')())
File "/opt/local/bin/scrapy", line 25, in importlib_load_entry_point
return next(matches).load()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/metadata.py",
line 86, in load
module = import_module(match.group('module'))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py",
line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in
_find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in
_call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in
_find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in
_call_with_frames_removed
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/__init__.py", line 12, in <module>
from scrapy.spiders import Spider
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/spiders/__init__.py", line 10, in <module>
from scrapy.http import Request
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/http/__init__.py", line 11, in <module>
from scrapy.http.request.form import FormRequest
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/scrapy/http/request/form.py", line 12, in <module>
from parsel.selector import create_root_node
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/parsel/__init__.py", line 16, in <module>
from parsel.selector import Selector, SelectorList # NOQA
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/parsel/selector.py", line 22, in <module>
from pkg_resources import parse_version
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 3260, in <module>
def _initialize_master_working_set():
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 3272, in
_initialize_master_working_set
working_set = WorkingSet._build_master()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 583, in _build_master
return cls._build_from_requirements(__requires__)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 596, in
_build_from_requirements
dists = ws.resolve(reqs, Environment())
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/pkg_resources/__init__.py", line 800, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 3.3.2
(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages), Requirement.parse('cryptography<39,>=38.0.0'),
{'pyOpenSSL'})
}}}
--
Ticket URL: <https://trac.macports.org/ticket/66825>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list