My guess is that for some reason you have not installed python-amazon-product-api in your virtualenv.
Run the following command:
/path/to/your/virtual-env/bin/python -c "import amazonproduct"
Note: Use the binary from your virtual environment!
Pergunta
I'm trying to wrap my head around the amazon advertising api. I installed both lxml and python-amazon-product-api. I get the following error (code to follow): No module named amazonproduct.
In [1]: from amazonproduct import api
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/Users/XXXX/Projects/Python/XXXXX/XXXXXX/<ipython-input-1-c14d0f16852e> in <module>()
----> 1 from amazonproduct import api
ImportError: No module named amazonproduct
In [2]:
I'm trying to do this from inside of a virtualenv
Hopefully you guys can help! If i'm missing any info you need please let me know.
Regards, Kelvin
EDIT:
(xxxx)new-host:bin Kelvin$ /Users/Kelvin/virtualenvs/xxxx/bin/python -c "import amazonproduct"
(xxxx)new-host:bin Kelvin$
Solução
My guess is that for some reason you have not installed python-amazon-product-api in your virtualenv.
Run the following command:
/path/to/your/virtual-env/bin/python -c "import amazonproduct"
Note: Use the binary from your virtual environment!