0

I believe it's hard to understand the question, so I will give an example.

I have installed the Facebook SDK module which resides in site-packages. Now, in my app, I have the following structure:

/app
    main.py
    /wrappers
        __init__.py
        facebook_wrapper.py

In facebook_wrapper.py I include the Facebook SDK module with import facebook. The problem is that, when I try to use the imported module in facebook_wrapper.py (facebook.GraphAPI()), it gives me an error: AttributeError: 'module' object has no attribute 'GraphAPI'. What am I doing wrong?

linkyndy
  • 15,898
  • 18
  • 102
  • 187

0 Answers0