durusmail: durus-users: apparently random bug in durus
apparently random bug in durus
2010-06-21
2010-06-21
2010-06-21
2010-06-22
2010-06-22
2010-06-25
2010-06-25
2010-06-25
2010-06-25
2010-06-28
2010-06-28
2010-06-29
Python 2.7+ (Re: apparently random bug in durus)
2010-06-29
2010-06-28
2010-06-29
2010-06-29
2010-06-29
2010-06-29
2010-06-29
2010-06-30
2010-06-30
2010-06-30
2010-06-30
2010-06-30
2010-07-01
apparently random bug in durus
Alex Hall
2010-06-21
On 6/21/10, Binger David  wrote:
> Hi Alex,
>
> Please start python with the -v flag,
> type "import durus.persistent_dict"
> and send me the output.
I have pasted it right from the Python shell.

# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# C:\python26\lib\site.pyc matches C:\python26\lib\site.py
import site # precompiled from C:\python26\lib\site.pyc
# C:\python26\lib\os.pyc matches C:\python26\lib\os.py
import os # precompiled from C:\python26\lib\os.pyc
import errno # builtin
import nt # builtin
# C:\python26\lib\ntpath.pyc matches C:\python26\lib\ntpath.py
import ntpath # precompiled from C:\python26\lib\ntpath.pyc
# C:\python26\lib\stat.pyc matches C:\python26\lib\stat.py
import stat # precompiled from C:\python26\lib\stat.pyc
# C:\python26\lib\genericpath.pyc matches C:\python26\lib\genericpath.py
import genericpath # precompiled from C:\python26\lib\genericpath.pyc
# C:\python26\lib\warnings.pyc matches C:\python26\lib\warnings.py
import warnings # precompiled from C:\python26\lib\warnings.pyc
# C:\python26\lib\linecache.pyc matches C:\python26\lib\linecache.py
import linecache # precompiled from C:\python26\lib\linecache.pyc
# C:\python26\lib\types.pyc matches C:\python26\lib\types.py
import types # precompiled from C:\python26\lib\types.pyc
# C:\python26\lib\UserDict.pyc matches C:\python26\lib\UserDict.py
import UserDict # precompiled from C:\python26\lib\UserDict.pyc
# C:\python26\lib\_abcoll.pyc matches C:\python26\lib\_abcoll.py
import _abcoll # precompiled from C:\python26\lib\_abcoll.pyc
# C:\python26\lib\abc.pyc matches C:\python26\lib\abc.py
import abc # precompiled from C:\python26\lib\abc.pyc
# C:\python26\lib\copy_reg.pyc matches C:\python26\lib\copy_reg.py
import copy_reg # precompiled from C:\python26\lib\copy_reg.pyc
# C:\python26\lib\locale.pyc matches C:\python26\lib\locale.py
import locale # precompiled from C:\python26\lib\locale.pyc
import encodings # directory C:\python26\lib\encodings
# C:\python26\lib\encodings\__init__.pyc matches C:\python26\lib\encodings\__ini
t__.py
import encodings # precompiled from C:\python26\lib\encodings\__init__.pyc
# C:\python26\lib\codecs.pyc matches C:\python26\lib\codecs.py
import codecs # precompiled from C:\python26\lib\codecs.pyc
import _codecs # builtin
# C:\python26\lib\encodings\aliases.pyc matches C:\python26\lib\encodings\aliase
s.py
import encodings.aliases # precompiled from C:\python26\lib\encodings\aliases.py
c
# C:\python26\lib\functools.pyc matches C:\python26\lib\functools.py
import functools # precompiled from C:\python26\lib\functools.pyc
import _functools # builtin
import _locale # builtin
# C:\python26\lib\re.pyc matches C:\python26\lib\re.py
import re # precompiled from C:\python26\lib\re.pyc
# C:\python26\lib\sre_compile.pyc matches C:\python26\lib\sre_compile.py
import sre_compile # precompiled from C:\python26\lib\sre_compile.pyc
import _sre # builtin
# C:\python26\lib\sre_parse.pyc matches C:\python26\lib\sre_parse.py
import sre_parse # precompiled from C:\python26\lib\sre_parse.pyc
# C:\python26\lib\sre_constants.pyc matches C:\python26\lib\sre_constants.py
import sre_constants # precompiled from C:\python26\lib\sre_constants.pyc
import operator # builtin
# C:\python26\lib\encodings\cp1252.pyc matches C:\python26\lib\encodings\cp1252.
py
import encodings.cp1252 # precompiled from C:\python26\lib\encodings\cp1252.pyc
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import durus.persistent_dict
# C:\python26\lib\encodings\cp437.pyc matches C:\python26\lib\encodings\cp437.py

import encodings.cp437 # precompiled from C:\python26\lib\encodings\cp437.pyc
import durus # directory C:\python26\lib\site-packages\durus
# C:\python26\lib\site-packages\durus\__init__.pyc matches C:\python26\lib\site-
packages\durus\__init__.py
import durus # precompiled from C:\python26\lib\site-packages\durus\__init__.pyc

# C:\python26\lib\site-packages\durus\persistent_dict.pyc matches C:\python26\li
b\site-packages\durus\persistent_dict.py
import durus.persistent_dict # precompiled from C:\python26\lib\site-packages\du
rus\persistent_dict.pyc
# C:\python26\lib\copy.pyc matches C:\python26\lib\copy.py
import copy # precompiled from C:\python26\lib\copy.pyc
# C:\python26\lib\site-packages\durus\persistent.pyc matches C:\python26\lib\sit
e-packages\durus\persistent.py
import durus.persistent # precompiled from C:\python26\lib\site-packages\durus\p
ersistent.pyc
# C:\python26\lib\site-packages\durus\utils.pyc matches C:\python26\lib\site-pac
kages\durus\utils.py
import durus.utils # precompiled from C:\python26\lib\site-packages\durus\utils.
pyc
# C:\python26\lib\struct.pyc matches C:\python26\lib\struct.py
import struct # precompiled from C:\python26\lib\struct.pyc
import _struct # builtin
import cStringIO # builtin
import cPickle # builtin
import durus._persistent # dynamically loaded from C:\python26\lib\site-packages
\durus\_persistent.pyd
>>>

I am not sure what all this means, but there seems to be no problem
doing it this way. Doing the same thing without the -v switch does not
throw any errors either...
>
> On Jun 21, 2010, at 2:40 PM, Alex Hall wrote:
>
>> Hello everyone,
>> I am Alex. I am starting my fourth year of getting a computer science
>> degree in a few months, so I have played with many programming
>> languages. Python is my favorite, though, and I have made a few
>> programs in it. I am now looking at the source of a program called
>> Qwitter (http://www.qwitter-client.net) so I can possibly add
>> something to this great application's development. Qwitter uses Durus,
>> and Durus is giving me a very strange error, an error that one of the
>> Qwitter developers says is known but is not yet fixable. I wonder if
>> anyone on here has heard of it and/or knows of a way to fix it?
>>
>> Basically, the problem is that Durus is telling me that when
>> connection.py calls something in persistent_dict.py, the file is not
>> found. Here are the last few lines of the traceback I am getting:
>>
>>  File "c:\qwitter\src\session\storage.py", line 22, in __init__
>>    self.connection = Connection(self.store)
>>  File "c:\python26\lib\site-packages\durus\connection.py", line 61, in
>> __init__
>>    self.root = self.get(ROOT_OID)
>>  File "c:\python26\lib\site-packages\durus\connection.py", line 138, in
>> get
>>    klass = loads(data)
>> ImportError: No module named durus.persistent_dict
>>
>> I went into the folder and checked, though, and there is a file called
>> persistent_dict, right where it should be. I manually deleted Durus
>> and re-installed it, then I uninstalled it with Windows and
>> re-installed it, and still I get this show-stopping error. Again,
>> someone told me that this seems to happen to random machines and they
>> are not sure how to fix it. Until I get this sorted, I cannot start
>> helping with development since nothing works after this error, so I
>> cannot test any of my changes. Any information would be great.
>> Python2.6.2 on win7x64 (32-bit python installed), AMD quad core at
>> 3.2GHz with 4gb ram at 800MHz
>>
>>
>>
>> --
>> Have a great day,
>> Alex (msg sent from GMail website)
>> mehgcap@gmail.com; http://www.facebook.com/mehgcap
>> _______________________________________________
>> Durus-users mailing list
>> Durus-users@mems-exchange.org
>> http://mail.mems-exchange.org/mailman/listinfo/durus-users
>
>


--
Have a great day,
Alex (msg sent from GMail website)
mehgcap@gmail.com; http://www.facebook.com/mehgcap
reply