dwgoon / jpegio

A python package for accessing the internal variables of JPEG file format such as DCT coefficients and quantization tables
Apache License 2.0
73 stars 18 forks source link

Fails on colab #12

Closed abhinavtripathi95 closed 4 years ago

abhinavtripathi95 commented 4 years ago

Error

module 'jpegio' has no attribute 'read'

Code to reproduce

Start a google colab session and type

! git clone https://github.com/dwgoon/jpegio.git
%cd jpegio/
!python setup.py install
%cd .. 

import jpegio
out = jpegio.read('img.jpg')

This will show you the error

AttributeError: module 'jpegio' has no attribute 'read'
dwgoon commented 4 years ago

After installing, restart your colab session, and try again, please.

abhinavtripathi95 commented 4 years ago

Thanks, @dwgoon ! It works after restarting the colab session. I'm closing this issue.

dwgoon commented 4 years ago

Good! :)