我正在尝试遵循https://github.com/bluejeans/api-rest-meetings/blob/master/libs/python/docs/MeetingApi.md#create_meeting上的示例。在我的Django项目中,我已经安装了BlueJeansMeetingsRestApi
:
(lucy-web-CVxkrCFK) bash-3.2$ pip freeze | grep BlueJeans
BlueJeansMeetingsRestApi==1.0.0
但是,在Django shell中,如果我尝试实例化AttributeError
,则会得到一个ScheduleMeetingMinComp
:
(lucy-web-CVxkrCFK) bash-3.2$ python manage.py shell
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import BlueJeansMeetingsRestApi
In [2]: BlueJeansMeetingsRestApi.ScheduleMeetingMinComp()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-930a0192e730> in <module>()
----> 1 BlueJeansMeetingsRestApi.ScheduleMeetingMinComp()
AttributeError: module 'BlueJeansMeetingsRestApi' has no attribute 'ScheduleMeetingMinComp'
In [3]:
在git储存库中,此类似乎是在模块https://github.com/bluejeans/api-rest-meetings/blob/master/libs/python/BlueJeansMeetingsRestApi/models/schedule_meeting_min_comp.py中定义的。但是,在我的virtualenv中,没有这样的模块:
Kurts-MacBook-Pro-2:models kurtpeek$ pwd
/Users/kurtpeek/.local/share/virtualenvs/lucy-web-CVxkrCFK/src/bluejeansmeetingsrestapi/BlueJeansMeetingsRestApi/models
Kurts-MacBook-Pro-2:models kurtpeek$ ls *py
__init__.py grant_refresh_scope.py
analytics_endpoint_distribution.py grant_request_client.py
analytics_endpoint_distribution_distribution.py grant_request_code.py
analytics_feedback_comments.py grant_request_meeting.py
analytics_feedback_comments_comments.py grant_request_password.py
analytics_feedback_scores.py grant_request_refresh.py
analytics_roi_data.py grant_request_revoke.py
analytics_roi_data_roi_ranges.py granted_applications.py
analytics_top_users.py inline_response_200.py
analytics_top_users_usage.py layout.py
analytics_usage.py meeting.py
analytics_usage_usage.py meeting_advanced_meeting_options.py
application.py meeting_extended_indigo.py
application_secret.py meeting_history.py
attendee.py meeting_history_leader_info.py
content.py meeting_history_participant_list.py
content_content_properties.py meeting_history_sharing.py
content_content_properties_levels.py meeting_indigo.py
dialout_pstn.py meeting_indigo_list.py
endpoint.py meeting_state.py
endpoint_indigo.py meeting_state_recordinginfo.py
endpoint_indigo_endpoint_attributes1.py numbers.py
endpoint_indigo_location.py numbers_label.py
endpoint_indigo_summary_stats.py numbers_numbers.py
endpoint_indigo_traceroute.py pairing_code_sip.py
endpoint_indigo_traceroute_trace_path.py pairing_code_sip_turnservers.py
endpoints.py pairing_code_web_rtc.py
endpoints_inner.py partition.py
endpoints_inner_connections.py payload_dialout.py
enterprise.py payload_invite.py
enterprise_user_list.py payload_meeting_state.py
enterprise_user_list_users.py payload_pairing_code_pstn.py
error.py payload_pairing_code_sip.py
grant_client.py payload_pairing_code_web_rtc.py
grant_client_scope.py recording.py
grant_code.py recording_history.py
grant_code_scope.py recording_history_list.py
grant_code_scope_app_permissions.py recording_recording_chapters.py
grant_meeting.py recording_session.py
grant_meeting_scope.py recording_session_started_by.py
grant_meeting_scope_meeting.py recording_summary.py
grant_password.py room.py
grant_password_scope.py user.py
grant_refresh.py user_id.py
Github仓库似乎不合时宜吗?
更新
我知道Git项目URL的后缀@pip-repo
是对pip-repo
分支的引用。如果浏览到https://github.com/bluejeans/api-rest-meetings/tree/pip-repo/BlueJeansMeetingsRestApi/models,我发现它与master
明显“不同步”:
此外,缺少schedule_meeting_min_comp.py
模块,从而确认了AttributeError
的来源。