Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named 'reader' #8

Closed
ballardt opened this issue Sep 24, 2016 · 4 comments
Closed

ImportError: No module named 'reader' #8

ballardt opened this issue Sep 24, 2016 · 4 comments

Comments

@ballardt
Copy link

ballardt commented Sep 24, 2016

I'm currently running Jupyter notebook using tensorflow-notebook . When I try import imageflow, I get the following:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-5-f680d40931f4> in <module>()
----> 1 from imageflow import *

/opt/conda/lib/python3.5/site-packages/imageflow/__init__.py in <module>()
     27 
     28 from imageflow import *
---> 29 from reader import read_and_decode
     30 
     31 __author__ = 'HANEL'

ImportError: No module named 'reader'

Might-be-relevant-software versions:
Python - 3.5.2
Jupyter - 4.1.1
numpy - 1.10.4
Pillow - 3.2.0
tensorflow - 0.9.0
imageflow - 0.0.2

EDIT: Looks like it's a problem with Jupyter notebook, as everything works fine from the command line, so I'll close this.

@HamedMP
Copy link
Owner

HamedMP commented Sep 25, 2016

Dear @ballardt
I just see this, did your problem solved? and if yes, how?

Thanks.

@ballardt
Copy link
Author

I was getting this error when I tried to import ImageFlow from within Jupyter Notebook. It doesn't occur when I do so in a .py file and run the file from the command line with python example.py. I would guess that it's a problem with Jupyter Notebook.

@nguyen14ck
Copy link

nguyen14ck commented Jan 23, 2017

I got the same error on both Windows 10 and CentOS 7 (console, Jupyter and Visual Studio Code). My software versions are:
Python 3.5.2 (Anaconda 4.2 64bit)
Jupyter 5.1 (Anaconda 4.2)
Visual Studio Code 1.8 + Python extension 0.56
Tensorflow 0.12.1
ImageFlow 0.2
Could you help? Thanks.

@HamedMP
Copy link
Owner

HamedMP commented Jan 23, 2017

Hi @nguyen14ck, thanks for reaching out.
As @ballardt stated, this has to be because of Jupyter, more exactly because in the code I use normal Session rather than InteractiveSession.
I will add support for Jupyter by adding InteractiveSession. Also, contributions are welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants