Skip to content

Tensor flow re-install error ; Tensorboard configuration Error  #376

@gbortz27

Description

@gbortz27
  1. Tensorflow wont install - although it is running; I loaded it sometime back so I think my setup has changed.

    i) it was not running initially and trying a certain number of combinations regarding the setting of environmental variables it started running. But this is a problem as now Tensorboard is not running.
    ii) firstly my setup (Windows 10)

      a) R Tensorflow version : 2.0.0
      b) tfestimators version 1.9.1
      c) keras version 2.2.5.0 ( I intend to run keras eventually ) 
      e) Python 3.6
      d) environmental Variables :
                          Conda (C:\Users\gbort\Anaconda3\Scripts)
                          Python  (C:\Users\gbort\Anaconda3\envs\r-tensorflow)
       Question: Do I have to have another tensorflow or tensorboard env variables or does python 
        bind to these .. This is where my confusion lies 
       There is a python folder in the R library folder under reticulate 
       C:\Users\gbort\Documents\R\win-library\3.6\reticulate\python
    

THE PROBLEMS

  1. I want to re-install the tensorflow - conda config

  2. install_tensorflow(method="conda")

Error: Unable to create process using 'C:\Users\gbort\ANACON1\python.exe C:\Users\gbort\ANACON1\Scripts\conda-script.py "create" "--yes" "--name" "r-reticulate" "python=3.6"'
Error: Error 101 occurred creating conda environment r-reticulate

Tensorboard Error , see below for the code and errors

  1. 
     # Set up your session
     EmployeeSession <- tf$Session()
     
     # Add your constants
     female <- tf$constant(150, name = "FemaleEmployees")
     male <- tf$constant(135, name = "MaleEmployees")
     total <- tf$add(female, male)
     print(EmployeeSession$run(total))
     
     # Write to file
     towrite <- tf$summary$FileWriter('./graphs', EmployeeSession$graph)
     
     # Open Tensorboard
     tensorboard(log_dir = './graphs')
    
    

Error: **invalid version specification ‘Traceback (most recent call last):’, ‘ File "C:\Users\gbort\ANACON~1\envs\R-TENS~1\Scripts\tensorboard-script.py", line 10, in <module>’, ‘ sys.exit(run_main())’, ‘ File "C:\Users\gbort\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorboard\main.py", line 51, in run_main’, ‘ server.configure(sys.argv[1:])’, ‘ File "C:\Users\gbort\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorboard\program.py", line 143, in configure’, ‘ loader.fix_flags(flags)’, ‘ File "C:\Users\gbort\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorboard\plugins\core\core_plugin.py", line 405, in fix_flags’, ‘ raise ValueError('A logdir or db must be specified. '’, ‘ValueError: A logdir or db must be specified. For example `tensorboard --logdir mylogdir` or `tensorboard --db sqlite:~/.tensorboard.db`. Run `tensorboard --helpfull` for details and examples.’**

Dont understand the error ,

Many Thanks


By ther way when I run 

    tf_config()

the response is:

**TensorFlow v1.10.0 (C:\Users\gbort\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorflow\__init__.p) Python v3.6 (C:\Users\gbort\ANACON~1\envs\R-TENS~1\python.exe)**

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions