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

python callback attempting to attach package #16

Closed
pjcrosbie opened this issue Sep 18, 2017 · 5 comments
Closed

python callback attempting to attach package #16

pjcrosbie opened this issue Sep 18, 2017 · 5 comments

Comments

@pjcrosbie
Copy link

pjcrosbie commented Sep 18, 2017

issue with attaching packages

`
r$> library(tidyverse)
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "b:\python\anaconda3_4.3.1\envs\rice\lib\site-packages\rice\callbacks.py", line 31, in write_console_ex
output = buf.decode(ENCODING)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 44: invalid start byte

r$> library(dplyr)
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "b:\python\anaconda3_4.3.1\envs\rice\lib\site-packages\rice\callbacks.py", line 31, in write_console_ex
output = buf.decode(ENCODING)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 44: invalid start byte

`

here is the pip info from the install this morning:

`

pip install -U rice
Collecting rice
Downloading rice-0.0.18.tar.gz (244kB)
100% |████████████████████████████████| 245kB 1.2MB/s
Requirement already up-to-date: pygments in b:\python\anaconda3_4.3.1\envs\rice\lib\site-packages (from rice)
Collecting six (from rice)
Downloading six-1.11.0-py2.py3-none-any.whl
Requirement already up-to-date: wcwidth in b:\python\anaconda3_4.3.1\envs\rice\lib\site-packages (from rice)
Building wheels for collected packages: rice
Running setup.py bdist_wheel for rice ... done
Stored in directory: C:\Users\pjc\AppData\Local\pip\Cache\wheels\b0\1d\ce\0494449c54c5f7fa0bf7fc86cd2c4c5d1372ff9c85201e51e8
Successfully built rice
Installing collected packages: six, rice
Found existing installation: six 1.10.0
Uninstalling six-1.10.0:
Successfully uninstalled six-1.10.0
Found existing installation: rice 0.0.9
Uninstalling rice-0.0.9:
Successfully uninstalled rice-0.0.9
Successfully installed rice-0.0.18 six-1.11.0
`

@randy3k
Copy link
Owner

randy3k commented Sep 18, 2017

Windows encoding and unicode handling have been bugging me for a while. Could you report this from the regular R console?

Sys.getlocale()
l10n_info()

@randy3k
Copy link
Owner

randy3k commented Sep 18, 2017

Oh. I know what is happening, it is due to a recent refactoring.

@pjcrosbie
Copy link
Author

`

Mon Sep 18 13:18:35 2017
source .Rprofile: C:\Users\pjc\Documents/.Rprofile

Sys.getlocale()

[1] "LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIM
E=English_United States.1252"

l10n_info()

$MBCS
[1] FALSE

$UTF-8
[1] FALSE

$Latin-1
[1] TRUE

$codepage
[1] 1252

`

@randy3k
Copy link
Owner

randy3k commented Sep 18, 2017

should be fixed by bf7fe6c

@randy3k
Copy link
Owner

randy3k commented Sep 18, 2017

v0.0.19 is released.

@randy3k randy3k closed this as completed Sep 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants