You are not logged in.

#1 2007-03-27 19:42:12

mary4
Member
From: Denmark
Registered: 2007-01-03
Posts: 5

Set Python Path

I made a full Arch update yesterday, including pacman 3.0

Now when I try to run rankmirrors I get the message:
ImportError: No module named datetime.

Allthough I have /usr/include/python2.5/datetime.h

I guess I should set the correct path,
but I don't know where??

Offline

#2 2007-03-28 06:27:04

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: Set Python Path

datetime is part of python distribution, there's no need to update paths. Please check your python installation. Can it be a problem with fresh python 2.5?

Offline

#3 2007-03-28 08:34:51

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: Set Python Path

this sounds like an issue with your current python install ... datetime module is detected and loaded here without problems ... rankmirros works fien as well ...


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#4 2007-03-28 08:38:20

mary4
Member
From: Denmark
Registered: 2007-01-03
Posts: 5

Re: Set Python Path

How can I check  my python installation further?

As I said, it seems that I have a module in python:

[root@myhost ~]# find / -name datetime*
/usr/include/python2.5/datetime.h
/usr/lib/python2.5/lib-dynload/datetime.so

[root@myhost ~]# rankmirrors
Traceback (most recent call last):
  File "/usr/bin/rankmirrors", line 23, in <module>
    import os, sys, datetime, time, socket, urllib2
ImportError: No module named datetime

I tried to Google the error message:

python 2.5 "no module named datetime"

and that gave only a few irrelevant answers.

It is not a big problem, as the Belgian mirror works fine for me.
I was just wondering abvout this error message.

Thanks

Offline

Board footer

Powered by FluxBB