Page 1 of 2

[RESOLVED] Deployment issue

Published: August 31, 2021 - 11:22
by Scud
Good morning,
I hope I'm in the right section, if not please move my topic.

I need help with a simple deployment.
I created a package that copies an .ico file to the computer's Windows folder, then creates a desktop shortcut to a URL, associating the previously copied icon with it. On my server (Windows Server 2012 R2), everything works from PyScripter. But when I try to deploy my package on my test machine, I always get an error, and neither copying the icon nor creating the shortcut works.

Code: Select all

from setuphelpers import *
uninstallkey = []
def install():
	filecopyto('chemindepartagedemonicone',makepath('C:','Windows'))
	create_shortcut(makepath(common_desktop(),ur"lien.url"),target='http://monlienweb',icon=makepath('C:','Windows','monicone.ico'))
The code is quite simple, but I can't deploy it. The error message is "missing dependencies: mypackagename"

Does anyone have any ideas?
THANKS

Re: Deployment problem

Published: August 31, 2021 - 12:13
by Gaetan
Hello,
is it possible to also have the control file please?

Re: Deployment problem

Published: August 31, 2021 - 12:28
by Scud
Of course.
Thank you for your help.

Code: Select all

package           : MonPaquet
version           : 0-4
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Domaine ADMINISTRATEUR
description       : Créer l'îcone sur le bureau
depends           : 
conflicts         : 
maturity          : DEV
locale            : 
target_os         : 
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    :
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 1e256ec9-d2c7-444f-a729-fff88a3485c1
valid_from        : 
valid_until       : 
forced_install_on : 
signer            : MASOCIETE
signer_fingerprint: f9f318bb55a4e9a4de6fbd8ad0a73d9d32022145e6a244f01503a2c5884f4df1
signature         : j1sjpRRd0F62P0tKmfvYz/EeRDzRMoaGErYhrW1Cwq0manOtoCw8N+xoCNB1eFljVLhCum5nUgU0pCw+44TlnHVKjAnhF4770r6sfSC0rdfs//pNQo+qjLkh10x9aAZ4g4k0GFOZwAgxmMTG2f7GfnhxCwWm+jJW+SfQPsD9KVhztE3PYunxa7GPn+OimhokJCD3uPswiyE/9OEI7jh9/SpTVMdhLJDf17+33WFnC9yv1RoHS1jcROCboAYFCGIxvJ7AxtRpAbIYzOaasmRMg6aX9F1SFySxHeMFGDmLPoaPg98le4pk1irPUShqh3safxwXSwO4j4sFbZZ2SknADQ==
signature_date    : 2021-08-31T10:33:31.048000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,signer,signer_fingerprint,signature_date,signed_attributes

Re: Deployment problem

Published: August 31, 2021 - 12:32
by Gaetan
Is it possible to get the full error from the console as well, because I don't see it that way.

Re: Deployment problem

Published: August 31, 2021 - 1:41 PM
by Scud
Here are all the logs I could find:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 3704, in install_wapt
    raise EWaptUnavailablePackage('Missing dependencies: %s' % (','.join(missing_depends,)))
EWaptUnavailablePackage: Missing dependencies: MonPaquet
EWaptUnavailablePackage: Missing dependencies: MonPaquet





Installing 24E30E4C-32DF-11B2-A85C-E967E00E6C6B

Installing 24E30E4C-32DF-11B2-A85C-E967E00E6C6B(=13)

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1711, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 559, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1017, in _run
    self.result.get('errors',[])))
Exception: Erreur lors de l'installation de [u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B']: erreurs dans les paquets [[PackageRequest(package=u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.19041'),max_os_version=Version('10.0.19041')), PackageEntry(u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',u'13' ), u'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4855, in install\n    force=force\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3934, in install_wapt\n    raise e\nEWaptUnavailablePackage: Missing dependencies: MonPaquet\n']]

Exception: Erreur lors de l'installation de [u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B']: erreurs dans les paquets [[PackageRequest(package=u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.19041'),max_os_version=Version('10.0.19041')), PackageEntry(u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',u'13' ), u'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4855, in install\n    force=force\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3934, in install_wapt\n    raise e\nEWaptUnavailablePackage: Missing dependencies: MonPaquet\n']]
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1711, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 559, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1017, in _run
    self.result.get('errors',[])))
Exception: Erreur lors de l'installation de [u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B']: erreurs dans les paquets [[PackageRequest(package=u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.19041'),max_os_version=Version('10.0.19041')), PackageEntry(u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',u'13' ), u'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4855, in install\n    force=force\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3934, in install_wapt\n    raise e\nEWaptUnavailablePackage: Missing dependencies: MonPaquet\n']]

Re: Deployment problem

Published: August 31, 2021 - 2:05 PM
by Gaetan
In view of the errors, a dependency package named
MyPackage
is missing.

Re: Deployment problem

Published: August 31, 2021 - 3:41 PM
by Scud
This is precisely the package I created and am trying to install.
That's what I don't understand.

My method:
In the WAPT console, I go to Tools, then Generate a package template.
- I don't include an installer (since there isn't one)
- I name my package: MyPackage
- Maturity: DEV
- leave everything else blank, then click Create and Edit.

Next, I add the code I posted in my first message to the setup.py file.
I test everything by right-clicking on the install section of the Run Configurations menu.
And since it works, I right-click on -i build -upload.

My package is then in my private repository.
In the inventory tab, I select my test machine and then Add Dependency.
In the inventory tab, I select my test machine again and then Run Installations.

And that's where I get the errors and it won't install.
Where is my mistake (hoping there is only one :D )?

Re: Deployment problem

Published: August 31, 2021 - 4:40 PM
by Gaetan
Trying to upload it from the console?

https://www.wapt.fr/fr/doc/wapt-create- ... apt-server

Otherwise, it means the package doesn't have permission to see the package, due to one of the filters in the control file

Re: Deployment problem

Published: September 1, 2021 - 9:58 AM
by Scud
Gaetan wrote: August 31, 2021 - 4:40 PM Trying to upload it from the console?
Thanks for your replies, but I don't have the same version as you. I'm on Wapt Community 1.8.2.73.73
So I don't have the same option.
Gaetan wrote: August 31, 2021 - 4:40 PM Otherwise, it means the package doesn't have permission to see the package, one of the filters in the control file
I didn't quite understand that part :? :lol:

Re: Deployment problem

Published: September 1, 2021 - 10:00 AM
by Gaetan
Gaetan wrote: August 31, 2021 - 4:40 PM Trying to upload it from the console?

https://www.wapt.fr/fr/doc/wapt-create- ... apt-server

Otherwise, it means the package doesn't have permission to see the package, one of the filters in the control file