dimatura / pypcd

PCL pcd fileformat i/o in Python
Other
274 stars 197 forks source link

cStringIO package has been deprecated, and it was replaced with io.By… #29

Closed mtshikomba closed 2 months ago

mtshikomba commented 4 years ago

import cStringIO as sio

the import script above gives me the following error

ModuleNotFoundError: No module named 'cStringIO'

So I tried to install the package:

pip install cStringIO

I got the response below:

ERROR: Could not find a version that satisfies the requirement cStringIO (from versions: none) ERROR: No matching distribution found for cStringIO

The import below solved my problem, so I replaced this with the previous import.

from io import BytesIO as sio

Jiejiehaha commented 1 year ago

Perfect!!!