使用本地openssl-1.0.1f共享安装编译python-3.4.0rc3时,make
打印没有错误但是我在make install或make test上得到以下核心转储:
Program terminated with signal 11, Segmentation fault.
(gdb) bt
#0 0x00007f131dd10510 in EVP_PKEY_CTX_dup () from /data2/soft/openssl/lib/libcrypto.so.1.0.0
#1 0x00007f131dd0284f in EVP_MD_CTX_copy_ex () from /data2/soft/openssl/lib/libcrypto.so.1.0.0
#2 0x00007f131e256ab5 in EVPnew (name_obj=0x7f131e46a500, digest=0x0, initial_ctx=0x7f131e459a40, cp=0x0, len=0) at /data2/soft/python3/Python-3.4.0rc3/Modules/_hashopenssl.c:410
#3 0x00007f131e25726e in EVP_new_md5 (self=<value optimized out>, args=<value optimized out>) at /data2/soft/python3/Python-3.4.0rc3/Modules/_hashopenssl.c:799
#4 0x00000000004c7eef in ?? ()
Run Code Online (Sandbox Code Playgroud)
以下是使用的完整命令列表
tar -axf Python-3.4.0rc3.tgz
cd Python-3*
# For lzma and a pip-compatible openssl
export CFLAGS='-I/data2/soft/openssl/include/openssl -I/data2/local/include/'
export LDFLAGS='-L/data2/soft/openssl/lib -L/data2/local/lib/'
export LD_LIBRARY_PATH="/data2/soft/openssl/lib:/data2/local/lib/:$LD_LIBRARY_PATH"
# Ready ! …
Run Code Online (Sandbox Code Playgroud) 我选择使用pickle(+ base64 + TCP套接字)在我的python3代码和旧版python2代码之间通信数据,但是我在datetime
对象方面遇到了麻烦:
PY3对象在PY2上的修补效果很好,但是TypeError
在调用datetime构造函数时,相反会引发a ,然后UnicodeEncodeError
在load_reduce函数中引发a 。
这个要点提供了简短的测试程序和日志,包括PY2和PY3泡菜的dis输出
我在PY2中使用pickle.dumps(reply, protocol=2)
,
然后pickle._loads(pickled, fix_imports=True, encoding='latin1')
在PY3中使用
(尝试None和utf-8均未成功)
本机cPickle loads
解码也失败,我仅使用纯python _loads
进行调试。
这是一个datetime
错误吗?也许datetime.__getstate__/__setstate__
实现不兼容?
欢迎在代码上做任何评论...
PY-3.4.0泡菜:
0: \x80 PROTO 2
2: c GLOBAL 'datetime datetime'
21: q BINPUT 0
23: c GLOBAL '_codecs encode'
39: q BINPUT 1
41: X BINUNICODE u'\x07\xde\x07\x11\x0f\x06\x11\x05\n\x90'
58: q BINPUT 2
60: X BINUNICODE u'latin1'
71: q BINPUT 3
73: \x86 TUPLE2 …
Run Code Online (Sandbox Code Playgroud) 如何在 AmCharts 4 中实现与此 AmCharts 3 教程相同的内容,即具有可滚动的图例以避免图例占用所有可用空间?
在 AmCharts 4.legend.divId
中不再存在,到目前为止我只能用 控制图例大小chart.legend.height = am4core.percent(50);
,控制是有限的,因为整个事物都呈现为单个 SVG 元素......
我想需要创建一个单独的容器,然后通过设置“附加”图例,legend.parent = container;
但尚无法使其工作。
当前尝试:codepen
python ×2
amcharts ×1
makefile ×1
openssl ×1
pickle ×1
python-2.7 ×1
python-3.x ×1
typescript ×1