alefiori82 / amazon-paapi5

Amazon Product Advertising API 5.0 wrapper for Python
MIT License
26 stars 4 forks source link

help #15

Closed enea1982 closed 1 year ago

enea1982 commented 1 year ago

guys to me from this mistake can you help me?

Status code: 401 Errors : {"type":"com.amazon.paapi5#InvalidSignatureException","Errors":[{"Code":"InvalidSignature","Message":"The request has not been correctly signed. If you are using an AWS SDK, requests are signed for you automatically; otherwise, go to https://webservices.amazon.com/paapi5/documentation/sending-request.html#signing."}]} Request ID: INFO:root:'NoneType' object is not iterable Error calling PA-API 5.0! Status code: 401 Errors : {"type":"com.amazon.paapi5#InvalidSignatureException","Errors":[{"Code":"InvalidSignature","Message":"The request has not been correctly signed. If you are using an AWS SDK, requests are signed for you automatically; otherwise, go to https://webservices.amazon.com/paapi5/documentation/sending-request.html#signing."}]} Request ID:b INFO:root:'NoneType' object is not iterable

alefiori82 commented 1 year ago

Enter the values of KEY, SECRET, TAG and COUNTRY correctly. Otherwise, the request cannot be processed by Amazon. The account must be enabled for Amazon API. This occurs after 3 confirmed purchases with your account. Verify that all these information are entered correctly in the code.

enea1982 commented 1 year ago

the tag what is username then there is another error this

Traceback (most recent call last): File "/home/demian82/Desktop/AmazonOffers-TelegramBot-main/bot.py", line 4, in from amazon_api import search_items File "/home/demian82/Desktop/AmazonOffers-TelegramBot-main/amazon_api.py", line 2, in from paapi5_python_sdk.models.partner_type import PartnerType ModuleNotFoundError: No module named 'paapi5_python_sdk.models'

enea1982 commented 1 year ago

Enter the values of KEY, SECRET, TAG and COUNTRY correctly. Otherwise, the request cannot be processed by Amazon. The account must be enabled for Amazon API. This occurs after 3 confirmed purchases with your account. Verify that all these information are entered correctly in the code.

if you can please help me install it thanks

enea1982 commented 1 year ago

now I get this error what does it mean ?

Traceback (most recent call last): File "/home/demian82/Desktop/AmazonOffers-TelegramBot-main/bot.py", line 4, in from amazon_api import search_items File "/home/demian82/Desktop/AmazonOffers-TelegramBot-main/amazon_api.py", line 2, in from paapi5_python_sdk.models.partner_type import PartnerType ModuleNotFoundError: No module named 'paapi5_python_sdk.models'

alefiori82 commented 1 year ago

You are using the sdk package not directly this wrapper. Follow the instructions to install and use my package correctly.

enea1982 commented 1 year ago

come facio ad inserire il tuo pacheto nel progeto di samir ?