Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #17625 > unrolled thread

Upgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work?

Started byJohn Ladasky <ladasky@my-deja.com>
First post2011-12-20 14:43 -0800
Last post2011-12-20 17:16 -0800
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Upgraded Ubuntu -> 11.10, Python -> 2.7.2.  Now psyco doesn't work? John Ladasky <ladasky@my-deja.com> - 2011-12-20 14:43 -0800
    Re: Upgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work? Jerry Hill <malaclypse2@gmail.com> - 2011-12-20 19:08 -0500
      Re: Upgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work? John Ladasky <ladasky@my-deja.com> - 2011-12-20 17:16 -0800

#17625 — Upgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work?

FromJohn Ladasky <ladasky@my-deja.com>
Date2011-12-20 14:43 -0800
SubjectUpgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work?
Message-ID<222051f5-35b7-44ae-857f-bb819bae0a3e@z22g2000prd.googlegroups.com>
I'm chasing down a bug that I think may be in my own code.  But a
fellow Pythoneer suspected that I might actually be looking at a bug
in Python itself.

http://groups.google.com/group/comp.lang.python/browse_thread/thread/f4b5843e2b06d1a6

Because I was using Python 2.6.6, and I was told that only bugs which
affect language security will be fixed in older revisions, I was
encouraged to try my code on Python 2.7.2.

I was running Ubuntu Linux 10.10, on which Python 2.6.6 was the
standard distribution.  I succeeded in doing an "alternate install" of
Python 2.7.2, over Ubuntu 10.10.  But I use so many packages in my
code.  Dealing with the package dependencies, and the intricacies of
invoking the right version of Python at the command prompt, were
making me dizzy.  After a few hours of struggle, I just decided to
upgrade my OS to Ubuntu 11.10, on which Python 2.7.2 is the standard
distribution.

I then installed numpy, scipy, and matplotlib, and confirmed that they
work.  I needed just one more package to try my code: psyco.
According to the Synaptic Package Manager of Ubuntu 11.10, there is a
supported version of psyco for this OS revision, python-psyco
1.6-2ubuntu1.  I downloaded it.  It installed.  But an attempt to
"import psyco" gives me an ImportError at the python prompt.

I'm not sure whether my OS upgrade is responsible for this, or whether
the accompanying Python revision bump is responsible.  I can remove
the psyco dependency for now, as it's not essential for me to test my
bug.  But I will eventually want to do some JIT compilation on a
critical inner loop in my code.  Applying psyco to that loop nearly
doubled my execution speed.

Can I fix my import problem?  Is psyco being superseded by PyPy?  From
what I've seen of PyPy, it's pretty radically different than psyco.

Thanks for any help!

[toc] | [next] | [standalone]


#17628 — Re: Upgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work?

FromJerry Hill <malaclypse2@gmail.com>
Date2011-12-20 19:08 -0500
SubjectRe: Upgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work?
Message-ID<mailman.3889.1324426101.27778.python-list@python.org>
In reply to#17625
On Tue, Dec 20, 2011 at 5:43 PM, John Ladasky <ladasky@my-deja.com> wrote:
> I was running Ubuntu Linux 10.10, on which Python 2.6.6 was the
> standard distribution.  I succeeded in doing an "alternate install" of
> Python 2.7.2, over Ubuntu 10.10.  But I use so many packages in my
> code.  Dealing with the package dependencies, and the intricacies of
> invoking the right version of Python at the command prompt, were
> making me dizzy.  After a few hours of struggle, I just decided to
> upgrade my OS to Ubuntu 11.10, on which Python 2.7.2 is the standard
> distribution.
>
> I then installed numpy, scipy, and matplotlib, and confirmed that they
> work.  I needed just one more package to try my code: psyco.
> According to the Synaptic Package Manager of Ubuntu 11.10, there is a
> supported version of psyco for this OS revision, python-psyco
> 1.6-2ubuntu1.  I downloaded it.  It installed.  But an attempt to
> "import psyco" gives me an ImportError at the python prompt.

>From the psyco homepage ( http://psyco.sourceforge.net/ ) "Python 2.7
is unsupported so far. Anyone interested in porting Psyco to it is
welcome. I started the work in a branch but it needs finishing."
That's the most recent news item on the home page, and it's dated July
16, 2010, about a year and a half ago.

I don't think psyco supports python 2.7.

-- 
Jerry

[toc] | [prev] | [next] | [standalone]


#17635 — Re: Upgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work?

FromJohn Ladasky <ladasky@my-deja.com>
Date2011-12-20 17:16 -0800
SubjectRe: Upgraded Ubuntu -> 11.10, Python -> 2.7.2. Now psyco doesn't work?
Message-ID<0825ebed-b501-42b7-975b-cc0e1aaec195@37g2000prc.googlegroups.com>
In reply to#17628
On Dec 20, 4:08 pm, Jerry Hill <malaclyp...@gmail.com> wrote:

> From the psyco homepage (http://psyco.sourceforge.net/) "Python 2.7
> is unsupported so far. Anyone interested in porting Psyco to it is
> welcome. I started the work in a branch but it needs finishing."
> That's the most recent news item on the home page, and it's dated July
> 16, 2010, about a year and a half ago.
>
> I don't think psyco supports python 2.7.
>
> --
> Jerry

Thanks, Jerry.

It's funny that the package tree of Ubuntu 11.10 doesn't specify a
dependency on an older revision of Python, then.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web