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

'import tensorbuilder as tb' does not work #1

Closed
lfwin opened this issue Jun 6, 2016 · 4 comments
Closed

'import tensorbuilder as tb' does not work #1

lfwin opened this issue Jun 6, 2016 · 4 comments

Comments

@lfwin
Copy link

lfwin commented Jun 6, 2016

Hi,
how can i import tensorbuilder from another directory or project? right now, seems need copy all the tensorbuilder project into my project folder.

@cgarciae
Copy link
Owner

cgarciae commented Jun 6, 2016

Hi,
There are several points here:

  1. You need to have the dependencies, obviously tensorflow but also the decorator module you can get by pip install decorator
  2. You need to be aware of your Python path. If you put the tensorbuilder folder on the root of your project as suggested but the script you are running is in a subfolder in your project it will not work. An alternative to this would be to move the tensorbuilder folder to where all your pip modules get installed.

@npezolano
Copy link

@cgarciae Can we move the dependencies to a requirements.txt file and add a setup.py? This way the project follows standard python conventions.

@cgarciae
Copy link
Owner

cgarciae commented Jun 6, 2016

@npezolano Sure. If you have experience with making proper python modules that would be of great help! I was planning to look into this in #2 .

@cgarciae
Copy link
Owner

cgarciae commented Jun 6, 2016

@lfwin @npezolano I think this is fixed. Check out the new installation instructions
https://github.com/cgarciae/tensorbuilder#installation

@cgarciae cgarciae closed this as completed Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants