[GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Helmut Kudrnovsky
hellik at web.de
Tue Sep 4 11:36:24 PDT 2018
> > Deprecated since version 2.7: The optparse module is deprecated and
will not
>> be developed further; development will continue with the argparse
module.
>
>Can you add optparse package? It's weird, it should be part of standard
Python library:
>https://docs.python.org/3.7/library/optparse.html
some tests in the MSYS2/mingw build environment.
outside of an virtual environment
--------------------
$ python3 --version
Python 3.7.0
$ python3
Python 3.7.0 (default, Aug 3 2018, 11:56:18) [GCC 8.2.0 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import optparse
>>> import argparse
>>>
-------------------
inside the virtual environment
-------------------
$ source Scripts/activate
(grasspy3)
$ python --version
Python 3.7.0
(grasspy3)
$ python3
Python 3.7.0 (default, Aug 3 2018, 11:56:18) [GCC 8.2.0 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import optparse
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'optparse'
>>> import argparse
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'argparse'
-------------------
the missing optparse here seems to be a local virtual environment issue.
any idea to how to solve this?
-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
More information about the grass-dev
mailing list