Giter Site home page Giter Site logo

wixpy's People

Contributors

insolor avatar sk1project avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wixpy's Issues

Python 3: ModuleNotFoundError: No module named 'gi'

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?

Implement pre and post install actions

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.

<MajorUpgrade>

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

AttributeError: module 'platform' has no attribute 'dist' (Python 3.8)

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'

Crash if _Shortcuts.Open is not given

_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",
       }
   ]

DLL load failed: The specified module could not be found.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.