attributeerror

    5熱度

    2回答

    所以這個Python問題一直給我帶來問題,因爲我已經嘗試將代碼重構爲不同的文件。我有一個名爲object.py文件,並在它的相關的代碼是: class Object: #this is a generic object: the player, a monster, an item, the stairs... #it's always represented by a character o

    1熱度

    1回答

    我堅持在這裏...... 連接到T3://本地主機:7001用戶ID的WebLogic ... 成功連接到管理服務器 'examplesServer' 屬於域 'wl_server' 。 警告:使用不安全的協議連接到 服務器。爲確保線上安全,應該使用SSL端口或 管理端口。 [MBeanServerInvocationHandler的] com.bea:名稱= mainWebApp,類型= App

    2熱度

    1回答

    # sshpy v1 by s0urd # simple ssh client # irc.gonullyourself.org 6667 #code import paramiko import os ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) priv

    1熱度

    1回答

    我有一個程序,在Py2.4中運行桃色。我導入TobiiPlugin.dll文件,然後運行我的腳本。 import TobiiPlugin as tobii tobii.setGazeSubjectProfile(3, 0) 然而,當我移動代碼Py2.5它衝我發火,我也得到 Traceback (most recent call last): File "C:\tobiiDll\To

    5熱度

    2回答

    我使用的是測試服務器時,它給了我下面的異常從閱讀本回溯測試Django項目 Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py", line 280, in run self.result = application(self.environ, s

    2熱度

    3回答

    Python noob試圖學習塔。我使用的是1.0文檔中的QuickWiki教程(http://pylonshq.com/docs/en/1.0/tutorials/quickwiki_tutorial/),但這個所謂的「1.0」文檔似乎只是「0.9.7」;我懷疑這與我得到的錯誤有關。 當我執行 「貼紙設置 - 應用程序development.ini」,我得到這個: (mydevenv)[emai

    3熱度

    1回答

    我無法理解python中的問題。我有這樣的代碼: class Rain: def __init__(self): self.x = random.randint(0, Core.Utils.ScreenResolutionX) print type(Core.Utils.ScreenResolutionX) # prints int print Cor

    9熱度

    1回答

    我嘗試運行 #!/usr/bin/env python import os from numpy import * b= ones((3, 3)) print b save('fff', b) a = load('fff.npy') print a.shape print 'fertig' ,但它提出: Traceback (most recent call last):

    2熱度

    1回答

    我得到一個屬性錯誤使用swig包裝一個c函數在python代碼中使用。我還有其他一些函數,旁邊的工作很好,但一些奇怪的原因,這一個將無法正常工作:/ 我想用CGAL來確定所有粒子(chap)的凸殼。以下是chap功能和回溯: std::vector<Vec2d> World::chap() const { std::vector<Point_2> ch; std::vecto

    0熱度

    1回答

    客戶發現這個錯誤,我的軟件使用Python 2.5.5。怎麼會這樣? _empty是否已從隊列中消失?我根本不明白這一點。我沒有從隊列繼承,只有Queue類的普通實例。在我的機器上似乎工作正常,但是,在客戶的機器上出現錯誤。任何人都可以給我一些建議,問題可能是什麼? 問題曾經發生在這裏:put_nowait,QSIZE,得到: import Queue self.requests.mutex.