Page 1 of 1

Miniconda Package

Published: August 17, 2017 - 1:25 PM
by gaelds
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()?

Re: Anaconda Package

Published: August 17, 2017 - 4:26 PM
by sfonteneau
Can you provide us with the packet error?

https://www.wapt.fr/fr/doc/Utilisation/ ... et-general

Re: Anaconda Package

Published: August 18, 2017 - 08:07
by gaelds
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')

Re: Anaconda Package

Published: August 18, 2017 - 4:37 PM
by sfonteneau
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!

Re: Anaconda Package

Published: August 21, 2017 - 08:08
by gaelds
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".

Re: Miniconda Package

Published: August 30, 2017 - 5:02 PM
by gaelds
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.