Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2 compiled without wide unicode support #23

Closed
JayH5 opened this issue Sep 13, 2019 · 5 comments
Closed

Python 2 compiled without wide unicode support #23

JayH5 opened this issue Sep 13, 2019 · 5 comments

Comments

@JayH5
Copy link

JayH5 commented Sep 13, 2019

Hi there 馃憢

Not sure if this is the right forum for this (maybe a GitHub Actions VM image issue), but the version of Python 2.7 when running in a VM is not compiled with wide unicode support (--enable-unicode=ucs4 during the configure step).

This seems the same on both ubuntu-18.04 and ubuntu-16.04 images.

Python installed from the Ubuntu repos does include wide unicode support, and so do the official Python Docker images.

This has the subtle effect that you can only install wheels built without wide unicode support (cp27m packages), rather than the more common wide unicode support (cp27mu). Some popular packages (e.g. pandas) only build wheels with wide unicode support and so will fail to install (for various reasons) on Python 2.7 in a GitHub Actions VM. Here is some code showing this.

@asottile
Copy link

Seeing the same on azure pipelines (which is presumably the same backend)

asottile added a commit to asottile-archive/no-manylinux that referenced this issue Nov 12, 2019
@konradpabjan
Copy link
Collaborator

Python 2.7 with wide character support should now be available to everyone

image

@lexelby
Copy link

lexelby commented Jan 27, 2020

Seems like this is broken again on the latest python available in a ubuntu-18.04 (2.7.17).

@konradpabjan
Copy link
Collaborator

Yup, looks like it's busted. Thanks for the heads up 馃槩 Confirmed: https://github.com/konradpabjan/TestPython/runs/414015432?check_suite_focus=true

@miketimofeev I know there has been some recent work in terms of how Python gets installed on our hosted runners. Could you take a look

@konradpabjan konradpabjan reopened this Jan 28, 2020
@lexelby
Copy link

lexelby commented Jan 29, 2020

Thanks!

To unblock my project (inkstitch/inkstitch) I switched to installing python through apt but it'd be great if I could switch back to the already-installed one in the runner.

nijel added a commit to WeblateOrg/weblate that referenced this issue Feb 20, 2020
nijel added a commit to WeblateOrg/weblate that referenced this issue Feb 20, 2020
Since Python 3.3 all builds are wide, so avoid dealing with that for
now.

See actions/setup-python#23
See #2201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants