Errors

Đang mở
#195 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
22/100
Loại issue
Tài liệu
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

The traceback shows the user's script is named email.py, which shadows Python's standard email package that http.client imports during the googleapiclient import. Check the report's file name and the import chain against that collision, not the sample code. The issue gives no requested change and has no replies after 2060 days, so a newcomer would first need a maintainer decision on whether to add a note or leave it closed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Expected Behavior

Send email

Actual Behavior

Errors given by terminal:
python email.py
Traceback (most recent call last):
File "/home//email.py", line 18, in
from googleapiclient.discovery import build
File "/home//.local/lib/python3.9/site-packages/googleapiclient/discovery.py", line 32, in
from six.moves import http_client
File "/usr/lib/python3.9/site-packages/six.py", line 92, in get
result = self._resolve()
File "/usr/lib/python3.9/site-packages/six.py", line 115, in _resolve
return _import_module(self.mod)
File "/usr/lib/python3.9/site-packages/six.py", line 82, in _import_module
import(name)
File "/usr/lib64/python3.9/http/client.py", line 71, in
import email.parser
File "/home/harshavardhana/email.py", line 18, in
from googleapiclient.discovery import build
ImportError: cannot import name 'build' from partially initialized module 'googleapiclient.discovery' (most likely due to a circular import) (/home//.local/lib/python3.9/site-packages/googleapiclient/discovery.py)

Specifications

  • Python version (python --version)
  • OS (Linux)
Ngôn ngữ chính
Python
Star
1.4k
Fork
917
Merge trung bình
3 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googleworkspace/python-samples

Tất cả issue của googleworkspace/python-samples

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.