thecocce / pyscripter

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

Internal engine does not inports correctly the dateutil module #323

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start Pyscripter
2. In the interpreter window type:
>>> import dateutil
>>> dir(dateutil)
['__author__',
 '__builtins__',
 '__doc__',
 '__file__',
 '__license__',
 '__name__',
 '__path__',
 '__version__']

3. The dateutil module lacks of submodules and is unusable

What is the expected output? What do you see instead?
In a interpreter started in command shell the output is:

>>> dir(dateutil)
['__author__', 
'__builtins__', 
'__doc__', 
'__file__', 
'__license__', 
'__name__',
'__path__', 
'__version__', 
'parser', 
'relativedelta', 
'rrule', 
'tz', 
'tzwin', '
zoneinfo']

What version of the product are you using? On what operating system?
Pyscripter 1.9.9.6, win XP PRO SP3, Python 2.5.4 (r254:67916, Jan 29 2009,
12:02:11) [MSC v.1310 32 bit (Intel)]

Please provide any additional information below.

Original issue reported on code.google.com by dghela...@gmail.com on 18 Jul 2009 at 4:57

GoogleCodeExporter commented 9 years ago
I get exactly the same behavior in both PyScripter and python.  Dateutil is a 
package and you can still import its submodules e.g.

from dateutil.relativedelta import *
from dateutil.easter import *

even if you do not see the submodules when you do dir(dateutil).

My guess is that when you tried the python interpreter you were using a 
different version of the interpreter/dateutil than PyScripter.

Original comment by pyscripter on 13 Aug 2010 at 11:52