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

P.75: colab_camera.use_cam() で DeprecationWarning が繰り返し出力される #4

Closed
renkin3q opened this issue Dec 30, 2020 · 2 comments
Assignees
Labels

Comments

@renkin3q
Copy link

ページ数

P.75 の 1 行目

内容

誤:img_str = encimg.tostring()
正:img_str = encimg.tobytes()

colab_camera.use_cam() 実行時に次のメッセージが繰り返し出力される。
/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:32: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.

コメント

メッセージを読めば自明な修正ですが、一応報告させて頂きます。

@karaage0703
Copy link
Owner

@renkin3q さん
ご指摘ありがとうございます。感謝です。

@KazumaAndoh さん
以前は出ていなかったので、ライブラリのアップデートによる影響のようです。動作自体は問題ありませんが、ワーニングが出続けて見づらいのと、将来的に動かなくなる可能性もあるので、修正した方がベターかと思います。
P.246とP255にも同様の箇所があります。ノートブックの方は修正しました。

バージョンアップによるものなので、誤記とは少し違いますが、正誤表に追加でよいでしょうか?分けて管理した方がよいでしょうか?

@karaage0703
Copy link
Owner

正誤表に追記しましたのでcloseします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants