Skip to content

在 Ubuntu Desktop 實驗 wine + skcom 效果 #9

Description

@virus-warnning

目前在 Docker 環境卡在 VC++ 2010 redist 安裝失敗而且原因是亂碼

需要先簡化環境測試,找出問題後再繼續調整 Container 設計

關於 Python

預設安裝 Python 會位於

C:\users\ubuntu19\Local Settings\Application Data\Programs\Python\Python38-32

如果想要設定到 Path 可以變更 ~/.wine/user.reg

[Environment] 1596009478
"Path"="C:\\users\\ubuntu19\\Local Settings\\Application Data\\Programs\\Python\\Python38-32;C:\\users\\ubuntu19\\Local Settings\\Application Data\\Programs\\Python\\Python38-32\\Scripts;%Path%"

執行 python 時, 會遇到 ntlm_auth 問題

wine python -m skcom.tools.setup
0009:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.

安裝 winbind 套件可以解決

sudo apt install winbind

關於 VC++ 2010 可轉發套件

使用 python -m skcom.tools.setup 安裝失敗, 錯誤碼 1605
改用 winetricks 可以順利安裝

關於群益 API 註冊

VC++ 2010 裝完後, regsvr32 就能順利安裝

關於生成 comtypes 模組

ubuntu19@ubuntu19-vm:~$ wine python -m skcom.samples.kline
尚未生成 SKCOMLib.py 請先執行一次 python -m skcom.tools.setup
例外訊息: No module named 'comtypes.gen.SKCOMLib'

步驟

mkdir -p ~/.skcom/lib
wget ...
wget ...

export WINEARCH=win32
export WINEDEBUG=fixme-all
wineboot
cd .skcom
./winetricks vcrun2010
cd lib
wine regsvr32 SKCOM.dll

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions