Skip to content

Unicode decode error after executing cupy code in ipython #810

@ivirshup

Description

@ivirshup

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions