JuliaPy / JuliaPy/PyCall.jl

`pyimport_conda` doesn't seem to handle superseded packages correction.

オープン
#640 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Julia
スター
1.5k
フォーク
186
PR マージ指標
30日以内にマージされた PR はありません

説明

Recently the main conda channel added keras-2.2.4, but some of our internal legacy code requires 1.2.2. As a result, we've been getting this superseded notice:

```
The following packages will be SUPERSEDED by a higher-priority channel:

keras pkgs/main::keras-2.2.4-0 --> conda-forge::keras-1.2.2-py27_0
```

Normally this isn't an issue, but it `pyimport_conda` doesn't seem to finding the downgraded version:

```
)
ImportError('cannot import name activity_l1l2',)
File "/root/.julia/v0.6/Conda/deps/usr/lib/python2.7/site-packages/private-package/__init__.py", line 15, in
from private-package.main import run
File "/root/.julia/v0.6/Conda/deps/usr/lib/python2.7/site-packages/private-package/main.py", line 7, in
...
from keras.regularizers import activity_l1l2 # l1l2 for weight regularization
```

It seems that simply re-loading the package that's using `pyimport_conda` in the `__init__` resolves the issue.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。