All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
Problems with new python-2.4.3 package, previous version no longer available
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
Problems with new python-2.4.3 package, previous versio... - Jul. 31, '06, 5:52:14 AM
|
|
|
ggrimm
Posts: 2
Joined: Dec. 23, '05,
Status: offline
|
Hi there,
I've upgraded to python 2.4.3 - and now I'm in serious trouble, because
import time
fails with
ImportError: No module named time
"time" is a built-in module which just *has* to be there... so there must be something wrong with this package.
Unfortunately, the previous working version of the package (python-2.3.3-bin) has been removed from the ftp server and was replaced with a link to the new, broken package - so right now I'm stuck!
Any help appreciated...
Best regards, Gerhard
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Jul. 31, '06, 12:52:01 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
The previous version is just moved to the archive.
It can still be accessed, but you have to use pkg_add utility
and name the package specificly. To get an older version installed
you need to pkg_delete the current version and then do:
pkg_add ftp://ftp.interopsystems.com/pkgs/3.5-x86.ar/python-2.3.3-bin.tgz
I'm looking at the package now. It's likely a something minor.
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 1, '06, 2:23:39 AM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
> I'm looking at the package now. It's likely a something minor.
Success now, but it wasn't minor (it was frustrating actually).
I had to try and work around collect2 taking a SEGV when
linking python to the shared library (that was the needed
fix BTW). So version 2.4.3.1 is now available. Yes, this does work
with the "import time" test along with about 20 others that were
not a go before.
To update (from any version) do:
pkg_update -L python
Then all should be well.
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 1, '06, 5:00:21 AM
|
|
|
ggrimm
Posts: 2
Joined: Dec. 23, '05,
Status: offline
|
Hi Rodney,
thanks a lot for fixing the package (and explaining where to find the archived version).
It works fine for me now!
BTW: In /usr/local/lib/python2.4/lib-dynload/ are a significant number of files named "*_failed.so" next to newer versions named "*.so". Looks like those are the remainders of an unsuccessful build...
Best regards, Gerhard
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 3, '06, 10:04:37 PM
|
|
|
liverdonor
Posts: 6
Joined: May 25, '05,
Status: offline
|
Ditto the thanks, Rodney, for the new Python.
Having a similar problem as Gerhard, though, in this case with the socket extension, which, even after the 2.4.3.1 update, still fails when I try to run my code and does not pass the test suite. Neither does the bsddb extension, which my code also uses.
Any ideas? It appears these have gone missing from the package...
Cheers,
~LD
_____________________________
In my experience, nothing is ever what it seems to be, but everything is exactly what it is.
-- Buckaroo Banzai
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 4, '06, 2:53:55 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Not ignoring you, just buried in too many "to do" things.
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 4, '06, 5:13:24 PM
|
|
|
liverdonor
Posts: 6
Joined: May 25, '05,
Status: offline
|
I understand completely. Didn't mean to nag...
No worries.
Cheers,
~LD
_____________________________
In my experience, nothing is ever what it seems to be, but everything is exactly what it is.
-- Buckaroo Banzai
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 6, '06, 5:45:22 AM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Here's why it didn't compile:
quote:
# Historical Berkeley DB 1.85
#
# This module is deprecated; the 1.85 version of the Berkeley DB library has
# bugs that can cause data corruption. If you can, use later versions of the
# library instead, available from <http://www.sleepycat.com/>.
The Python code, by default, doesn't want to use 1.85.
But, even if you have the newer version, Python, again by default, comments out
that it will test for it, let alone use it.
So, yes it has "gone missing", but this is how Python currently ships.
This is true for a number of other modules as well (which were default before).
I was surprised to see these changes.
So 2.4.3.1 is a current "stock" Python (as were previous releases), but "stock"
has changed. I'll have to enumerate though to see which need to be activated
to match older "stock" to keep a level field with previous releases.
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 7, '06, 2:46:33 AM
|
|
|
liverdonor
Posts: 6
Joined: May 25, '05,
Status: offline
|
Rodney,
OK, that explains that, thanks.
I was able to build a later version of bsddb successfully and it now passes the bsddb unit test, but I have been less than successful with the socket lib (it has reams of errors when building and I haven't been able to sort them out yet).
cheers,
~LD
_____________________________
In my experience, nothing is ever what it seems to be, but everything is exactly what it is.
-- Buckaroo Banzai
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 9, '06, 3:58:36 AM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
I started poking at Python to get some other modules going again
(such as bsddb and readline). But it regressed for some others :-(
Blah!
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 9, '06, 5:04:46 AM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
I managed to get it back to working.
Note: with the current Python 'bsddb' is now 'bsddb185'.
I'll get a new package for this out later tomorrow.
|
|
|
RE: Problems with new python-2.4.3 package, previous ve... - Aug. 9, '06, 4:02:27 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Okay, version 2.4.3.2 is now available for python.
The modules "bsddb185" and "socket" are built with it.
To update/install do:
pkg_update -L python
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|