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
[Mac] Debugpy 1.6.5 not installable with poetry #1187
Comments
Does the error only show up with |
@int19h poetry install
poetry shell
pip install debugpy I should clarify though -- the goal is to make |
As far as platform support goes, we publish a Looking at the log, the wheel that Poetry is trying to install is coming from a path that is its cache. Is that a cached version of the PyPI wheel, or did it try to build its own instead, perhaps in some way that does not involve setup.py? While we do have pyproject.toml, we still rely on setup.py to properly package the binary bits in vendored pydevd, which precluded this last time we tried a more declarative approach. |
Hmm I think I am following. RE "is that a cached version of ...?" - how can I help answer that? Are you asking if it's a local cache, or a cache somewhere that poetry looks for wheels? Thanks again for working with me here! |
I was referring to this path: BTW, is this actually an x86-64 Mac, or is it ARM? We don't publish wheels for specifically ARM, so the expectation is that the |
I'm seeing the same issue. I'm new to poetry, so I hope I'm not missing something obvious. Anyway to your question @int19h it seems that the whl file is the same as the published one My local failing file:
It's: MD5 Pypi file from https://pypi.org/project/debugpy/1.6.6/#copy-hash-modal-3bdbf641-4208-4348-8b49-64073fcda391 |
@int19h sorry for the delayed response. My laptop is x86 (see attached). I went into the cache and deleted the offending wheel, and attempted to Click me
We can see that the wheel is different than last week (now it's downloading debugpy 1.6.6). This means that poetry downloads the wheel, puts it in the cache, and then attempts to install from there, hence the error message pointing to the cache location. |
Having the same issue, the versions |
It looks like we got tripped by this change in Big Sur. Basically, the problem is that when the wheel is built, the toolchain assigns the platform tag according to the actual version of macOS used to build, which is (The reason why this only happened now is that we were building older versions of Python on macOS 10.x before. But we can't do that anymore because it's been deprecated in Azure Pipelines for some time now and will be completely removed soon.) The official workaround per Apple is to tell the OS to not lie by setting environment variable |
Another possibility would be for us to take down the |
@int19h thank you for digging so deep into this! Me and my team are content with moving to python 3.10. It's been on the docket for a while now so it's as good a time as any. And, I can confirm that debugpy 1.6.6 is installable with poetry for python 3.10. Feel free to handle the status of this issue as you see fit. I really appreciate your quick responses. 👍 |
The offending wheel for Python 3.9 has been removed; please let me know if this hasn't solved the problem! |
@int19h - thanks for tracking that down. FWIW, I wasn't able to install with python 3.10 either. I had to install
|
I'm getting the same error installing version ❯ poetry --version
Poetry (version 1.3.2)
❯ python --version
Python 3.10.8
❯ uname -a
Darwin xxxx 22.3.0 Darwin Kernel Version 22.3.0: Thu Jan 5 20:48:54 PST 2023; root:xnu-8792.81.2~2/RELEASE_ARM64_T6000 x86_64 |
I wonder if Poetry itself is still using the system-provided Python (3.9) in your case. Can you share the output of |
Poetry uses whatever version of python it finds first that fits the In contrast, when creating a new virtual env, Not sure if that helps @int19h. |
I was rather thinking about the version of Python that is used to run Poetry itself, before it even gets to find and parse a pyproject.toml somewhere. Although what should matter here is the version of Python used by pip - but I'm not sure if this behavior wrt version number virtualization also applies to subprocesses once the parent process triggers it. Alternatively, if it picks the first Python version that fits, could it be that pyproject.toml has something like: [tool.poetry.dependencies]
python = "^3.9" and the env that was created ended up linking to system Python? It would be interesting to see what |
I had the exact mentioned problem. Updating to Python 3.10 on my machine solved the issue! |
@int19h it doesn't seem like poetry is using the system python. My pyproject.toml has the following:
and the output of
|
Hm, I wonder if this has something to do with it being conda - they build the Python binaries themselves, it's not the same stuff as from python.org. If it's built with an older Apple SDK, it would explain this behavior. To check, try this and see if it gives you 11.0 or 10.16:
|
@int19h I think you're on to something -- here's what I get:
|
It sounds like you'll have to use the |
Thanks! I re-installed conda (and switched from |
Hi all, not meaning to necro the thread but I ran into this error today while attempting to install debugpy with poetry. Any suggestions? poetry debug info
Platform Mac Version
python3.10 -c "import platform; print(platform.mac_ver())"
('13.2.1', ('', '', ''), 'arm64') Other Debug Info
% poetry --version
Poetry (version 1.4.1)
% python --version
Python 3.10.6
% uname -a
Darwin 00000764494mac 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64 Full Error
|
@jacobbridges |
Stumbled on a similar issue today, while trying to install ipykernel on mac with python3.11 (installed via Brew)... Mac Platform
Poetry debug info
Shortened Error while installing debugpy 1.6.6
Tested also with Python 3.10 and while the SYSTEM_VERSION_COMPAT=0 was passed to command. Didn't work. |
Looks like it is related to this issue : #1246 It needs a fix before downgrade poetry or turn off certain config written in here. |
Before creating a new issue, please check the FAQ to see if your question is answered there.
Environment data
Actual behavior
Poetry is a python package manager that specifies its virtual envs in a
pyproject.toml
file. Here is an example file to start with:Attempting to install the latest
debugpy
fails:But installing the previous version works:
poetry add debugpy=1.6.4
.I believe the crux of the error is:
ERROR: debugpy-1.6.5-cp39-cp39-macosx_11_0_x86_64.whl is not a supported wheel on this platform
Expected behavior
I'd like to be able to install the latest
debugpy
:).The text was updated successfully, but these errors were encountered: