python 2.7 - deepcopy and Kivy's ReferenceListProperty -
i have strange problem deepcopy. somehow following code breaks, not on machines.
from kivy.properties import numericproperty, referencelistproperty x = numericproperty() y = numericproperty() pos = referencelistproperty(x, y) l = [pos] copy import deepcopy deepcopy(l) traceback (most recent call last): file "<input>", line 1, in <module> file "/usr/lib/python2.7/copy.py", line 163, in deepcopy y = copier(x, memo) file "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list y.append(deepcopy(a, memo)) file "/usr/lib/python2.7/copy.py", line 182, in deepcopy rv = reductor(2) file "stringsource", line 2, in kivy.properties.referencelistproperty.__reduce_cython__ typeerror: no default __reduce__ due non-trivial __cinit__ it happens on 1 pc have (ubuntu 16.04) not on others same os. idea why happening? in advance, joel
pip freeze gives following:
alabaster==0.7.10 babel==2.4.0 certifi==2017.4.17 chardet==3.0.4 coverage==4.4.1 cycler==0.10.0 cython==0.26 docopt==0.6.2 docutils==0.13.1 functools32==3.2.3.post2 gitdb==0.6.4 gitdb2==2.0.2 gitpython==2.1.5 idna==2.5 imagesize==0.7.1 jinja2==2.9.6 kivy==1.10.0 kivy-garden==0.1.4 markupsafe==1.0 matplotlib==2.0.2 nose==1.3.7 numpy==1.13.0 opencv-python==3.2.0.8 pipreqs==0.4.9 psutil==5.2.2 pygments==2.2.0 pyparsing==2.2.0 pypi-publisher==0.0.4 python-dateutil==2.6.0 pytz==2017.2 requests==2.18.1 shapely==1.5.17.post1 six==1.10.0 smmap==0.9.0 smmap2==2.0.3 snowballstemmer==1.2.1 sphinx==1.6.3 sphinx-rtd-theme==0.2.4 sphinxcontrib-websupport==1.0.1 subprocess32==3.2.7 typing==3.6.2 urllib3==1.21.1 yarg==0.1.9 i've created virtualenv on pc (which didn't show problem) these requirements , problem isn't reproduced , if repeat same process in "problematic" computer (new venv same requirements) problem arises.
this posted kivy-users@googlegroups.com got no answer yet. pick here.
thanks!
Comments
Post a Comment