OneOCR Dev commited on
Commit
23cd2a2
·
1 Parent(s): 2d0dbfe

fix: użyj 'wine' zamiast 'wine64' - Wine Staging instaluje się jako wine

Browse files
Files changed (1) hide show
  1. test_wine_colab.ipynb +5 -5
test_wine_colab.ipynb CHANGED
@@ -53,7 +53,7 @@
53
  " print(r.stderr[:200])\n",
54
  "\n",
55
  "# Verify\n",
56
- "!wine64 --version\n",
57
  "!x86_64-w64-mingw32-gcc --version 2>&1 | head -1\n",
58
  "print(\"\\nOK - Wine Staging installed\")"
59
  ]
@@ -347,7 +347,7 @@
347
  "\n",
348
  " # Run diagnostic\n",
349
  " result = subprocess.run(\n",
350
- " ['wine64', exe, dll_dir],\n",
351
  " capture_output=True, text=True, timeout=120,\n",
352
  " env={**os.environ, 'WINEDEBUG': '-all'}\n",
353
  " )\n",
@@ -363,7 +363,7 @@
363
  " print(\"Wine debug trace (bcrypt + loaddll):\")\n",
364
  " print(\"=\" * 60)\n",
365
  " r2 = subprocess.run(\n",
366
- " ['wine64', exe, dll_dir],\n",
367
  " capture_output=True, text=True, timeout=120,\n",
368
  " env={**os.environ, 'WINEDEBUG': '+bcrypt,+loaddll,-other'}\n",
369
  " )\n",
@@ -397,7 +397,7 @@
397
  "key_hex = key.hex()\n",
398
  "\n",
399
  "result = subprocess.run(\n",
400
- " ['wine64', '/tmp/oneocr_loader.exe',\n",
401
  " 'Z:\\\\content\\\\oneocr\\\\ocr_data', 'Z:\\\\tmp\\\\test.bmp', key_hex],\n",
402
  " capture_output=True, text=True, timeout=120,\n",
403
  " env={**os.environ, 'WINEDEBUG': '-all'}\n",
@@ -439,7 +439,7 @@
439
  " img.save(bmp_path, format='BMP')\n",
440
  " t0 = time.time()\n",
441
  " r = subprocess.run(\n",
442
- " ['wine64', '/tmp/oneocr_loader.exe',\n",
443
  " 'Z:\\\\content\\\\oneocr\\\\ocr_data', 'Z:\\\\tmp\\\\test.bmp', key_hex],\n",
444
  " capture_output=True, text=True, timeout=120,\n",
445
  " env={**os.environ, 'WINEDEBUG': '-all'}\n",
 
53
  " print(r.stderr[:200])\n",
54
  "\n",
55
  "# Verify\n",
56
+ "!wine --version\n",
57
  "!x86_64-w64-mingw32-gcc --version 2>&1 | head -1\n",
58
  "print(\"\\nOK - Wine Staging installed\")"
59
  ]
 
347
  "\n",
348
  " # Run diagnostic\n",
349
  " result = subprocess.run(\n",
350
+ " ['wine', exe, dll_dir],\n",
351
  " capture_output=True, text=True, timeout=120,\n",
352
  " env={**os.environ, 'WINEDEBUG': '-all'}\n",
353
  " )\n",
 
363
  " print(\"Wine debug trace (bcrypt + loaddll):\")\n",
364
  " print(\"=\" * 60)\n",
365
  " r2 = subprocess.run(\n",
366
+ " ['wine', exe, dll_dir],\n",
367
  " capture_output=True, text=True, timeout=120,\n",
368
  " env={**os.environ, 'WINEDEBUG': '+bcrypt,+loaddll,-other'}\n",
369
  " )\n",
 
397
  "key_hex = key.hex()\n",
398
  "\n",
399
  "result = subprocess.run(\n",
400
+ " ['wine', '/tmp/oneocr_loader.exe',\n",
401
  " 'Z:\\\\content\\\\oneocr\\\\ocr_data', 'Z:\\\\tmp\\\\test.bmp', key_hex],\n",
402
  " capture_output=True, text=True, timeout=120,\n",
403
  " env={**os.environ, 'WINEDEBUG': '-all'}\n",
 
439
  " img.save(bmp_path, format='BMP')\n",
440
  " t0 = time.time()\n",
441
  " r = subprocess.run(\n",
442
+ " ['wine', '/tmp/oneocr_loader.exe',\n",
443
  " 'Z:\\\\content\\\\oneocr\\\\ocr_data', 'Z:\\\\tmp\\\\test.bmp', key_hex],\n",
444
  " capture_output=True, text=True, timeout=120,\n",
445
  " env={**os.environ, 'WINEDEBUG': '-all'}\n",