Project

Profile

Help

Bug #5934

closed

SaxonC Python wheels don't work in a virtual environment on Windows

Added by O'Neil Delpratt about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Python Build
Start date:
2023-03-22
Due date:
% Done:

100%

Estimated time:
Found in version:
12.1
Fixed in version:
12.2
Platforms:

Description

Issue Reported by user here: https://saxonica.plan.io/boards/4/topics/9334

I get a strange error (probably on the console error output) running any Python using saxonche 12.1 from PyPi in a venv environment under Windows:

C:\Users\marti\PycharmProjects\SaxonCHE12.1PyPipTest\venv\Scripts\python.exe C:\Users\marti\PycharmProjects\SaxonCHE12.1PyPipTest\processor_test.py 
Error processing line 1 of C:\Users\marti\PycharmProjects\SaxonCHE12.1PyPipTest\venv\lib\site-packages\_preload_saxonche_12.1.0.pth:

  Traceback (most recent call last):
    File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\lib\site.py", line 169, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<string>", line 18, in <module>

  FileNotFoundError: .load-order-saxonche-12.1.0 not found

Remainder of file ignored The program then runs without problem and its output appears. But any run of any program using SaxonC emits that error message/warning.

Please register to edit this issue

Also available in: Atom PDF