niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » python
strange error when importing a module
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Robin Becker
*nix forums Guru Wannabe


Joined: 20 Feb 2005
Posts: 122

PostPosted: Thu Jul 20, 2006 4:04 pm    Post subject: strange error when importing a module Reply with quote

I'm trying to understand the following strangeness

C:\code\rlextra\ers>python
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Quote:
from rlextra.utils.SimpleXMLRPCServer import SimpleXMLRPCServer
Traceback (most recent call last):

File "<stdin>", line 1, in ?
File "c:\code\rlextra\utils\SimpleXMLRPCServer.py", line 148, in ?
import pydoc
File "C:\Python\lib\pydoc.py", line 54, in ?
import sys, imp, os, re, types, inspect, __builtin__
File "C:\Python\lib\inspect.py", line 31, in ?
import sys, os, types, string, re, dis, imp, tokenize, linecache
File "C:\Python\lib\tokenize.py", line 38, in ?
COMMENT = N_TOKENS
NameError: name 'N_TOKENS' is not defined

SimpleXMLRPCServer.py is a legacy version of the current SimpleXMLRPCserver
code. I don't think there's anything special about it and as a standalone script
it appears to work fine (ie it seems to compile and run).

Any ideas?
--
Robin Becker
Back to top
Robin Becker
*nix forums Guru Wannabe


Joined: 20 Feb 2005
Posts: 122

PostPosted: Thu Jul 20, 2006 4:38 pm    Post subject: Re: strange error when importing a module Reply with quote

Robin Becker wrote:
Quote:
I'm trying to understand the following strangeness

C:\code\rlextra\ers>python
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
from rlextra.utils.SimpleXMLRPCServer import SimpleXMLRPCServer
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "c:\code\rlextra\utils\SimpleXMLRPCServer.py", line 148, in ?
import pydoc
File "C:\Python\lib\pydoc.py", line 54, in ?
import sys, imp, os, re, types, inspect, __builtin__
File "C:\Python\lib\inspect.py", line 31, in ?
import sys, os, types, string, re, dis, imp, tokenize, linecache
File "C:\Python\lib\tokenize.py", line 38, in ?
COMMENT = N_TOKENS
NameError: name 'N_TOKENS' is not defined

SimpleXMLRPCServer.py is a legacy version of the current SimpleXMLRPCserver
code. I don't think there's anything special about it and as a standalone script
it appears to work fine (ie it seems to compile and run).

Any ideas?
grrrh I think we have a relative module import of token somewhere


--
Robin Becker
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 6:27 pm | All times are GMT
navigation Forum index » Programming » python
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix + MySQL error: very strange variable %s iWarior Postfix 0 Mon Aug 25, 2008 2:01 pm
No new posts ** Postfix error on console every minute or so ** ?? drywash Postfix 0 Fri Jul 04, 2008 8:49 pm
No new posts Postfix error bounce diwash Postfix 0 Fri Mar 28, 2008 3:37 am
No new posts I am getting following error in Aix 5.3 rockcharles1 AIX 0 Tue Aug 28, 2007 11:06 pm
No new posts postfix out of memory error - please help metind Postfix 0 Mon Sep 11, 2006 1:54 am

MPAA | Mortgage Calculator | Discount Magazines | Cheap Loan | Holiday Deals
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1766s ][ Queries: 16 (0.1031s) ][ GZIP on - Debug on ]