0
私はステガノグラフィーを初めて使用しています。テストをしようと、私はこのエラーを取得:ステガノグラフィエラー - 'hex'はテキストエンコードではありません。任意のコーデックを処理するにはcodecs.encode()を使用してください
'hex' is not a text encoding; use codecs.encode() to handle arbitrary codecs
私は約binasciiを読んだが、どのように私はこの作業を行うことができますか?
私のコードは次のいずれかです。
from __future__ import absolute_import, unicode_literals
from steganography.steganography import Steganography
path = "/Users/cohen/Desktop/Screenshot_030.png"
output_path = "/Users/cohen/Desktop/output_steganography.png"
text = "/Users/cohen/Desktop/test.txt"
Steganography.encode(path, output_path, text) #---here is the line with error
ありがとうございました!
プロジェクト管理者に、Python 3で動作するようにコードを更新するか、Python 2でのみ使用するようにコードを更新するよう依頼します。 –
プロジェクトは現在Python 3と互換性がありません。 –
ありがとうございます!私はそれがコードで怪しいものだと教えてくれました。 – Cohen