Quantcast








     

DreamPie doesn't work with Python 3.2

stackoverflow.com - 2012-04-27 18:24:00 - Similar - Report/Block

My favorite Python shell is DreamPie and I want to use it with Python 3.2. I've used the "add interpreter" DreamPie app and added Python 3.2. When opening the Python 3.2 DreamPie instance I get the following error message: Indeed, Python 3.2 isn't mentioned on the DreamPie website as supported, but I still want to know if there's a way t...

Speed - embedding python in c++ or extending python with c++

stackoverflow.com - 2012-03-17 02:56:29 - Similar - Report/Block

I have some big mysql databases with data for calculations and some parts where I need to get data from external websites. I used python to do the whole thing until now, but what shall I say: its not a speedster. Now I'm thinking about mixing Python with C++ using Boost::Python and Python C API. The question I've got now is: what is the b...

What happened to Py_FlushLine in Python 3.3?

stackoverflow.com - 2013-04-12 04:04:00 - Similar - Report/Block

I'm porting a python C module from 2.7.x over to python 3.3. One of the issues I ran into is that Py_FlushLine isn't defined in the python headers from what I can tell. How should the following code snippet be modified to work in python 3.3? if (Py_FlushLine()) PyErr_Clear(); What's more interesting is that searching the online python d...

Install PIL in Ubuntu 12.04 Python 2.7 and Python 3.2

stackoverflow.com - 2013-02-21 12:42:16 - Similar - Report/Block

I a, using Ubuntu 12.04 server which by default has two versions of Python: 2.7 and 3.2. When I install PIL using the python setup.py install terminal command, the PIL will be installed with Python 2.7. How to install PIL with Python 3.2? Because I'm using Python 3 to write my script. If my Eclipse uses Python 2.7, PIL is successfully im...

Trouble installing & starting Python from command line in Windows 7

stackoverflow.com - 2012-03-13 22:32:29 - Similar - Report/Block

I'm installing Python for use with SQLMap . I've downloaded and ran the Python 2.7.2 MSI installer , and restarted my computer. According to everything I've read, I should be able to just call python and SQLMap from the DOS command line using python sqlmap.py , but the command line doesnt seem to recognize the python - I get a 'python' i...

Ipython shell won't start

stackoverflow.com - 2011-08-16 06:01:13 - Similar - Report/Block

