Closed ybiorl closed 1 year ago
あまりにも疲れすぎた(今日一睡もしていない)上に明日からハードな諸用が入るので取り急ぎなんですが、この Artifacts から多分 x64 のインストーラー落とせると思うのでそれで試してみてもらえますか…?
あまりにも疲れすぎた(今日一睡もしていない)上に明日からハードな諸用が入るので取り急ぎなんですが、この Artifacts から多分 x64 のインストーラー落とせると思うのでそれで試してみてもらえますか…?
取り急ぎ、Artifactsのx64インストーラが実行できることを確認しました。
やはりビルド後のリリースタイミングでファイルが誤って上書きされてしまったみたいです。後でファイルを差し替えておきますね。 インストール/アップデート自体は上手く動作しましたか?
個人の環境の問題かもしれませんが、インストールとアップデートがうまくできません
依存パッケージをインストールしています…
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Python path configuration:
PYTHONHOME = '/tmp/onefile_231560_1683016180_636466'
PYTHONPATH = (not set)
program name = '/opt/KonomiTV/server/thirdparty/Python/bin/python'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = '/tmp/onefile_231560_1683016180_636466/lib/python3.11'
sys._base_executable = '/opt/KonomiTV/server/thirdparty/Python/bin/python'
sys.base_prefix = '/tmp/onefile_231560_1683016180_636466'
sys.base_exec_prefix = '/tmp/onefile_231560_1683016180_636466'
sys.platlibdir = 'lib'
sys.executable = '/opt/KonomiTV/server/thirdparty/Python/bin/python'
sys.prefix = '/tmp/onefile_231560_1683016180_636466'
sys.exec_prefix = '/tmp/onefile_231560_1683016180_636466'
sys.path = [
'/tmp/onefile_231560_1683016180_636466/lib/python311.zip',
'/tmp/onefile_231560_1683016180_636466/lib/python3.11',
'/tmp/onefile_231560_1683016180_636466/lib/python3.11/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f5cf92c0b80 (most recent call first):
<no Python frame>
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
データベースをアップグレードしています…
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0:00:00
PM2 サービスをインストールしています…
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0:00:00
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ PM2 サービスのインストール中に予期しないエラーが発生しました。 │
│ お手数をおかけしますが、下記のログを開発者に報告してください。 │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ PM2 のエラーログ: │
│ [PM2][ERROR] Script not found: /opt/KonomiTV/server/.venv/bin/python │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
依存パッケージを更新しています…
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Python path configuration: PYTHONHOME = '/tmp/onefile_328751_1683017613_901768' PYTHONPATH = (not set) program name = '/opt/KonomiTV/server/thirdparty/Python/bin/python' isolated = 0 environment = 1 user site = 1 safe_path = 0 import site = 1 is in build tree = 0 stdlib dir = '/tmp/onefile_328751_1683017613_901768/lib/python3.11' sys._base_executable = '/opt/KonomiTV/server/thirdparty/Python/bin/python' sys.base_prefix = '/tmp/onefile_328751_1683017613_901768' sys.base_exec_prefix = '/tmp/onefile_328751_1683017613_901768' sys.platlibdir = 'lib' sys.executable = '/opt/KonomiTV/server/thirdparty/Python/bin/python' sys.prefix = '/tmp/onefile_328751_1683017613_901768' sys.exec_prefix = '/tmp/onefile_328751_1683017613_901768' sys.path = [ '/tmp/onefile_328751_1683017613_901768/lib/python311.zip', '/tmp/onefile_328751_1683017613_901768/lib/python3.11', '/tmp/onefile_328751_1683017613_901768/lib/python3.11/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007ff1fd8ceb80 (most recent call first):
cloneしたKonomiTV-Installer.pyを実行して試したところ、直接・Dockerのどちらでもv0.7.0がインストールできました。
Linuxのみでしか確認していませんが、nuitka v1.5.6でビルドすると事象が発生し、v1.5.7だと発生しないので以下の問題に起因するかもしれません。 https://github.com/Nuitka/Nuitka/issues/2168
Dockerのインストール判定で使われているsubprocessが異常になっているように見えたので、問題の内容とも合致しているかと思われます。
最新のv1.5.7から修正されている問題であり、KonomiTVのPipfile.lockも直近で既にこのバージョンへ修正してらっしゃるので、Actionsの最新のビルドでは解決しているように見受けられます。
すでに認識済みならすみません。
調査ありがとうございます…!! 私も Nuitka を更新したこと or Python 3.11 ベースに更新したことが原因ではないかと思っていましたが、試しに依存関係を更新して Actions でビルドされたインストーラーを試してみたところ(まだ Windows 版しか確認できていないものの)普通に動作したので、やはり Nuitka 側に何らかの問題があったみたいです。
Nuitka は元々ビルドに非常に時間がかかること、インストーラーという用途上パフォーマンスはあまり求められないことから、これを機に PyInstaller に変更する予定です。
こんにちは、いつもKonomi TVを利用させていただいております。ありがとうございます。
Windows 10 x64 環境ですが、v0.7.0にアップデートする際、Linux環境と同じくPython Error "failed to get the Python codec of the filesystem encoding"が発生し、進まなくなります。インストールも似た現象が起こります。
ご参考になれば幸いです。
こんにちは、いつもKonomi TVを利用させていただいております。ありがとうございます。
Windows 10 x64 環境ですが、v0.7.0にアップデートする際、Linux環境と同じくPython Error "failed to get the Python codec of the filesystem encoding"が発生し、進まなくなります。インストールも似た現象が起こります。
ご参考になれば幸いです。
v0.7.1にて解消した模様です。ありがとうございました。
手元の環境で動作することは確認していましたが、0.7.1 のインストーラーにて無事インストールできたようで何よりです。 基本 0.7.1 で解決したかと思いますので、この Issue は閉じさせていただきます。 @ybiorl
はじめまして、大変ありがたく使用させていただいております。
環境
問題
Ver0.7.0のインストーラが実行できません。 Ver0.6.2までのLinux用インストーラのELFバイナリのアーキテクチャは[X86-64]でした。 Ver0.7.0では[AArch64]になっています。
実行内容