jaybatavia / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

"cannot import namedtuple" error #194

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. type "self." and wait a little.
2. the error in attachment pops up and the default e-mail client is
automatically opened (I guess for sending the bug report to someone I don't
know... maybe Microsoft).

What version of the product are you using? On what operating system?
Pyscripter 1.9.9.1 on Windows XP sp2.

Please provide any additional information below.
I got Python 2.3, 2.4, 2.5, 2.6 and 3.0 installed on the same machine.

Original issue reported on code.google.com by billiej...@gmail.com on 29 Jan 2008 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by billiej...@gmail.com on 29 Jan 2008 at 1:29

Attachments:

GoogleCodeExporter commented 9 years ago
When the error message pops up can you press "Details" and copy the bug report 
here?

Original comment by pyscripter on 29 Jan 2008 at 9:14

GoogleCodeExporter commented 9 years ago
In attachment.

Original comment by billiej...@gmail.com on 29 Jan 2008 at 5:02

Attachments:

GoogleCodeExporter commented 9 years ago
Is the module "namedtuple" referenced in your code?
Is it in the list of special packages (Tools, Options, IDE options)?
Does the error occur whenever you try code completion irrespective of the file 
you
are editing?  If not can you post a minimal script that reproduces the error?

Original comment by pyscripter on 29 Jan 2008 at 10:49

GoogleCodeExporter commented 9 years ago
Sorry for replying so late but I didn't noticed you submitted a response.

> Is the module "namedtuple" referenced in your code?

No.

> Is it in the list of special packages (Tools, Options, IDE options)?

No, I'm using a default pyscripter installation aside from some minor 
customizations
like different syntax colors and stuff like that.

> Does the error occur whenever you try code completion irrespective of the 
> file you are editing? 

Exactly.

> If not can you post a minimal script that reproduces the error?

I can't. It happens for no specific reason and very often (it's very annoying). 
In case it helps: I have different Python version installed (2.3, 2.4, 2.5, 
2.6a, 3.0).

Original comment by billiej...@gmail.com on 7 Feb 2008 at 10:55

GoogleCodeExporter commented 9 years ago
namedtuple is a class introduced in 2.6a, a version of Python which is not 
currently
supported by PyScripter.  Are you sure you are not mixing up the Python 
versions?

Please check the Windows Registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.x
or
HKEY_CURRENT_USER\SOFTWARE
\Python\PythonCore\2.x for a single user
installation of Python.  ("x" stands for the minor version of Python).

In a proper installation the key should exist and the "InstallPath"
and "PythonPath" variables defined.

Also check the PYTHONHOME and PYTHONPATH environment variables to see
whether they conflict with the Python version used.   

Original comment by pyscripter on 8 Feb 2008 at 8:20

GoogleCodeExporter commented 9 years ago
Checked both things and they seems to be correct.
Is there a place in pyscripter where I could specify the path of the 
interpreter to use?

Original comment by billiej...@gmail.com on 9 Feb 2008 at 4:40

GoogleCodeExporter commented 9 years ago
Have a look at the help file for command line options and also
http://pyscripter.googlepages.com/portablepython.

I am still puzzled about the bug report since pyscripter somehow tries to import
namedtuple and this is not used internally at all.  It looks to me as conflict 
in the
Python libraries used.

Original comment by pyscripter on 10 Feb 2008 at 12:43

GoogleCodeExporter commented 9 years ago
I am going to close this until some way of reproducing the error is given.  I am
afraid I cannot do much as it stands.

Original comment by pyscripter on 1 Mar 2008 at 2:17