Miniconda Package

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

August 17, 2017 - 1:25 PM

Good morning,
I would like to create a package for the "Continuum Anaconda" software, but I keep getting the following error:

Installing dst-anaconda3
Exception: Error during install of dst-anaconda3 (=4.4.0-4): errors in packages [[u'dst-anaconda3 (=4.4.0-4)', PackageEntry('dst-anaconda3','4.4.0-4')]]
Traceback (most recent call last):
File "C:\wapt\waptservice\waptservice.py", line 2100, in run
self.running_task.run()
File "C:\wapt\waptservice\waptservice.py", line 1360, in pwrapper
return func(*arg, **kwargs)
File "C:\wapt\waptservice\waptservice.py", line 1420, in run
self._run()
File "C:\wapt\waptservice\waptservice.py", line 1844, in _run
self.result.get('errors',[])))
Exception: Error during install of dst-anaconda3 (=4.4.0-4): errors in packages [[u'dst-anaconda3 (=4.4.0-4)', PackageEntry('dst-anaconda3','4.4.0-4')]]


Here is the install() function from my setup.py:

Code: Select all

def install():
    if iswin64():
        print('Installation de dst-anaconda3-x64')
        install_exe_if_needed("Anaconda3-4.4.0-Windows-x86_64.exe",'/S',key='Anaconda',min_version='4.4.0')
The switch for silent installation is presumably /S: https://conda.io/docs/help/silent.html

On the other hand, I understand that I then need to run the following command to install the Spyder editor: "conda install -c anaconda spyder". Can I simply run this command with run()?
Last edited by gaelds on August 30, 2017 - 5:00 PM, edited 1 time.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 17, 2017 - 4:26 PM

Can you provide us with the packet error?

https://www.wapt.fr/fr/doc/Utilisation/ ... et-general
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

August 18, 2017 - 08:07

Here is the error on the console:

Code: Select all

Installation de dst-anaconda3-x64
TimeoutExpired: Command '"Anaconda3-4.4.0-Windows-x86_64.exe" /InstallationType=AllUsers /RegisterPython=1 /S' timed out after 300 seconds with output ''
Same error with only /S instead of " /InstallationType=AllUsers /RegisterPython=1 /S".

EDIT:
However, I just tested it and the installation works with a simple run():

Code: Select all

run(r'"Anaconda3-4.4.0-Windows-x86_64.exe" /InstallationType=AllUsers /RegisterPython=1 /S')
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 18, 2017 - 4:37 PM

Strange, it's exactly the same command!

https://github.com/tranquilit/WAPT/blob ... s.py#L3776


I'm thinking it's more likely an application that doesn't support installation under the system account!
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

August 21, 2017 - 08:08

Yes, it's possible; with the simple run, the app installs, but to make the different "packages" of Anaconda like Spyder work without errors, you need to run the command "conda update -all".
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

August 30, 2017 - 5:02 PM

I'd like to use the smp-miniconda package and then install Spyder. Has anyone ever installed Spyder with WAPT?
Manually, you have to launch the Anaconda console, type the command "conda install spyder", and then press 'Y'. I don't know how to do that in setup.py...

And another problem: I have the impression that Miniconda isn't installed correctly, because when I launch Spyder, I get the message "kernel is dead, restart" repeatedly in one of the editor windows.
Locked