BingAds / BingAds-Python-SDK

Other
116 stars 162 forks source link

ImportError: No module named 'bulk_ad_group_negative_audience_association' #110

Closed jfscyberpub closed 5 years ago

jfscyberpub commented 5 years ago

For no reason, I got this error:

  File "/home/jonathan/projects/sites/tool/project/bing_ads/core.py", line 7, in <module>
    from bingads.v12.bulk import BulkServiceManager
  File "/home/jonathan/projects/venvs/tool/lib/python3.5/site-packages/bingads/v12/bulk/__init__.py", line 11, in <module>
    from .file_reader import *
  File "/home/jonathan/projects/venvs/tool/lib/python3.5/site-packages/bingads/v12/bulk/file_reader.py", line 2, in <module>
    from .entities.bulk_entity import BulkEntity
  File "/home/jonathan/projects/venvs/tool/lib/python3.5/site-packages/bingads/v12/bulk/entities/__init__.py", line 25, in <module>
    from .audiences import *
  File "/home/jonathan/projects/venvs/tool/lib/python3.5/site-packages/bingads/v12/bulk/entities/audiences/__init__.py", line 10, in <module>
    from .bulk_ad_group_negative_product_audience_association import *
  File "/home/jonathan/projects/venvs/tool/lib/python3.5/site-packages/bingads/v12/bulk/entities/audiences/bulk_ad_group_negative_product_audience_association.py", line 1, in <module>
    from bulk_ad_group_negative_audience_association import *
ImportError: No module named 'bulk_ad_group_negative_audience_association'

I have bingads==12.0.3

It works fine with bingads==12.0.2

Please advise

c0bra commented 5 years ago

Pretty shocking to have our production code suddenly break due to a patch-level update.

jfscyberpub commented 5 years ago

Thanks for your answer. Do you have a release date for this issue ?

c0bra commented 5 years ago

@jfscyberpub sorry to be confusing. I'm using this library like you; I'm not one of the developers.

jfscyberpub commented 5 years ago

@c0bra my bad. According to their past releases, the next one should be scheduled for February 10th but it seems there is no guarantee that they'll fix this one.

qitia commented 5 years ago

Thanks for reporting this. I will check and update.

qitia commented 5 years ago

Sorry this is my bad: The import statement in file bulk_ad_group_negative_in_market_audience_association should be 'from bingads.v12.bulk.entities.audiences.bulk_ad_group_negative_audience_association import *', but I missed the prefix (package) part; I just tested it with python 2.7 and this was not unveiled.

Thanks again for report. as a work around you could use a previous version 12.0.2.

I will try to publish a fix release ASAP. @jfscyberpub @c0bra @eric-urban

jfscyberpub commented 5 years ago

@qitia Thank you for the feedback.

qitia commented 5 years ago

Hot fix version 12.0.3.1 published for this issue. Please try it out. @jfscyberpub

jfscyberpub commented 5 years ago

@qitia It works. Thanks a lot.