<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Hi Elijah,</div><div><br>....</div><blockquote type="cite"><div><div dir="ltr"><div>I use IPython and Jupyter notebooks and would like to be able to import the smtk module so I can explore and test out more of its functionality.</div><div><br></div><div>Unfortunately the python 2.7 packaged with CMB appears to have been installed with 2-byte unicode characters: ...</div></div></div></blockquote><div><br></div>If you need CMB compiled with different options, you will probably need to build it yourself. There is a "superbuild" project we use to build the dependencies of CMB plus CMB itself, located on gitlab at http://<span style="font-size: 12pt; font-family: Helvetica;"><a href="http://gitlab.kitware.com/cmb/cmb-superbuild/">gitlab.kitware.com/cmb/cmb-superbuild/</a> . That page has build instructions. After building, you can go into its python build dir (build/superbuild/python/build), reconfigure, and then reinstall.</span><div><span style="font-size: 12pt; font-family: Helvetica;"><br></span></div><div><span style="font-size: 12pt; font-family: Helvetica;">You may also be able to configure the superbuild to use your system's python -- I just don't remember whether that's an option or not.</span></div><div><font face="Helvetica"><span style="font-size: 16px;"><br></span></font></div><div><font face="Helvetica"><span style="font-size: 16px;">Note that we don't support Python3 yet.<br></span></font><div><font face="Helvetica"><span style="font-size: 16px;"><br></span></font></div><div><font face="Helvetica"><span style="font-size: 16px;"> David<br></span></font><div><div><br><blockquote type="cite"><div><div dir="ltr"><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>$ /path/to/CMBpython</div><div><br></div><div><div>>>> import sysconfig</div></div><div><div>>>> sysconfig.get_config_var('Py_UNICODE_SIZE')</div></div><div><div>2</div></div></blockquote><div><br></div><div>This is not compatible with my system Ipython kernel...I believe Ubuntu 14.04 and later have moved to 4-byte unicode characters.</div><div><br></div><div>Is there a way I can build CMB where python is compiled to use 4-byte Unicode characters? I'm not sure how to set this option when building CMB with CMake.</div><div><br></div><div>If I was building it from source myself I could install it like so:</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><br></div><div><div>./configure --enable-unicode=ucs4</div></div><div><div>make </div></div><div><div>make install<span style="color:rgb(0,0,0);font-family:verdana,sans-serif">./configure --enable-unicode=ucs4</span></div></div><div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif"><br></span></div></blockquote>My thought is that if it is installed with UCS4, then it will build/install all the modules correctly and then I can access them with my system ipython by appropriately using sys.path.append("path/to/smtk").</div><div><br></div><div>Thanks for your time,</div><div>Elijah</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Cmb-users mailing list</span><br><span><a href="mailto:Cmb-users@computationalmodelbuilder.org">Cmb-users@computationalmodelbuilder.org</a></span><br><span><a href="http://public.kitware.com/mailman/listinfo/cmb-users">http://public.kitware.com/mailman/listinfo/cmb-users</a></span><br></div></blockquote></div></div></div></div></body></html>