operatorequals/httpimport

AttributeError - unlcear how to import a Class from a module

cforce opened this issue · 6 comments

cforce commented

unable to get followig imported https://github.com/rosomri/atlassian-python-api imported via

with httpimport.github_repo('rosomri', 'atlassian-python-api', ref='confluence_bugfix_export_pdf'):
import atlassian

Traceback (most recent call last):
File "C:\develop\git\scripts\collectors\confluence.py", line 213, in
confluence = connect_to_confluence(args.cf_url, args.cf_user, args.cf_token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\develop\git\scripts\collectors\confluence.py", line 48, in connect_to_confluence
return atlassian.Confluence(
^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'atlassian' has no attribute 'Confluence'

What i am doing wrong?

Hey @cforce 🙃
I really don't see what this happens in first glance.
Can you provide the version of the module you are using?

cforce commented

i am using the latest of everything