Errors

オープン
#195 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
22/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)
主要言語
Python
スター
1.4k
フォーク
917
平均マージ
3分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleworkspace/python-samples のほかの issue

googleworkspace/python-samples の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。