Кто знаком с pyoxidizer? Указываю точный путь и в итоге ошибка error: IOError: Системе не удается найти указанный путь. (os error 3)
pyoxidizer.bzl:
load("@python_packaging_rules//rulesython_packaging_rules.bzl", "pyoxidizer")
pyoxidizer.default_python_packaging_rules()
package = pyoxidizer.PythonExecutable(
name="my_executable",
input=pyoxidizer.PythonExecutableInput.from_inferred(),
icon_path=None,
)
package.with_python_source(
path="C:\\Users\\sad\\PycharmProjects\\asscoords\\gui.py",
pyoxidizer_behavior="include",
)
package.add_pypi_requirements(
requirements=[
"Pillow",
"pywin32",
"win10toast",
"opencv-python-headless",
"numpy",
],
)
dist = pyoxidizer.dist(
package=package,
)
def make_exe(dist):
policy = dist.make_python_packaging_policy()
policy.extension_module_filter = "all"
policy.include_distribution_sources = True
policy.include_distribution_resources = True
policy.include_test = False
config = dist.make_python_interpreter_config()
config.run_command = "from gui import main; main()"
exe = dist.to_python_executable(
name="my_executable",
packaging_policy=policy,
config=config,
)
exe.add_pypi_requirements([
"Pillow",
"pywin32",
"win10toast",
"opencv-python-headless",
"numpy",
])
return exe
exe = make_exe(dist)
pyoxidizer.bzl:
load("@python_packaging_rules//rulesython_packaging_rules.bzl", "pyoxidizer")
pyoxidizer.default_python_packaging_rules()
package = pyoxidizer.PythonExecutable(
name="my_executable",
input=pyoxidizer.PythonExecutableInput.from_inferred(),
icon_path=None,
)
package.with_python_source(
path="C:\\Users\\sad\\PycharmProjects\\asscoords\\gui.py",
pyoxidizer_behavior="include",
)
package.add_pypi_requirements(
requirements=[
"Pillow",
"pywin32",
"win10toast",
"opencv-python-headless",
"numpy",
],
)
dist = pyoxidizer.dist(
package=package,
)
def make_exe(dist):
policy = dist.make_python_packaging_policy()
policy.extension_module_filter = "all"
policy.include_distribution_sources = True
policy.include_distribution_resources = True
policy.include_test = False
config = dist.make_python_interpreter_config()
config.run_command = "from gui import main; main()"
exe = dist.to_python_executable(
name="my_executable",
packaging_policy=policy,
config=config,
)
exe.add_pypi_requirements([
"Pillow",
"pywin32",
"win10toast",
"opencv-python-headless",
"numpy",
])
return exe
exe = make_exe(dist)