TypeError: not all arguments converted during string formatting

I am trying to play with this simple python script to pull order data from my Shopify admin, but keep getting this error message (seems to be coming from line 6 (shop URL) as per terminal and sublime text) TypeError: not all arguments converted during string formatting:
Here is the script,

import shopify

API_KEY = ‘xxxxxxxxxxxxxxx’
PASSWORD = ‘xxxxxxxxxxx’
SHOP_NAME = ‘Shop name goes here’
shop_url = “https://xxxxxxxxxxxxx@xxxxxxxxxx.myshopify.com/admin” % (API_KEY, PASSWORD, SHOP_NAME)
shopify.ShopifyResource.set_site(shop_url)
shop = shopify.Shop.current()

order = shopify.Order()
num = order.count()
print num
success = order.find()
print success
der.save()
print success

1 Like

I suggest looking at how string interpolation works without any of the other code to distract you.

1 Like