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

Setup Issues on Mac OSX Sierra #6

Closed
bsullins opened this Issue Nov 7, 2016 · 7 comments

Comments

Projects
None yet
3 participants
@bsullins
Copy link
Contributor

bsullins commented Nov 7, 2016

Tried the installation instructions and had issues with the permissions on setup.sh. After I resolved that by running chmod +x setup.sh I was able to complete the setup. In the log it looks like everythign was good, however I get a message "Installation Failed" at the very end.

I then proceeded to try and start the server by running startup.sh from the tabpy-server/tabpy_server/ dir and received a syntax error. Any tips on troubleshooting?

setup log

~~~~~~~~~~~~~~~  Downloading and installing Anaconda  ~~~~~~~~~~~~~~~
Anaconda installed already.
~~~~~~~~~~~~~~~  Activating the environment  ~~~~~~~~~~~~~~~
Conda env 'Tableau-Python-Server' already exists.
~~~~~~~~~~~~~~~  Installing dependencies  ~~~~~~~~~~~~~~~
Requirement already satisfied: awscli==1.6.2 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from -r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied: futures==2.2.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from -r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 2))
Requirement already satisfied: requests==2.3.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from -r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 3))
Requirement already satisfied: simplejson==3.8.2 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from -r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 4))
Requirement already satisfied: Tornado-JSON==1.2.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from -r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 5))
Requirement already satisfied: tornado==4.3 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from -r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 6))
Requirement already satisfied: cloudpickle in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from -r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 7))
Requirement already satisfied: six>=1.1.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from awscli==1.6.2->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied: botocore<0.74.0,>=0.73.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from awscli==1.6.2->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied: colorama==0.2.5 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from awscli==1.6.2->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied: docutils>=0.10 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from awscli==1.6.2->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied: rsa==3.1.2 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from awscli==1.6.2->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied: bcdoc<0.13.0,>=0.12.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from awscli==1.6.2->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied: jsonschema>=2.3.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from Tornado-JSON==1.2.0->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 5))
Requirement already satisfied: jmespath==0.5.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from botocore<0.74.0,>=0.73.0->awscli==1.6.2->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied: python-dateutil>=2.1 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from botocore<0.74.0,>=0.73.0->awscli==1.6.2->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied: pyasn1>=0.1.3 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from rsa==3.1.2->awscli==1.6.2->-r /Users/bensullins/git/TabPy/tabpy-server/requirements.txt (line 1))
Processing /Users/bensullins/git/TabPy/tabpy-client
  Requirement already satisfied (use --upgrade to upgrade): tabpy-client==0.1 from file:///Users/bensullins/git/TabPy/tabpy-client in ./envs/Tableau-Python-Server/lib/python3.5/site-packages
Requirement already satisfied: cloudpickle in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied: decorator in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied: python-dateutil in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied: requests in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied: genson in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied: jsonschema in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied: six>=1.5 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from python-dateutil->tabpy-client==0.1)
Building wheels for collected packages: tabpy-client
  Running setup.py bdist_wheel for tabpy-client ... done
  Stored in directory: /Users/bensullins/Library/Caches/pip/wheels/05/52/e3/c9eaeed9f6770750a325976dc72677090b224f6047270a5049
Successfully built tabpy-client
Processing /Users/bensullins/git/TabPy/tabpy-server
  Requirement already satisfied (use --upgrade to upgrade): tabpy-server==0.1 from file:///Users/bensullins/git/TabPy/tabpy-server in ./envs/Tableau-Python-Server/lib/python3.5/site-packages
Requirement already satisfied: cloudpickle in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied: decorator in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied: python-dateutil in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied: requests in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied: genson in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied: jsonschema in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied: tabpy_client in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied: six>=1.5 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from python-dateutil->tabpy-server==0.1)
Building wheels for collected packages: tabpy-server
  Running setup.py bdist_wheel for tabpy-server ... done
  Stored in directory: /Users/bensullins/Library/Caches/pip/wheels/a0/fd/cb/20ea1aa20fa4d12d3399c8dab2110ad062ca52853ef9e6429c
Successfully built tabpy-server
~~~~~~~~~~~~~~~~~  Installation failed  ~~~~~~~~~~~~~~~~

startup log

Found existing state.ini
  File "/Users/bensullins/git/TabPy/tabpy-server/tabpy_server/tabpy.py", line 103
    print info
             ^
SyntaxError: Missing parentheses in call to 'print'
@bsullins

This comment has been minimized.

Copy link
Contributor Author

bsullins commented Nov 8, 2016

Tried on a different machine, same deal, full logs here

TabPy $ ./setup.sh
-bash: ./setup.sh: Permission denied
 TabPy $ chmod +x setup.sh
 TabPy $ ./setup.sh
~~~~~~~~~~~~~~~  Downloading and installing Anaconda  ~~~~~~~~~~~~~~~
Anaconda installed already.
~~~~~~~~~~~~~~~  Activating the environment  ~~~~~~~~~~~~~~~
Conda env 'Tableau-Python-Server' doesn't exist, creating now.
Source:      /Users/ben/anaconda3
Destination: /Users/ben/anaconda3/envs/Tableau-Python-Server
The following packages cannot be cloned out of the root environment:
 - conda-build-1.21.3-py35_0
 - conda-4.2.11-py35_0
Packages: 170
Files: 73
Linking packages ...
[      COMPLETE      ]|###############################################################################################################################################################################| 100%
#
# To activate this environment, use:
# > source activate Tableau-Python-Server
#
# To deactivate this environment, use:
# > source deactivate Tableau-Python-Server
#

~~~~~~~~~~~~~~~  Installing dependencies  ~~~~~~~~~~~~~~~
Collecting awscli==1.6.2 (from -r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
  Downloading awscli-1.6.2.tar.gz (268kB)
    100% |████████████████████████████████| 276kB 858kB/s 
Collecting futures==2.2.0 (from -r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 2))
  Downloading futures-2.2.0-py2.py3-none-any.whl
Collecting requests==2.3.0 (from -r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 3))
  Downloading requests-2.3.0-py2.py3-none-any.whl (452kB)
    100% |████████████████████████████████| 460kB 1.0MB/s 
Collecting simplejson==3.8.2 (from -r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 4))
  Downloading simplejson-3.8.2-cp35-cp35m-macosx_10_9_x86_64.whl (66kB)
    100% |████████████████████████████████| 71kB 3.2MB/s 
Collecting Tornado-JSON==1.2.0 (from -r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 5))
  Downloading Tornado-JSON-1.2.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): tornado==4.3 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from -r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 6))
Requirement already satisfied (use --upgrade to upgrade): cloudpickle in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from -r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 7))
Collecting botocore<0.74.0,>=0.73.0 (from awscli==1.6.2->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
  Downloading botocore-0.73.0.tar.gz (1.2MB)
    100% |████████████████████████████████| 1.2MB 450kB/s 
Collecting bcdoc<0.13.0,>=0.12.0 (from awscli==1.6.2->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
  Downloading bcdoc-0.12.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): six>=1.1.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from awscli==1.6.2->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
Collecting colorama==0.2.5 (from awscli==1.6.2->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
  Downloading colorama-0.2.5.zip
Requirement already satisfied (use --upgrade to upgrade): docutils>=0.10 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from awscli==1.6.2->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
Collecting rsa==3.1.2 (from awscli==1.6.2->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
  Downloading rsa-3.1.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): jsonschema>=2.3.0 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from Tornado-JSON==1.2.0->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 5))
Collecting jmespath==0.5.0 (from botocore<0.74.0,>=0.73.0->awscli==1.6.2->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
  Downloading jmespath-0.5.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2.1 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from botocore<0.74.0,>=0.73.0->awscli==1.6.2->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.3 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from rsa==3.1.2->awscli==1.6.2->-r /Users/ben/git/TabPy/tabpy-server/requirements.txt (line 1))
Building wheels for collected packages: awscli, Tornado-JSON, botocore, bcdoc, colorama, rsa, jmespath
  Running setup.py bdist_wheel for awscli ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/0e/f7/33/a12522bfb893ba4b931392c9ff13cb7b07346fb5d800b9830e
  Running setup.py bdist_wheel for Tornado-JSON ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/4e/2a/a6/dccc2e0fa5fb416b42427b9022cf22644b984bcf1cc05758a5
  Running setup.py bdist_wheel for botocore ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/98/8c/87/e52f46815ea6f184a05d2fb46705c6f4fb5951b411d34c3230
  Running setup.py bdist_wheel for bcdoc ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/19/87/3f/f595ecbe795f4d43987724f3156ec67b247ce5ff13c3397cb9
  Running setup.py bdist_wheel for colorama ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/41/ae/68/77e29007ae5753c4ff352a96a00c024a5015faa46881fbac51
  Running setup.py bdist_wheel for rsa ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/33/5e/cf/c50b022b5208fcba361d519cbae3f60a94c9c4ac5756f3b4ec
  Running setup.py bdist_wheel for jmespath ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/e9/0e/83/44d34964b498764069381360cb149f46daf3bf520faaba294b
Successfully built awscli Tornado-JSON botocore bcdoc colorama rsa jmespath
Installing collected packages: jmespath, botocore, bcdoc, colorama, rsa, awscli, futures, requests, simplejson, Tornado-JSON
  Found existing installation: colorama 0.3.7
    DEPRECATION: Uninstalling a distutils installed project (colorama) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling colorama-0.3.7:
      Successfully uninstalled colorama-0.3.7
  Found existing installation: requests 2.10.0
    Uninstalling requests-2.10.0:
      Successfully uninstalled requests-2.10.0
Successfully installed Tornado-JSON-1.2.0 awscli-1.6.2 bcdoc-0.12.2 botocore-0.73.0 colorama-0.2.5 futures-2.2.0 jmespath-0.5.0 requests-2.3.0 rsa-3.1.2 simplejson-3.8.2
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Processing /Users/ben/git/TabPy/tabpy-client
Requirement already satisfied (use --upgrade to upgrade): cloudpickle in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied (use --upgrade to upgrade): decorator in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied (use --upgrade to upgrade): requests in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Collecting genson (from tabpy-client==0.1)
  Downloading genson-0.2.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): jsonschema in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-client==0.1)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from python-dateutil->tabpy-client==0.1)
Building wheels for collected packages: tabpy-client, genson
  Running setup.py bdist_wheel for tabpy-client ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/2e/5b/1d/5906903a4fe8efa44bd7a2a642e9ec41bce1416b89c6fd1a70
  Running setup.py bdist_wheel for genson ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/17/8e/38/3291d77c5a79916cbb4914c1eeeda9fb00e58ce0cb7596ddb0
Successfully built tabpy-client genson
Installing collected packages: genson, tabpy-client
Successfully installed genson-0.2.0 tabpy-client-0.1
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Processing /Users/ben/git/TabPy/tabpy-server
Requirement already satisfied (use --upgrade to upgrade): cloudpickle in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied (use --upgrade to upgrade): decorator in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied (use --upgrade to upgrade): requests in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied (use --upgrade to upgrade): genson in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied (use --upgrade to upgrade): jsonschema in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied (use --upgrade to upgrade): tabpy_client in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from tabpy-server==0.1)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in ./envs/Tableau-Python-Server/lib/python3.5/site-packages (from python-dateutil->tabpy-server==0.1)
Building wheels for collected packages: tabpy-server
  Running setup.py bdist_wheel for tabpy-server ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/c5/07/3e/29e4f828a3d2cf70f46ba0de4fc29c71933a1fe554fb594c15
Successfully built tabpy-server
Installing collected packages: tabpy-server
Successfully installed tabpy-server-0.1
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
~~~~~~~~~~~~~~~~~  Installation failed  ~~~~~~~~~~~~~~~~
@BBeran

This comment has been minimized.

Copy link
Contributor

BBeran commented Nov 8, 2016

Hi Ben,
Is suspect you have Python 3. Is that correct? TabPy code is for 2.7. Maybe I should add a version check in the installer.

Thanks,

Bora

@bsullins

This comment has been minimized.

Copy link
Contributor Author

bsullins commented Nov 8, 2016

Correct, can I not have a 2.7 profile separate for TabPy?

$ python --version Python 3.5.2 :: Anaconda 4.2.0 (x86_64)

@BBeran

This comment has been minimized.

Copy link
Contributor

BBeran commented Nov 14, 2016

You can manually create a Python 2.7 environment.

conda create --name Tableau-Python-Server python=2.7 anaconda

then activate it

and do the pip install from local folders

pip install -r ./tabpy-server/requirements.txt
pip install ./tabpy-client
pip install ./tabpy-server
@BBeran

This comment has been minimized.

Copy link
Contributor

BBeran commented Nov 17, 2016

Resolving this since others reported that they were able to follow the steps for creating a Python 2.7 environment listed above and successfully started the server.

@BBeran BBeran closed this Nov 17, 2016

@edrexplore

This comment has been minimized.

Copy link

edrexplore commented Jan 24, 2017

I tried installing by running the setup.sh in terminal but failed as a python 3 user. Attempting the method described by @BBeran didn't work either.

What do I do?

screen shot 2017-01-24 at 11 52 16

@BBeran

This comment has been minimized.

Copy link
Contributor

BBeran commented Jan 25, 2017

Hi Ben,
Can you share some details on how it failed? E.g. it created a 2.7 environment, activated it and then setup failed. Or did it fail somewhere before? Or it succeeded but connection failed when you attempted from Tableau?

Thank you,

Bora

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