enthought

got “libatk-1.0.so.0: undefined symbol” when I tried ipython --pylab in Ubuntu 13.10

微笑、不失礼 提交于 2019-12-23 01:58:26
问题 I am currently using Ubuntu 13.10 and applied all the system updates. I have installed the Enthought Canopy (Version: 1.1.1.1452). And today when I tried to plot, I got nothing. After googling, I have run 'ipython --pylab' in command line but got the following message: Matplotlib backend_wx and backend_wxagg require wxPython >=2.8 I could get into the interactive ipython shell but I still couldn't plot. Then I follow the tips from user forum and I tried 'import wx' and got: /usr/lib/x86_64

PyInstaller and Enthought Suite

只谈情不闲聊 提交于 2019-12-22 10:26:53
问题 I was wondering if anyone has any success in creating a stand alone executable using pyinstaller with a script that has enthought imports. I have been trying to do this for a couple of days now, however I keep getting an import error. Through some digging around I believe that I might need to add some hidden import and create my own hooks. However I have not heard of anyone having any success with this, so I thought I would ask here and see if anyone might have some experience with this

ImportError: No module named lib. Unable to import pandas, numpy, scipy, matplotlib

心不动则不痛 提交于 2019-12-22 00:05:07
问题 I recently updated a number of packages and my version of EPD Canopy (to1.4.1.1975) and now I'm unable to import pandas , numpy , scipy or matplotlib . I get the ImportError below. I've also tried importing from the command prompt but I can the same error. pandas - 0.14.0-1 numpy - 1.8.0-2 scipy - 0.14.0-1 matplotlib - 1.3.1-8 Does anybody have any suggestions as to how I could fix this? From this Stackoverflow question it seems like I might need to change/move something to a different

py2exe with enthought and pandas

五迷三道 提交于 2019-12-21 22:58:18
问题 I am trying to make an executable with python, py2exe using Enthought . The program.py starts with: import pandas as pd import pyper as pr r=pr.R(use_pandas=True) The setup.py is as below: from distutils.core import setup import py2exe import matplotlib import sys opts={"py2exe":{"bundle_files"}} sys.argv.append('py2exe') opts = {'py2exe': {"bundle_files" : 3, "includes" : [ "matplotlib.backends", "matplotlib.backends.backend_qt4agg", "pylab","numpy", "matplotlib.backends.backend_tkagg"],

Disable or Catch VTK warnings in vtkOutputWindow when embedding Mayavi

会有一股神秘感。 提交于 2019-12-21 12:42:06
问题 I'd like to either disable the VTK warning window or, better yet, catch them to handle with my application's logging system. My application is using an embedded mayavi view, and I don't want error windows popping up that I have no control over. The following code demonstrates the warning window. import numpy as np from mayavi import mlab x1 = np.array([1, 1, 2, 3]) y1 = np.array([1, 1, 4, 2]) z1 = np.array([1, 1, 5, 1]) mlab.plot3d(x1, y1, z1) mlab.show() Ok, I've done some research and

Threaded FFT in Enthought Python

拈花ヽ惹草 提交于 2019-12-21 02:52:13
问题 Fast Fourier Transforms (FFTs) in Numpy/SciPy are not threaded. Enthought Python is shipped with the Intel MKL numerical library, which is capable of threaded FFTs. How does one get access to these routines? 回答1: The following code works for me with Enthought 7.3-1 (64-bit) on Windows 7 Ultimate 64-bit. I haven't benchmarked it but it certainly uses all cores at once rather than just one. from ctypes import * class Mkl_Fft: c_double_p = POINTER(c_double) def __init__(self,num_threads=8): self

Enthought Canopy 1.1 giving error icui18n: cannot open shared object file: No such file or directory

只谈情不闲聊 提交于 2019-12-18 06:56:51
问题 I have tried to get enthought canopy and follow the procedure. However, when I tried to run ./canopy , it gave this error: Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)". I cannot sudo because I am using the university's supercomputing account, no permission to do so. Any advice? 回答1: You just need a copy of ICU installed on the system you are trying to run canopy on. You can do this by either installing it

ImportError: No module named Cython.Distutils

一笑奈何 提交于 2019-12-17 22:34:48
问题 I'm having a strange problem while trying to install the Python library zenlib , using its setup.py file. When I run the setup.py file, I get an import error, saying ImportError: No module named Cython.Distutils` but I do have such a module, and I can import it on the python command line without any trouble. Why might I be getting this import error? I think that the problem may have to do with the fact that I am using Enthought Python Distribution, which I installed right beforehand, rather

sys.maxint returns a value corresponding to a 32 bit system even though I am using a 64 bit

巧了我就是萌 提交于 2019-12-13 19:17:44
问题 I am not very knowledgeable about system architecture, and have just started learning Python. In one of the tutorial videos it was mentioned that running sys.maxint in the interpreter will return the biggest integer that is available to you. It was also mentioned that 2147483647 is the integer that corresponds to a 32 bit system. That's is the integer that I am being returned when I run sys.maxint. I am using Enthought Canopy (64 bit) on a 64 bit OS. Windows 8, to be precise. Is there any way

How to join/connect/group multiple objects in Mayavi2

醉酒当歌 提交于 2019-12-13 16:09:12
问题 I would like to combine multiple Mayavi objects into a single "grouped" object so that I control all of their properties together. For example I created the following bi-convex lens shape by combining 3 built-in surfaces (two spheres and one cylinder). Now I would like to assign uniform properties (specularity, ambient color, etc) to all of the constituent surfaces at a time (not individually). Also, I would like to translate/rotate the lens as a whole. I am not sure how to accomplish this.