question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

module initialization error: type object 'ShopifyResource' has no attribute '_url'

See original GitHub issue

The following code below is throwing the error: module initialization error: type object 'ShopifyResource' has no attribute '_url'

This code was working in the 4.0.0 release, seems like the newest release has a regression?

def get_shopify_shop():
    shop_url = "https://{}:{}@{}.myshopify.com/admin".format(config.SHOPIFY_API_KEY, config.SHOPIFY_PASSWORD, config.SHOPIFY_SHOP)
    shopify.ShopifyResource.set_site(shop_url)
    return shopify.Shop.current()

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
JesseTGcommented, Apr 16, 2019

Has it made its way to PyPI yet? I’m still only seeing 5.0.0.

3reactions
tylerballcommented, Apr 25, 2019

Sorry all! We had some issues with publishing the package, it’s available now https://pypi.org/project/ShopifyAPI/5.0.1/

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'module' object has no attribute 'url'
I have the following problem AttributeError: 'module' object has no attribute 'url'. its from the package cherrypy. On this line
Read more >
[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
Read more >
'module' object has no attribute in 3minutes - YouTube
"AttributeError: object has no attribute "Understand how to trouble shoot the error message. Examples used in the video:When you append a ...
Read more >
Python AttributeError — What is it and how do you fix it?
AttributeError: '***' object has no attribute '***'What is an AttributeError in Python? What can you do to fix it? When does it happen?...
Read more >
Python Shopify API Session Auth Error
Hi, I'm trying to use the Python Shopify API and in the initial stages of when the merchant is returned to the whitelisted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found