Closed sabotagebeats closed 2 years ago
after a uninstall and pip install -e .
$ pip uninstall ape-vyper ape-solidity
$ apt-get install git
$ git clone https://github.com/apeworx/ape-vyper
$ cd ape-vyper && pip install -e .
I do see the plugin in ape plugins list
root@b491be310717:/ape-vyper# ape plugins list
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
Installed plugins:
ape_vyper (0.1.0a6)
plugins are also not showing up when added with ape plugins add
>docker run -it sabotagebeats/eth-ape-test
root@b54e2eb6fda3:/# pip uninstall ape-vyper ape-solidity
Successfully uninstalled ape-solidity-0.1.0a1
root@b54e2eb6fda3:/# ape plugins list
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
INFO: No plugins installed
root@b54e2eb6fda3:/# ape plugins add solidity
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
Install unknown 3rd party plugin 'ape_solidity'? [y/N]: y
INFO: Installing ape_solidity...
root@b54e2eb6fda3:/# ape plugins add vyper
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
Install unknown 3rd party plugin 'ape_vyper'? [y/N]: y
INFO: Installing ape_vyper...
root@b54e2eb6fda3:/# ape plugins list
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
INFO: No plugins installed
This one is weird....
$ docker run -it sabotagebeats/eth-ape-test
root@abe22411a892:/# ape --version
0.1.0a15
root@abe22411a892:/# ape plugins list
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
INFO: No plugins installed
root@abe22411a892:/# pip freeze | grep ape
ape-solidity==0.1.0a1
ape-vyper==0.1.0a6
eth-ape==0.1.0a15
root@abe22411a892:/# ape plugins add solidity
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
Error: Cannot add 1st class plugin 'ape_solidity'
root@abe22411a892:/# ape plugins add vyper
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
Error: Cannot add 1st class plugin 'ape_vyper'
This makes sense, I don't think Docker can modify the image dynamically, at least not without additional configuration
$ docker run -it sabotagebeats/eth-ape-test
root@b54e2eb6fda3:/# pip uninstall ape-vyper ape-solidity
Successfully uninstalled ape-solidity-0.1.0a1
root@b54e2eb6fda3:/# ape plugins list
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
INFO: No plugins installed
root@b54e2eb6fda3:/# ape plugins add solidity
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
Install unknown 3rd party plugin 'ape_solidity'? [y/N]: y
INFO: Installing ape_solidity...
root@b54e2eb6fda3:/# ape plugins add vyper
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
Install unknown 3rd party plugin 'ape_vyper'? [y/N]: y
INFO: Installing ape_vyper...
root@b54e2eb6fda3:/# ape plugins list
WARNING: $GITHUB_ACCESS_TOKEN not set, skipping 2nd class plugins
INFO: No plugins installed
so I have been trying this
docker run -it -v $HOME/.ape:/root/.ape -v $HOME/.vvm:/root/.vvm -v $HOME/ape/vyper-token:/root/project -w /root/project apeworx/eth-ape-docker:0.1.0a22
but then still having the issue INFO: No plugins installed
I know at least the VVM plugin is installed however because I can compile vyper
so I have been trying this
docker run -it -v $HOME/.ape:/root/.ape -v $HOME/.vvm:/root/.vvm -v $HOME/ape/vyper-token:/root/project -w /root/project apeworx/eth-ape-docker:0.1.0a22
but then still having the issueINFO: No plugins installed
I know at least the VVM plugin is installed however because I can compile vyper
So, this sort of makes sense. I think the image is not saving the plugin install when using docker run
, and it has to be in the build file for the image
So, this sort of makes sense. I think the image is not saving the plugin install when using
docker run
, and it has to be in the build file for the image
oh hmm, maybe I can link the volume to the plugin install, is it not in .ape
?
So, this sort of makes sense. I think the image is not saving the plugin install when using
docker run
, and it has to be in the build file for the imageoh hmm, maybe I can link the volume to the plugin install, is it not in
.ape
?
The plugin install would be the python site packages folder, not the ape folder
let me play around trying to link that but i think it may break
Adding a comment about behavior discovered during plugin installation regarding GITHUB_ACCESS_TOKEN
environmental variable:
The ape plugins list
command won't list installed plugins without the GITHUB_ACCESS_TOKEN set
Plugins can be installed without it set, but do not show they were installed
This original issue is the same as this I am pretty sure: https://github.com/ApeWorX/ape/issues/229
It had to do with site-packages versus -e installs.
This issue has been resolved as of #230 .
Environment information
ape
and plugin versions:eth-ape 0.1.0a15
,ape-vyper 0.1.0a61,
ape-solidity 0.1.0a1after
pip install plugin-name`Python 3.8.10
What went wrong?
the plugins are not showing in
ape plugin list
but they are available and usable.Please include information like:
How can it be fixed?
The plugin registration system will need to be reworked I believe.