Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Python 3.4 import error #28

@neviaumi

Description

@neviaumi

I have installed gflags on python3.4 env.
And after i attempt import gflags it raise "No module named 'cStringIO' "

It should by changed from io import StringIO

Possibly update look like below?

from


gflags/argument_parser.py 
import cStringIO
import csv
import string

to


gflags/argument_parser.py
try: 
     from io import StringIO as cStringIO
except:
     import cStringIO#original code here
import csv
import string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions