开发者

can not import the module deepcopy [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.

This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.

开发者_JS百科

Closed 8 years ago.

Improve this question

i've ran into this wierd error since few days where most of the applications/frameworks/modules will refuse to run , because of of the unavailability of the module deepcopy i can't understand why is that so ?

    Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/django/http/__init__.py", line 13, in <module>
    from django.utils.datastructures import MultiValueDict, ImmutableList
  File "/usr/lib/pymodules/python2.6/django/utils/datastructures.py", line 3, in <module>
    from django.utils.copycompat import deepcopy
ImportError: cannot import name deepcopy

why is that so ? and how it can be fixed ?


seems like i had another copy.py file in my path that was confusing python .removed it and it worked like a charm .


If think you want to use:

from copy import deepcopy

I can't import it either. I think it has been removed from Django.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