I have ipython.el and python-mode.el installed in my path, and I have the following added to my init.el: (autoload 'python-mode "python-mode" "Python editing mode." t) (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist)) (setq interpreter-mode-alist (cons '("python" . python-mode) interpreter-mode-alist)) (setq ipython-...

Error: Command failed with rc=65536 python and mod_wsgi

stackoverflow.com - 2012-07-04 18:28:24 - Similar - Report/Block

i'm having this problem: i'm runing pythonbrew to get python2.7, and so i re-compiled mod_wsgi to use the 2.7 python. to that end, i followed this tutorial: code.google.com/p/modwsgi/wiki/QuickInst allationGuide which involved downloading the file - there is a tar.gz file i get - and then "configuring it" with ./configure --with-python=/h...

Annoying Ctrl+M issue parsing python files

stackoverflow.com - 2012-03-29 02:20:09 - Similar - Report/Block

In a boost python embedding in C++, I have C++ parsing a python (via boost-python) file containing a simple function (termed a "command" in what follows), which in turn calls a C++ method to complete a certain implementation. While these seems ridiculous, we choose to do it for the advantages of logging and the other flexibilities that py...

Python pickle converts to unicode between versions

stackoverflow.com - 2012-04-03 13:54:25 - Similar - Report/Block

I have a process that pickles a dictionary using Python 3.2. I then need to unpickle this dictionary using Python 2.7 or 2.6. The problem is that when transferring between python versions I get a dictionary full of unicode data which upsets the Python API I am trying to feed it into. Pickling in Python 3.2: myDict = {'a': 'first', 'b':...

Has anyone managed to install Python modules using Iron Python?

stackoverflow.com - 2012-02-22 14:13:21 - Similar - Report/Block

I have been trawling the net looking for info on installing Python modules (eg. Setuptools) into Iron Python. The general consensus was that it was a work in progress a couple of years ago. Has anyone has any luck? Thanks, Chris...

How to use multiple versions of Python without uninstallation

stackoverflow.com - 2012-05-05 19:33:47 - Similar - Report/Block

I am faced with a unique situation, slightly trivial but painful. I need to use Python 2.6.6 because NLTK is not ported to Python 3 (that's what I could gather). In a different code(which am working concurrently), there is a collections counter function which is available only in Python 3 but not in Python 2.6.6. So, each time I switch be...

testing python for threading

stackoverflow.com - 2012-06-19 01:47:13 - Similar - Report/Block

How do you test if the version of python that comes pre-installed on your machine (in this case, Mac Lion) was compiled with support for threading? Here's my info: [16:31 7] uname -a Darwin leopard.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64 i386 [16:31 8] which pyth...

evolveStar Join

Dpkg Python module?

stackoverflow.com - 2012-07-30 20:02:31 - Similar - Report/Block

I'm trying to do some package manipulation (a la dpkg) and while I can just popen subprocess.call I'd rather do things the python way if possible. Unfortunately I've been unable to find a python module to do the trick. I've seen reference to python-deb but it appears to be defunct. python-apt might seem like a potential solution, but A...

Read MP3 in Python 3 on Linux

stackoverflow.com - 2012-02-27 00:52:44 - Similar - Report/Block

What I want to do is simply mp3 = read_mp3(mp3_filename) audio_left = mp3.audio_channels[0] where audio_left will contain raw PCM audio data. I was looking at Play a Sound with Python , but most of the suggested modules are not ported to Python 3 yet. If possible I'd like to avoid having to install a fully-fledged game dev library. I'm a...

Python being auto-aliased in Mac OS X Lion

stackoverflow.com - 2013-03-15 18:44:34 - Similar - Report/Block

I have been struggling with setting Python 2.7 to be the default Python on my system. Python 2.6 came with my OS, and I have since installed 2.7 (from source) and have been trying to make that my default version. At one point it was suggested that I try a package manager (MacPorts / Fink / Homebrew) and I did, and I think that may have be...

Changing Process Name using Shell for nagios monitoring with check_procs

stackoverflow.com - 2012-01-25 13:59:50 - Similar - Report/Block

I have a python script to start a process which I want to monitor using Nagios. When I run that script and perform ps -ef on my ubuntu EC2 instance, it shows process as python <filename>.py --arguments . For Nagios to monitor that process using check_procs, we need to supply process name. Here process name becomes 'python'. /usr/li...

Advice need for installing python packages (in particular when installing package: libgv-python)

stackoverflow.com - 2012-03-11 01:24:56 - Similar - Report/Block

I am having a hell of a time installing the libgv-python package (Purpose: I believe it is what you need to be able to access graphviz through python). I am not a python pro so I suspect that this might be a simple python packaging issue. First confusion point: When I download the .deb file, it says it will install the following files: /u...

Error message for virtualenvwrapper on OS X Lion

stackoverflow.com - 2012-06-26 02:41:31 - Similar - Report/Block

I've used homebrew to install python on a new Mac Lion installation, and have been trying to install virtualenv and virtualenvwrapper with pip, but when I start a new terminal session, I get this traceback: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named virtualenvwrapper.h...

What are Class methods in Python for?

stackoverflow.com - 2008-09-01 20:16:41 - Similar - Report/Block

I'm teaching myself Python and my most recent lesson was that Python is not Java , and so I've just spent a while turning all my Class methods into functions. I now realise that I don't need to use Class methods for what I would done with static methods in Java, but now I'm not sure when I would use them. All the advice I can find about...

MySQL for Python in Windows

stackoverflow.com - 2009-03-14 14:53:28 - Similar - Report/Block

I am finding it difficult to use MySQL with Python in my windows system. I am currently using Python 2.6. I have tried to compile MySQL-python-1.2.3b1 (which is supposed to work for Python 2.6 ?) source code using the provided setup scripts. The setup script runs and it doesn't report any error but it doesn't generate _mysql module. I hav...

I've installed Bottle for Python, but how to access from Python 3.2?

stackoverflow.com - 2012-05-27 07:04:15 - Similar - Report/Block

I have installed bottle on my Ubuntu Linux server using sudo pip install bottle and it is installed to: /usr/local/lib/python2.7/dist-packages But I also have Python 3.2 installed on my system, and I want to access bottle from Python 3.2. Python 3.2 does not seem to recognise that bottle is installed. What am I doing wrong? thanks...

Interact with Flash using Python Mechanize

stackoverflow.com - 2010-07-09 19:26:45 - Similar - Report/Block

I am trying to create an automated program in Python that deals with Flash. Right now I am using Python Mechanize, which is great for filling forms, but when it comes to flash I don't know what to do. Does anyone know how I can interact with flash forms (set and get variables, click buttons, etc.) via Python mechanize or some other python...

How to find all words followed by symbol using Python Regex?

stackoverflow.com - 2012-06-09 14:39:10 - Similar - Report/Block

I need re.findall to detect words that are followed by a "=" So it works for an example like re.findall('\w+(?=[=])', "I think Python=amazing") but it won't work for "I think Python = amazing" or "Python =amazing"... I do not know how to possibly integrate the whitespace issue here properly. Thanks a bunch!...

Generators to iterate over a dictionary uniformly in both Python 2 and 3

stackoverflow.com - 2012-05-02 07:22:29 - Similar - Report/Block

Is there a way to efficiently iterate over the values/items in a dictionary that works in both Python 2 and Python 3? In Python 2, I can write for x in mydict: for x in mydict.iterkeys(): for x in mydict.viewkeys(): for x in mydict.itervalues(): for x in mydict.viewvalues(): for x in mydict.iteritems(): for x in mydict.viewitems(): and in...

Adding quotes to words using regex in Python

stackoverflow.com - 2013-04-12 02:14:28 - Similar - Report/Block

I am trying to replace each word in a sentence with the same word but quote (by word I mean just letters, no numbers) using regex. For example 4 python code should be converted to 4 "python" "code" But this code produce the wrong result >>> import re >>> s = "4 python code" >>> re.sub(r'([a-z]*)', r'"\1"', s) '""4"" "python" "code"' Any...

Paraview and Python on Mac OSX

stackoverflow.com - 2010-07-23 14:12:24 - Similar - Report/Block

I've installed the binary distribution of paraview on OSX. When running this I can access the python interpreter from the Tools -> Python Shell. However I cannot figure out which libraries I need to add to PYTHONPATH in order to access VTK and Paraview functionality directly from Python. Of course I could just compile the source distribu...

How to install Python interpreters on Linux

stackoverflow.com - 2012-06-03 14:42:33 - Similar - Report/Block

I'd like to have a reliable way to install Python interpreters 2.4 through to Python 3.3 on a linux user account. I am fine to presume that there is a C-compiler but i'd like to avoid relying on particular distributions or distribution versions. Is there already something maybe like a simple python script?...

Pluck in Python

stackoverflow.com - 2012-03-22 05:41:53 - Similar - Report/Block

I started reading about underscore.js today, it is a library for javascript that adds some functional programming goodies I'm used to using in Python. One pretty cool shorthand method is pluck Indeed in Python I often need to pluck out some specific attribute, and end up doing this: users = [{ "name" : "Bemmu", "uid" : "297200003...

network proxy and python

stackoverflow.com - 2012-05-31 11:59:48 - Similar - Report/Block

If I set network proxy in network settings on my computer (gnome 3 , fedora) when I do post get reuests in my python script will they go through the proxy or through direct connection? what will python use? chrome browser gets proxified when I set proxy in neetwork, same for python? if so how to use direct connection from python? like fir...

Android Apps using python

stackoverflow.com - 2012-04-11 08:52:25 - Similar - Report/Block

I found that Android development can be done through Python from the link http://www.linuxplanet.com/linuxplanet/t utorials/7157/1 . My question is whether all the libraries that are available in Java are also available in python. Any of you already started with python on Android if so please indicate links to help get our group up to spee...

Daemonize, making program to work in background in python/wx.python

stackoverflow.com - 2013-04-24 16:57:11 - Similar - Report/Block

I created an complete logger-type program, that logs the certain data from the internet sources. It's GUI I coded in wx.python , now I want to daemonize it (if it is the right term). The program needs to run in background and user has to have option to call/open GUI when he pleases. How can I achieve this with wx.python?...

How does PyQt do its magic? In particular, how it allows us to implement slots in Python?

stackoverflow.com - 2012-04-09 09:57:11 - Similar - Report/Block

When I learned about PyQt, there were three things to make me wonder. This is the question about the second one, but let me name all the three just in case if anyone else would be curious: first, we are allowed to subclass the C++ classes in Python (so to say), override the C++ methods in Python -- and to pass our classes back to the Qt...

Global name in Python

stackoverflow.com - 2013-05-02 08:11:03 - Similar - Report/Block

I want to find out whether two numbers and are the permutations of the same digits. For example 123 and 321 are permutations of the same digits, where as 234 and 123 are not. I have used Python to solve the problem of which I am not an expert. I am using IDLE Python GUI on Windows 7 . The specifications are Python 2.7.3 (default, A...

Red Hat 5/CentOS 5系统中更新python版本

linuxde.net - 2013-02-28 03:41:15 - Similar - Report/Block

CentOS Python 的版本默认为2.4.3版本,而我们有很多工作可能需要更高的版本,而去Python 官网的时候发现,Python的版本已经到3.3了,于是下载并升级了下CentOS 中Python的版本。 1,下载并安装 wget http://python.org/ftp/python/3.3.0/Pytho n-3.3.0.tar.bz2 tar -jxvf Python-3.3.0.tar.bz2 cd Python-3.3.0 ./configure make && make install 2,更新链接 mv /usr/bin/python /usr/bin/python-2.4.3.bak ln -s /usr/local/bin/python3.3 /u...

Обновление Python - Python

cyberforum.ru - 2013-04-09 17:04:16 - Similar - Report/Block

Сразу скажу.Я новичок как в Linux так и в программирование вообще и в Python в частности. Начал читать Лутца. Он пишет что для новичков лучше python 3 и выше. Ок. Установил из репозитория 3 версию. Сейчас , как я понял, в системе две версии. Как выбрать по умолчанию 3? Как правильно сделать апдейт что бы была только одна версия? Терминал...

yum yum doesn’t match version of Python 终极解决方案

linuxde.net - 2013-04-10 04:58:32 - Similar - Report/Block

今天用yum安装软件的时候出现如下错误: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It’s possible that the above module doesn’t match the current version of Python...

延伸阅读:国外变形本同时运行三个系统_上网本起死回生?Android成主流系统

zol.com.cn - 2013-05-27 06:40:00 - Similar - Report/Block

2013-05-27 06:40:00 作者:尹芹 延伸阅读:三大系统同时运行!超强新品本曝光(图) 联想曾经推出过一款ThinkPad X1 Hybrid笔记本电脑,配备了Windows/Android双操作系统,能实现两 个系统之间的轻松切换。不过一家意大利公司Ekoore推出了一款更加牛的变形笔记本 ——Python S3,其可以同时运行Windows 8、Android和Ubuntu三个操作系统。 Python S3是一款屏幕、键盘可拆分的变形笔记本产品,其标配版已经预装了Android 4.2和Ubuntu 13.4两个操作系统。根据用户的需求可以再加装Windows 8或Windows 8专业版操作系统,加装后,用户可以自行选择运行不同的系统。 Python...

Python le plus long capturé en Floride

tuxboard.com - 2013-05-21 17:13:00 - Similar - Report/Block

5,7 mètres et près de 60 kg. Le python (Burmese) le plus grand jamais capturé en Floride. Chargement du Autres liens : Milliers de requins en Floride Plusieurs plages du sud de la Floride sont infestées de... Python Medusa Le plus grand serpent au monde Larry Elgar a acheté ce python il y a 7... Bain de python Et si on mettait notre pyth...

Python contro Python

punto-informatico.it - 2013-02-19 08:09:00 - Similar - Report/Block

Striscia la controversia in materia di marchi registrati: la community del linguaggio di programmazione chiede aiuto per dimostrare che Python e' uno solo...

maptail实现实时、美观的用户访问视图

linuxde.net - 2013-04-10 04:13:53 - Similar - Report/Block

这几天讨论 maptail 的话题比较多,其原理就是基于nodejs,然后调用WEB 服务器 访问日志实时打印出访问信息 今天抽空将的部署环境做了一下梳理,供大家作为参考。在线DEMO: http://view.linuxtone.org/ 1、依赖python2.6~2.7版本模块的支持, Python 已经是2.6或2.7版本略过此步骤 wget http://www.python.org/ftp/python/2.7.3/P ython-2.7.3.tgz tar -zxvf Python-2.7.3.tgz cd Python-2.7.3 ./configure make;make install cd /usr/bin mv python python.bak l...




dialogShowMessage!

Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.


Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !


evolveStar.com provides a search engine that allows you to gather information to write their own blog.


evolveStar.com enhances the sources displaying the logo of the site.


If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com


Specifies the subject copyright violation and the url of the page


evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.


Next will be effectual and relevant checks.







Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2017 Fabrizio Fichera. All rights reserved.