Discussion:
[conda] problems with dateutil
David Michael Gang
2017-10-19 06:50:15 UTC
Permalink
I install python-dateutil from conda but the package looks empty:
python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import dateutil
dateutil.parser
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'dateutil' has no attribute 'parser'
dateutil
<module 'dateutil' from
'/home/david/miniconda3/envs/route-predictor-microservice/lib/python3.6/site-packages/dateutil/__init__.py'>
dir(dateutil)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__',
'__name__', '__package__', '__path__', '__spec__', '__version__',
'_version']
from datetime import *
parse
I have the latest python version : 3.6.3

conda search python-dateutil
Fetching package metadata ...........
python-dateutil 2.4.1 py26_0 defaults
2.4.1 py27_0 defaults
2.4.1 py33_0 defaults
2.4.1 py34_0 defaults
2.4.2 py26_0 defaults
2.4.2 py27_0 defaults
2.4.2 py33_0 defaults
2.4.2 py34_0 defaults
2.4.2 py35_0 defaults
2.5.0 py27_0 defaults
2.5.0 py34_0 defaults
2.5.0 py35_0 defaults
2.5.1 py27_0 defaults
2.5.1 py34_0 defaults
2.5.1 py35_0 defaults
2.5.2 py27_0 defaults
2.5.2 py34_0 defaults
2.5.2 py35_0 defaults
2.5.3 py27_0 defaults
2.5.3 py34_0 defaults
2.5.3 py35_0 defaults
2.6.0 py27_0 defaults
2.6.0 py34_0 defaults
2.6.0 py35_0 defaults
2.6.0 py36_0 defaults
2.6.1 py27_0 defaults
2.6.1 py34_0 defaults
2.6.1 py35_0 defaults
2.6.1 py36_0 defaults
2.6.1 py27h4ca5741_1 defaults
2.6.1 py35h90d5b31_1 defaults
2.6.1 py36h88d3b88_1 defaults
➜ route-planner git:(master) ✗ conda install python-dateutil=2.6.1
Fetching package metadata ...........
Solving package specifications: .

Package plan for installation in environment
/home/david/miniconda3/envs/route-predictor-microservice:

The following NEW packages will be INSTALLED:

python-dateutil: 2.6.1-py36h88d3b88_1

Proceed ([y]/n)?

I install the latest python dateutil

What could be the reason and how can i fix this?
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/1593e8a1-64cc-424d-a731-7a026c9311e2%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Jonathan Helmus
2017-10-19 14:28:47 UTC
Permalink
Most of the functionality of the python-dateutil package is accessible
Post by David Michael Gang
from dateutil.easter import *
easter(2017)
datetime.date(2017, 4, 16)

Very little is accessible via the base dateutil module.  See the
dateutil documentation for more details:
https://dateutil.readthedocs.io/en/stable/.

Cheers,

    - Jonathan Helmus
Post by David Michael Gang
python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import dateutil
dateutil.parser
  File "<stdin>", line 1, in <module>
AttributeError: module 'dateutil' has no attribute 'parser'
dateutil
<module 'dateutil' from
'/home/david/miniconda3/envs/route-predictor-microservice/lib/python3.6/site-packages/dateutil/__init__.py'>
dir(dateutil)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__',
'__name__', '__package__', '__path__', '__spec__', '__version__',
'_version']
from datetime import *
parse
I have the latest python version : 3.6.3
conda search python-dateutil
Fetching package metadata ...........
python-dateutil              2.4.1                    py26_0 defaults
                             2.4.1                    py27_0 defaults
                             2.4.1                    py33_0 defaults
                             2.4.1                    py34_0 defaults
                             2.4.2                    py26_0 defaults
                             2.4.2                    py27_0 defaults
                             2.4.2                    py33_0 defaults
                             2.4.2                    py34_0 defaults
                             2.4.2                    py35_0 defaults
                             2.5.0                    py27_0 defaults
                             2.5.0                    py34_0 defaults
                             2.5.0                    py35_0 defaults
                             2.5.1                    py27_0 defaults
                             2.5.1                    py34_0 defaults
                             2.5.1                    py35_0 defaults
                             2.5.2                    py27_0 defaults
                             2.5.2                    py34_0 defaults
                             2.5.2                    py35_0 defaults
                             2.5.3                    py27_0 defaults
                             2.5.3                    py34_0 defaults
                             2.5.3                    py35_0 defaults
                             2.6.0                    py27_0 defaults
                             2.6.0                    py34_0 defaults
                             2.6.0                    py35_0 defaults
                             2.6.0                    py36_0 defaults
                             2.6.1                    py27_0 defaults
                             2.6.1                    py34_0 defaults
                             2.6.1                    py35_0 defaults
                             2.6.1                    py36_0 defaults
                             2.6.1            py27h4ca5741_1 defaults
                             2.6.1            py35h90d5b31_1 defaults
                             2.6.1            py36h88d3b88_1 defaults
➜  route-planner git:(master) ✗ conda install python-dateutil=2.6.1
Fetching package metadata ...........
Solving package specifications: .
Package plan for installation in environment
    python-dateutil: 2.6.1-py36h88d3b88_1
Proceed ([y]/n)?
I install the latest python dateutil
What could be the reason and how can i fix this?
--
You received this message because you are subscribed to the Google
Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/1593e8a1-64cc-424d-a731-7a026c9311e2%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/conda/1593e8a1-64cc-424d-a731-7a026c9311e2%40continuum.io?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/45fee135-0e62-367d-db00-9f159b3b782c%40gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...