sk1project / wixpy Goto Github PK
View Code? Open in Web Editor NEWCross-platform JSON-driven MSI package builder
Home Page: https://wix.sk1project.net
License: GNU General Public License v3.0
Cross-platform JSON-driven MSI package builder
Home Page: https://wix.sk1project.net
License: GNU General Public License v3.0
According to setup.py this projects runs on both Python 2 and Python 3. However, when I try to install WiX.py from PyPI I do get the following error:
$ pip install WiX.py
Collecting WiX.py
Downloading https://files.pythonhosted.org/packages/88/5f/396e4a819a944e4c878f26dc809d45f93b2775247eb68ed488f97396dd95/WiX.Py-0.1.0.tar.gz (1.6MB)
|████████████████████████████████| 1.6MB 1.7MB/s
ERROR: Command errored out with exit status 1:
command: /home/peter/.local/share/virtualenvs/PythonTurtle-pecabjcl/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sztrh4os/WiX.py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sztrh4os/WiX.py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-install-sztrh4os/WiX.py/
Complete output (13 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-sztrh4os/WiX.py/setup.py", line 28, in <module>
import wixpy
File "/tmp/pip-install-sztrh4os/WiX.py/src/wixpy/__init__.py", line 46, in <module>
from wixpy import model
File "/tmp/pip-install-sztrh4os/WiX.py/src/wixpy/model.py", line 22, in <module>
from wixpy import msi
File "/tmp/pip-install-sztrh4os/WiX.py/src/wixpy/msi.py", line 26, in <module>
from wixpy import libmsi
File "/tmp/pip-install-sztrh4os/WiX.py/src/wixpy/libmsi.py", line 20, in <module>
import gi
ModuleNotFoundError: No module named 'gi'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I'm running Python 3.6.8 on Ubuntu 18.04.5 LTS. Also, I have both the python-gi
and the python3-gi
Debian packages installed:
$ dpkg -l | grep -e python-gi -e python3-gi
ii python-gi 3.26.1-2ubuntu1 amd64 Python 2.x bindings for gobject-introspection libraries
ii python3-gi 3.26.1-2ubuntu1 amd64 Python 3 bindings for gobject-introspection libraries
ii python3-gi-cairo 3.26.1-2ubuntu1 amd64 Python 3 Cairo bindings for the GObject library
I can import the gi
module in my Python 2.7, though, so it's likely that installing with Python 2 will succeed:
$ python
Python 2.7.17 (default, Jul 20 2020, 15:37:01)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>>
The project doesn't seem to have a test suite and pipeline to test against supported Python versions. Is there any documentation saying which requirements must be satisfied for Python 3 installations?
Subj
There is quiet installation currently. It may bother some users thinking of "is installed or not?!"
I'm looking at simpler ways of creating MSI files, as I hate 💀 working with WiX - WiX.Py looks great!
I was wondering if it had support for executing any kind of custom action or hook? For example, to run an arbitrary command after the install phase - I'm thinking along the lines of WiX's custom actions, or go-msi's hooks.
Is it possible to implement the behavior of WiX tag MajorUpgrade. For Example:
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
The first goal - it prevents install several MSI with different versions in one time
The second goal - it forbid downgrade of MSI
Running wix.py wixpy.json (FROM this REPOSITORY)
gives an error
Error reading JSON file! the JSON object must be str, not 'bytes'
dist
function is deprecated on platform
module in 3.5 and removed in 3.8.Collecting wix.py
Using cached WiX.Py-0.1.0.tar.gz (1.6 MB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\username\Anaconda3\envs\py38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\setup.py'"'"'; file='"'"'C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\pip-egg-info'
cwd: C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py
Complete output (11 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\setup.py", line 29, in
import dependencies
File "C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\dependencies.py", line 23, in
from utils.dist import *
File "C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\utils\dist.py", line 108, in
SYSFACTS = SystemFacts()
File "C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\utils\dist.py", line 78, in init
self.family, self.version = platform.dist()[:2]
AttributeError: module 'platform' has no attribute 'dist'
When I install a new version of my app I get 2 entries in the add/remove control panel. How do I prevent this?
Hi. Didn`t find this feature. It woulld be very useful to collect all our company programs in one subdirectory.
_Shortcuts.Open
is not optional, but must be set to at least an empty list.
Works:
"_Shortcuts": [
{"Name": "WiX.Py",
"Description": "Cross-platform MSI builder",
"Target": "wix.py.exe",
"Open": [],
}
]
Crashes:
"_Shortcuts": [
{"Name": "WiX.Py",
"Description": "Cross-platform MSI builder",
"Target": "wix.py.exe",
}
]
Can't seem to add a subdirectory to the Program Files path
eg. "_InstallDir": "foo/bar"
Results in installer error code 2714
Subj
Subj
Hi,
I have installed wix.py using the Windows msi installer.
When I run this command “wix.py msi.json” I get the following error:
Traceback (most recent call last):
File "wix.py", line 32, in
File "wixpy_init_.pyc", line 44, in
File "wixpy\model.pyc", line 22, in
File "wixpy\msi.pyc", line 28, in
File "wixpy\libmsiw.pyc", line 21, in
File "_msi.pyc", line 12, in
File "_msi.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.
My msi.json file looks like this:
{
"Name": "MyApp",
"UpgradeCode": "3AC4B4FF-19C5-4B8F-83AD-BAC3238BF690",
"Version": "1.0",
"Manufacturer": "MyCompany",
"_SourceDir": "./program",
"_InstallDir": "myapp-1.0",
"_OutputName": "myapp-1.0-win32.msi",
"_OutputDir": "./"
}
Could you help me out? Thank you in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.