On Thursday, 29 January 2015 13:49:49 UTC, Gonzalo Peña-Castellanos wrote:
>
> Hi Dave
>
> Thanks for posting,
>
> I have fixed this bug in this PR (
> https://bitbucket.org/spyder-ide/spyderlib/pull-request/102/fix-conda-error
> )
>
> It should be merged soon ( *right Carlos :-)* ? )
>
> The fix is quite easy, you can see the changes I made in the PR.
>
> Of course it is a temporary fix. This plugin for now only uses
> the Continuum repositories (free and pro). This will be expanded
> to any channels the user wants to add. So in this case with this "fix"
> that package would simply not appear in the plugin.
>
> I appreciate any feedback I can get for users testing the latest
> development version.
>
> Cheers
>
> Gonzalo
>
Thanks for the quick response. I tried manually allpying your patch but ran
into another problem
With some debugging code around your patch:
```
# FIXME: Check what to do with different builds??
# For the moment here a set is used to remove duplicate versions
for n in self._packages_linked:
vals = self._packages_linked[n]
canonical_name = vals[-1]
current_ver = vals[1]
try:
# fix error when package installed from other channels
besides
# the standard ones
if n in self._packages_versions_number:
vers = self._packages_versions_number[n]
vers = sort_versions(list(set(vers)), reverse=True)
self._packages_upgradable[n] = not current_ver ==
vers[0]
self._packages_downgradable[n] = not current_ver ==
vers[-1]
except Exception:
exc_type, exc, tb = sys.exc_info()
msg = exc.message + '\n\n'
msg += "n = {}\n".format(n)
msg += "len(self._packages_upgradable) =
{}\n".format(len(self._packages_upgradable))
msg += "'llvmmath' in self._packages_upgradable =
{}\n".format('llvmmath' in self._packages_upgradable)
msg += "current_ver = {}\n".format(current_ver)
msg += "vers = {}\n".format(vers)
raise exc_type, exc_type(msg), tb
```
I get the below IndexError + debug info
```
Traceback (most recent call last):
File "C:\dev\code\spyderlib\spyderplugins\widgets\condapackagesgui.py",
line 1683, in _prepare_model
self._setup_data()
File "C:\dev\code\spyderlib\spyderplugins\widgets\condapackagesgui.py",
line 1829, in _setup_data
self._packages_upgradable[n] = not current_ver == vers[0]
IndexError: list index out of range
n = llvmmath
len(self._packages_upgradable) = 13
'llvmmath' in self._packages_upgradable = False
current_ver = 0.1.2
vers = []
```
I'm running the latest (as of a couple of days ago) version of numba,
installed with:
conda install -c numba numba
HTH,
Dave
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.