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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install issue: unable to convert "\xF3" from ASCII-8BIT to UTF-8 for lib/fpm/package/pyfpm/__init__.pyc, skipping #1191

Open
claussen opened this issue Sep 15, 2016 · 5 comments

Comments

@claussen
Copy link

@claussen claussen commented Sep 15, 2016

installing to a pretty base CentOS 7 host in Azure.

cat /etc/redhat-release

CentOS Linux release 7.0.1406 (Core)

gem install fpm

Fetching: cabin-0.9.0.gem (100%)
Successfully installed cabin-0.9.0
Fetching: backports-3.6.8.gem (100%)
Successfully installed backports-3.6.8
Fetching: arr-pm-0.0.10.gem (100%)
Successfully installed arr-pm-0.0.10
Fetching: clamp-1.0.0.gem (100%)
Successfully installed clamp-1.0.0
Fetching: ffi-1.9.14.gem (100%)
Building native extensions. This could take a while...
Successfully installed ffi-1.9.14
Fetching: childprocess-0.5.9.gem (100%)
Successfully installed childprocess-0.5.9
Fetching: archive-tar-minitar-0.5.2.gem (100%)
Successfully installed archive-tar-minitar-0.5.2
Fetching: io-like-0.3.0.gem (100%)
Successfully installed io-like-0.3.0
Fetching: ruby-xz-0.2.3.gem (100%)
Successfully installed ruby-xz-0.2.3
Fetching: stud-0.0.22.gem (100%)
Successfully installed stud-0.0.22
Fetching: mustache-0.99.8.gem (100%)
Successfully installed mustache-0.99.8
Fetching: insist-1.0.0.gem (100%)
Successfully installed insist-1.0.0
Fetching: pleaserun-0.0.24.gem (100%)
Successfully installed pleaserun-0.0.24
Fetching: fpm-1.6.2.gem (100%)
Successfully installed fpm-1.6.2
Parsing documentation for cabin-0.9.0
Installing ri documentation for cabin-0.9.0
Parsing documentation for backports-3.6.8
Installing ri documentation for backports-3.6.8
Parsing documentation for arr-pm-0.0.10
Installing ri documentation for arr-pm-0.0.10
Parsing documentation for clamp-1.0.0
Installing ri documentation for clamp-1.0.0
Parsing documentation for ffi-1.9.14
Installing ri documentation for ffi-1.9.14
Parsing documentation for childprocess-0.5.9
Installing ri documentation for childprocess-0.5.9
Parsing documentation for archive-tar-minitar-0.5.2
Installing ri documentation for archive-tar-minitar-0.5.2
Parsing documentation for io-like-0.3.0
Installing ri documentation for io-like-0.3.0
Parsing documentation for ruby-xz-0.2.3
Installing ri documentation for ruby-xz-0.2.3
Parsing documentation for stud-0.0.22
Installing ri documentation for stud-0.0.22
Parsing documentation for mustache-0.99.8
Installing ri documentation for mustache-0.99.8
Parsing documentation for insist-1.0.0
Installing ri documentation for insist-1.0.0
Parsing documentation for pleaserun-0.0.24
Installing ri documentation for pleaserun-0.0.24
Parsing documentation for fpm-1.6.2
unable to convert "\xF3" from ASCII-8BIT to UTF-8 for lib/fpm/package/pyfpm/init.pyc, skipping
unable to convert "\xF3" from ASCII-8BIT to UTF-8 for lib/fpm/package/pyfpm/get_metadata.pyc, skipping
Installing ri documentation for fpm-1.6.2
14 gems installed

appears to only impact the documentation.

@jordansissel

This comment has been minimized.

Copy link
Owner

@jordansissel jordansissel commented Sep 15, 2016

This is a bug in rubydoc, I think.

You can do this to workaround it by having gem not do any documentation stuff: gem install fpm --no-ri --no-rdoc

@claussen

This comment has been minimized.

Copy link
Author

@claussen claussen commented Sep 15, 2016

Thanks Jordan. :) Now it's documented for others to find.

@jordansissel

This comment has been minimized.

Copy link
Owner

@jordansissel jordansissel commented Sep 15, 2016

hmm.. it is really weird that the file lib/fpm/package/pyfpm/init.pyc is the problem. That's a bytecode compiled result from python of init.py... I don't know why it's in the package.

jordansissel added a commit that referenced this issue Sep 15, 2016
…ill prevent #1191 from happening again.
@jordansissel

This comment has been minimized.

Copy link
Owner

@jordansissel jordansissel commented Sep 15, 2016

Ahh, fixed the problem. b0367de

Future fpm releases will now not include pyc files.

@jordansissel

This comment has been minimized.

Copy link
Owner

@jordansissel jordansissel commented Sep 15, 2016

fpm 1.6.3 released with this fixed. Same code as 1.6.2 but without those pyc files causing problems for ya :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.