cost 255 ms
在 python 上安裝 streamlit 庫后,出現屬性錯誤:模塊“plotly.graph_objs.layout.template.data”沒有屬性“Icicle”

[英]After installing streamlit library on python, I am getting Attribute error : module 'plotly.graph_objs.layout.template.data' has no attribute 'Icicle'

在 python 上成功安裝 streamlit 庫但運行后, 我收到屬性錯誤:模塊“plotly.graph_objs.layout.template.data”沒有屬性“Icicle” 請告訴 git 如何擺脫這個錯誤 ...

AttributeError: 'NoneType' object 沒有屬性 'text'(使用請求和 BeautifulSoup)

[英]AttributeError: 'NoneType' object has no attribute 'text' (USING requests AND BeautifulSoup)

我正在制作一個程序,使用請求和 BeautifulSoup 查找某個地方的溫度。每當我運行代碼時,我都會收到此錯誤: 我試過更改 class_ 部分,但它總是給出相同的錯誤。 ...

在沒有命令的情況下嘗試異步 def discord.py 時發生錯誤。 如何執行異步定義?

[英]An error occurred when trying to async def discord.py without a command. How to perform async def?

如何在沒有命令的情況下執行功能,為什么會出現此錯誤? 給我一個錯誤......我該如何修復它或者我應該使用什么代碼我根本不明白) Traceback (most recent call last): File "C:\Users\Monik\PycharmProjects\DiscordBuy\c ...

為什么我打包的鰻魚應用程序執行失敗:AttributeError: 'NoneType' object has no attribute 'write'

[英]Why my packaged eel app failed to execute : AttributeError: 'NoneType' object has no attribute 'write'

我在嘗試執行我的 app.exe 時一直收到此錯誤(使用 python -m eel [your_main_script] [your_web_folder] --onefile --noconsole 生成) 我的代碼太長,無法在此處發布。 這是在試圖執行應用程序時拋出的完整未處理異常 我的庫已 ...

為什么要導入<package>不工作,但進口<package.submodule>工作?</package.submodule></package>

[英]Why does import <package> not work ,but import <package.submodule> work?

我正在嘗試使用一個名為 nilearn 的 python nilearn ,但我認為這個問題可能會更普遍地發生,我只是想了解為什么會發生這種情況。 如果有任何進一步的參考資料可以幫助我更深入地了解正在發生的事情,我將不勝感激。 nilearn 介紹教程中的第一個說明是 如果我嘗試運行它,我會收到 ...

'AgencyRegistration' object 沒有屬性 'get'

[英]'AgencyRegistration' object has no attribute 'get'

我正在嘗試使用 Django REST 框架創建端點,但是當我嘗試從端點獲取數據時出現以下錯誤:AttributeError: 'AgencyRegistration' object 沒有屬性 'get'。 這是我的代碼模型.py 視圖.py 序列化器.py 網址.py ...

Pandas dataframe:“系列”object 在 groupby 上沒有屬性“stack”(多於 1 組)

[英]Pandas dataframe : 'Series' object has no attribute 'stack' on a groupby (more then 1 group)

我面臨一個“系列”object 沒有屬性“堆棧”,但這並不總是發生在我的數據集上。 沒有找出根本原因。 有時工作正常,有時面臨問題...... 這是查詢:within var_max_num_by_grpby = 50 df1['counterA'] = (df1.groupby(['id_typ ...

Ez_Setup 錯誤“AttributeError:模塊‘collections’沒有屬性‘MutableMapping’”

[英]Ez_Setup error 'AttributeError: module 'collections' has no attribute 'MutableMapping''

我下載了腳本 ez-setup ( https://bootstrap.pypa.io/ez_setup.py )。 但是每當我嘗試運行它時,我都會收到錯誤消息“AttributeError: module 'collections' has no attribute 'MutableMappin ...

AttributeError: 'Adam' object 沒有屬性 'build'

[英]AttributeError: 'Adam' object has no attribute 'build'

創建分類 model 后,我需要使用 k-Cross Fold 驗證,但我不斷收到此錯誤:AttributeError: 'Adam' object 沒有屬性 'build'。 我該如何解決這個問題? 您可以在下面找到完整的錯誤: 該程序似乎正在嘗試使用“copy.deepcopy”創建 Kera ...

python 創建文件和使用文件時僅通過其名稱(如“sample.txt”)而不是通過給它路徑(使用 vs 代碼)來使用文件時出現問題

[英]python problem creating file and using file by its name only like 'sample.txt' not by giving it path (using v s code)

在此處輸入圖像描述每次我嘗試使用 python 中的文件時,使用它的名稱如“sample.txt”,終端顯示沒有這樣的文件或目錄來解決它,我必須提供它的文件路徑,然后它才有效解決問題並為我提供一些步驟,通過這些步驟我下次肯定可以避免這個問題並閱讀終端並提供它顯示的原因 AttributeError: ...

有沒有辦法不調用連接命令就可以播放音頻? (pycord)

[英]Is there a way to play audio without calling the connect command? (pycord)

在我的實現中,每當我在機器人連接到語音通道時調用 play 方法時,它都會拋出錯誤。 但是,官方文檔,包括有關此事的其他視頻,都使用相同的方法。 我發現的主要原因是調用connect 方法是必要的,因為它將 'voice' 視為VoiceProtocol ,這對於使用play 方法播放音頻是進一步 ...

AttributeError: 模塊 'openai' 沒有屬性 'GPT'

[英]AttributeError: module 'openai' has no attribute 'GPT'

我有最新版本的 OpenAi,但缺少某些屬性。 我試過重新安裝它,沒有解決它。 GPT 和 Chat 是我發現還沒有用的。 請記住,我是 python 的新手,並且具有該語言的基本知識。 代碼取自GitHub 我的代碼如果它告訴你一些事情: 所有幫助將不勝感激編輯: 最后一個答案使錯誤 go 消 ...

使用 SAM 在 Git Actions 中構建項目,我收到新錯誤:AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

[英]Build the project in Git Actions using SAM, I am getting new error: AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

我正在使用 Python 3.9,我正在嘗試在 Git Actions 中構建代碼。 我今天看到這個新錯誤。直到 12 月 30 日,我在構建相同代碼時沒有遇到任何問題。 我沒有明確使用任何 PyOpenSSL 包/密碼學 package。所以它不是代碼問題。 但是,我嘗試降級和升級 Pyopen ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM