Using tensorflow image recognition


#1

Hi,

I’m getting the following errors when attempting to use tensorflow in my app. I’m sorry but am a bit new development with meteor. Will someone please advise if this is a path issue or what might be going on?

W20171010-18:22:08.244(-6)? (STDERR) /Users/DJ/Dropbox/PREWORK_DJ/Code/foodgram/.meteor/local/build/programs/server/app/app.js:540
W20171010-18:22:08.250(-6)? (STDERR) if (err) throw err; // 19
W20171010-18:22:08.257(-6)? (STDERR) ^
W20171010-18:22:08.262(-6)? (STDERR)
W20171010-18:22:08.271(-6)? (STDERR) Error: python: can’t open file ‘tensor.py’: [Errno 2] No such file or directory
W20171010-18:22:08.275(-6)? (STDERR)
W20171010-18:22:08.280(-6)? (STDERR) at [object Object].PythonShell.parseError (/Users/DJ/Dropbox/PREWORK_DJ/Code/foodgram/node_modules/python-shell/index.js:190:17)
W20171010-18:22:08.285(-6)? (STDERR) at terminateIfNeeded (/Users/DJ/Dropbox/PREWORK_DJ/Code/foodgram/node_modules/python-shell/index.js:98:28)
W20171010-18:22:08.290(-6)? (STDERR) at ChildProcess. (/Users/DJ/Dropbox/PREWORK_DJ/Code/foodgram/node_modules/python-shell/index.js:88:9)
W20171010-18:22:08.295(-6)? (STDERR) at emitTwo (events.js:87:13)
W20171010-18:22:08.298(-6)? (STDERR) at ChildProcess.emit (events.js:172:7)
W20171010-18:22:08.302(-6)? (STDERR) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
=> Exited with code: 1
=> Meteor server restarted


#2

This error is coming from python-shell and says quite clearly:

can’t open file ‘tensor.py’: [Errno 2] No such file or directory

So yeah, it’s probably a path issue