huh! can we see a full traceback?
# announcements
m
huh! can we see a full traceback?
d
Copy code
[53693 ms] Virtualenv location: /home/docker/.local/share/virtualenvs/app-4PlAip0Q
[54106 ms] Installing dependencies from Pipfile.lock (6cd6ac)…
[321274 ms] An error occurred while installing pyobjc-core==6.1 --hash=sha256:1a0fbf012fb575e0adf8c18cfd4453e657cc2c0deb2660c529bf524ba4c9149a --hash=sha256:470ccd754efb468a59426942673dfc3c5c59f33a5b8cae8a7fc1be975c2d4128 --hash=sha256:751cdeb436cb181af2e2413015b072075590577c410c7f345080a38dd028b8ec --hash=sha256:8ccf44511cbe438fa6562c423c0c5f1dad7cfc0eadd6d8f112840f8845b44fda! Will try again.
[322143 ms] An error occurred while installing pyobjc-framework-cocoa==6.1 --hash=sha256:1dc428f867d35007ddf9de5b24eff5bfdf65c58b1d610abcb08bebd94c343312 --hash=sha256:245e19156739f8068db474ad9561079cc698f08ef525e299b8eedc5531e02801 --hash=sha256:32ba4d0ce811e2088bf0fc360c9545c06586934e895f7133655b8f2182e7019a --hash=sha256:c4077d2e6f96e4f3fd9780d66778cf51d27f414822498b24410e9df7a6a4d531! Will try again.
[322152 ms] An error occurred while installing pyobjc-framework-fsevents==6.1 --hash=sha256:3a403ce5997cc01f23f1a70f8b4c919311b9a6b1fdd3c3d02d19079d711f954c --hash=sha256:7a635c86af744a1d17f0c6c3913bef87b5fd146e0311c03229eba9e512b81520 --hash=sha256:94c6953774b6d69e59d9781951f05ef57e352b3c530d4c236f463444852c3a88 --hash=sha256:d2ae8748d1791dc9e3d19b41d3873283ac34ed17ff8fca70f1a199336a0477b5! Will try again.
[339626 ms] Installing initially failed dependencies…
[351526 ms] [pipenv.exceptions.InstallError]:   File "/opt/pyenv/versions/3.8.1/lib/python3.8/site-packages/pipenv/cli/command.py", line 604, in sync
[pipenv.exceptions.InstallError]:       retcode = do_sync(
[pipenv.exceptions.InstallError]:   File "/opt/pyenv/versions/3.8.1/lib/python3.8/site-packages/pipenv/core.py", line 2604, in do_sync
[351527 ms] [pipenv.exceptions.InstallError]:       do_init(
[pipenv.exceptions.InstallError]:   File "/opt/pyenv/versions/3.8.1/lib/python3.8/site-packages/pipenv/core.py", line 1246, in do_init
[pipenv.exceptions.InstallError]:       do_install_dependencies(
[pipenv.exceptions.InstallError]:   File "/opt/pyenv/versions/3.8.1/lib/python3.8/site-packages/pipenv/core.py", line 862, in do_install_dependencies
[351527 ms] [pipenv.exceptions.InstallError]:       _cleanup_procs(procs, False, failed_deps_queue, retry=False)
[351528 ms] [pipenv.exceptions.InstallError]:   File "/opt/pyenv/versions/3.8.1/lib/python3.8/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[351530 ms] [pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting pyobjc-core==6.1', '  Downloading pyobjc-core-6.1.tar.gz (791 kB)']
[351531 ms] [pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', '     command: /home/docker/.local/share/virtualenvs/app-4PlAip0Q/bin/python -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-96amzk_g/pyobjc-core/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-96amzk_g/pyobjc-core/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' egg_info --egg-base /tmp/pip-install-96amzk_g/pyobjc-core/pip-egg-info', '         cwd: /tmp/pip-install-96amzk_g/pyobjc-core/', '    Complete output (2 lines):', '    running egg_info', '    error: PyObjC requires macOS to build', '    ----------------------------------------', 'ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.']
ERROR: ERROR: Package installation failed...
c
we ran into this, and found that the cause is latest
watchdog
release taking off the
Darwin
platform constraint from their pyObjC dependencies. We ended up pinning those ourselves in our `Pipfile`:
Copy code
pyobjc-core = { version = "*", platform_system = "== 'Darwin'" }
pyobjc-framework-cocoa = { version = "*", platform_system = "== 'Darwin'" }
pyobjc-framework-fsevents = { version = "*", platform_system = "== 'Darwin'" }
1
d
oh awesome. Thanks for the tip @Cagatay K
cc @bobzoller ^
b
awesome thanks @Cagatay K
m
@Cagatay K did you manage to find the change in
watchdog
? i'd like to open an issue with them
huh, fwiw, i can't reproduce on
slim
with pip v. 20, 18, or 10
c