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

Unicode decode error after executing cupy code in ipython #810

Open
ivirshup opened this issue Apr 17, 2024 · 0 comments
Open

Unicode decode error after executing cupy code in ipython #810

ivirshup opened this issue Apr 17, 2024 · 0 comments

Comments

@ivirshup
Copy link

ivirshup commented Apr 17, 2024

Describe the bug

Scalene cell magic errors after I execute cupy code.

Interestingly, doesn't seem to error unless I've actually called a cupy function (just importing seems fine)

To Reproduce

%load_ext
%%scalene
cp.ones(100)[:]
sleep(0.1)

The traceback is too long to include here (the second line is very very long) so I've uploaded it to this gist

Expected behavior

I didn't expect an error.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] centos 7
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22] 1.5.39 & 1.5.38 (only versions tested)

If you have not yet tried with the repository version (python3 -m pip install git+https://github.com/plasma-umass/scalene), please try that before reporting.

I've tried with both installs from pypi and the repo directly.


FWIW, I can reproduce this on multiple machines. It seems like the problem is really just the text trying to be decoded as ascii when it contains unicode

This also occurs in the ipython repl.

@ivirshup ivirshup changed the title Unicode decode error after executing cupy code Unicode decode error after executing cupy code in a notebook Apr 17, 2024
@ivirshup ivirshup changed the title Unicode decode error after executing cupy code in a notebook Unicode decode error after executing cupy code in ipython Apr 17, 2024
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

1 participant