Open MarkWClements-zz opened 2 years ago
Possible solution: 1) Put .env into \Lib\site-packages\coingecko_py 2) Put the repo folder into working directory (the one the script runs from) 3) Edit .env to setup a proper local directory where repo resides.
For instance, I put repo in "git" folder and set SWAGGER_DATA_PATH = "git/coingecko_py/swagger_data/", SWAGGER_CLIENT_PATH = "git/coingecko_py/swagger_generated/" and so on.
I installed
coingecko_py
using poetry v.1.1.13 on OSX 12.4 inside of a conda v.4.13.0 environment (coingecko_data
) with the following package structurethat lives here
(coingecko_data) ~/Code/quant_strategies/crypto_data/coingecko_data/
However, when I attempt to run
get_data_cg.py
I get the following error:
It seems that
coingecko_py
can't find these paths, which are specified in thecoingecko_py/.env
file in the repo. However, this file does not exist in the conda environment folder:/opt/anaconda3/envs/coingecko_data/lib/python3.9/site-packages/coingecko_py/
when I installed
coingecko_py
into mycoingecko_data
conda environment and package directory structure above usingpoetry add coingecko_py
.I would like to be able to install
coingecko_py
in mycoingecko_data
conda environment in the abovepoetry
package structure but it seems that there are issues with this out of the box? Am I missing something here? Any help you could provide to get this code working in my setup would be very much appreciated.Thank You,
Mark