-
Notifications
You must be signed in to change notification settings - Fork 27
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
Upload failed (400): Binary wheel for an unsupported platform #46
Comments
@np1 – Sorry for the confusion, this repo is for the information site http://pythonwheels.com. However I believe at this time you can't upload linux wheels to the PyPI because the wheel spec doesn't account for the various linux platforms. The official wheel repo is https://bitbucket.org/pypa/wheel and there is also the #pypa channel on freenode where the developers of the spec and tools are around to lend a hand =) |
Hi, thanks for the explanation. I realise this is the repo for that site. It said on there to raise an issue if there are any problems with the page. It might be worth adding a note to say that the |
Hi there It should work when not building for a specific platform, it's only if you need to build for linux in particular that this is a problem. There's something on the page with regard to this (well I suppose it doesn't explicitly mention linux): Not having linux specific wheels is a pain for me too, as that's my platform of choice. |
Hi, thanks. I'm still trying to understand this. I wasn't aware I was building for a specific platform. My project is targeted at Win, Linux and Mac. Where is the platfrom even specified? Is it in the classifiers on pypi? Would I need to run the setup.py bdist_wheel command on a Mac and Windows machine to create and upload wheels for those platforms then? |
To be honest, I've not tried to make platform specific packages before, but I suspect that is probably has something to do with this line in your
Does it work if you remove it? |
Not sure. I will register an account at https://testpypi.python.org/pypi and report back.. |
You should be able to generate the wheel with |
It should be something like |
Hah, @meshy beat me to it ;) |
|
right ok.. classifiers in setup.py:
The wheel file created in dist/ is |
@np1 – What's in your setup.cfg? |
setup.cfg:
If I delete the setup.cfg (and again without POSIX :: Linux in classifiers) I get this:
It's the same output as previously apart from the line: |
I must be honest, I'm a little bit stumped as to why this could be happening, and I'm starting to think that @ghickman's suggestion...
...might be the best port of call for now. |
That said, just a thought, perhaps try deleting the |
I deleted all the generated files: Thanks both for your help :) I will try irc. |
@np1 – Sorry we couldn't find a solution =( |
@np1 Yeah, sorry about that. When you figure it out, please come back and let us know what the problem was. I'm super curious! |
I found the answer by going through the issue list on Bitbucket. It's marked as resolved although I consider it a bug! When no modules or packages are specified in setup.py (I only have a script specified in mine), it creates a platform specific wheel. I tested by creating a dummy .py module and specifying it with Since most projects will have modules or packages specified I guess it's not a big problem. I will change my setup.py to use |
Wow that is obscure. Pretty sure I'd not have worked that out.
Yeah, it looks to me as though it should be throwing an exception, not just acting strangely without warning. Glad you have a solution, anyway, and thanks for coming back to explain |
Oh wow that's super obscure! Good find @np1! |
It would be helpful if the error message gave more detail. What is the platform that's not supported? Which platforms are supported? The wheels I'm trying to upload are built for Windows so I don't understand why PyPI rejects them. How does PyPI deduce the platform for a binary wheel anyway? From the filename, or from metadata inside the archive? |
I'm still struggling to upload my wheel. Can anyone help?
|
@hickford I think you should read @ghickman's first comment on this thread. |
Pardon me. Copied question to https://bitbucket.org/pypa/wheel/issues/156/show-more-detail-in-binary-wheel-for-an |
@hickford 👍 thanks |
I tried a few strategies to work around this issue, but I'm not able to squash that generic In my case, it may be an issue with Travis CI; I've reached out to their support team for assistance. In the meantime, here are some of the ways that I tried to work around this issue:
If you were able to successfully work around this issue, please post what you tried; I could use some inspiration (: |
@todofixthis I'm sorry, this isn't the right place to search for assistance on this issue. As @ghickman explained in the first comment here, this site is informational. Specifically, it's a graphic that visualises wheel support in the 360 most downloaded packages on PyPI. I'm sure the folks at TravisCI will be able to help you better understand the issue, but if not, as @ghickman said, you should be able to also get assistance at the official wheel repo: https://bitbucket.org/pypa/wheel or the |
Hi, I followed the instructions on the website (pip install wheel, universal=1 in setup.cfg) but when I tried uploading to pypi with:
python setup.py sdist bdist_wheel upload
I got the following output:This is the first time I have tried using wheel, does anyone know what the issue is? This is the setup.py I was using: https://raw.githubusercontent.com/np1/mps/master/setup.py
The text was updated successfully, but these errors were encountered: