googleads / googleads-shopping-samples

Samples for the Content API for Shopping and the Manufacturer Center API
https://developers.google.com/shopping-content/
Apache License 2.0
193 stars 268 forks source link

ModuleNotFoundError: No module named 'shopping' #27

Open gjae opened 3 years ago

gjae commented 3 years ago

Reposted .

Hi there!. i've a problem with shopping module from google-api-python-client, i attempted create a new venv environment then reinstall the package, but not work

Environment details

Steps to reproduce

  1. source venv/bin/activate
  2. python3.8 insert-product.py -insert

Code example

from shopping.content import common

product = self.collection.find({"_id": mongoDB_ID }) 
product = list(product)
if len(product) > 0:
    uniqueId = common.get_unique_id()
    print(uniqueId)

Stack trace

Traceback (most recent call last):
  File "ovnix.py", line 10, in <module>
    from modules.modules import moduleRegisters as modules
  File "/var/www/html/.../venv/modules/modules.py", line 7, in <module>
    from .google_merchant_center.index import MerchantCenter
  File "/var/www/html/.../venv/modules/google_merchant_center/index.py", line 3, in <module>
    from shopping.content import common
ModuleNotFoundError: No module named 'shopping'

extras

pip freeze | grep -i google

google-api-core==1.30.0
google-api-python-client==2.9.0
google-auth==1.31.0
google-auth-httplib2==0.1.0
googleapis-common-protos==1.53.0

Thanks.

garyspx commented 2 years ago

Hi, how did you resolve this? i am stuck on the same problem.

gjae commented 2 years ago

@garyspx Its not resolved yet ...

Webmasterei commented 2 years ago

I have the same... with python 3.7 any solution yet?