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

As user I want to use Python 3.5 to do "jupyter pixiedust install" #437

Closed
romulogoncalves opened this issue Aug 24, 2017 · 1 comment
Closed
Milestone

Comments

@romulogoncalves
Copy link

Expected behavior

jupyter pixiedust install
Step 1: PIXIEDUST_HOME: /root/pixiedust
Keep y/n [y]? n
Please enter a PIXIEDUST_HOME location: /data/local/pixiedust
Step 2: SPARK_HOME: /data/local/pixiedust/bin/spark
Keep y/n [y]? n
Step 2: Please enter a SPARK_HOME location: /usr/lib/spark
downloaded spark cloudant jar: /data/local/pixiedust/bin/cloudant-spark-v2.0.0-185.jar
Step 3: SCALA_HOME: /data/local/pixiedust/bin/scala
Keep y/n [y]? n
Step 3: Please enter a SCALA_HOME location: /usr/share/scala
String is Scala code runner version 2.11.8 -- Copyright 2002-2016, LAMP/EPFL

Step 4: Kernel Name: Python with Pixiedust (Spark 2.1)
Keep y/n [y]? n
Please enter a Kernel Name: Python with Pixiedust (Spark 2.1)
self.kernelInternalName pythonwithpixiedustspark21
[PixiedustInstall] Installed kernelspec pythonwithpixiedustspark21 in /root/.local/share/jupyter/kernels/pythonwithpixiedustspark21
Downloading intro notebooks into /data/local/pixiedust/notebooks
...https://github.com/ibm-watson-data-lab/pixiedust/raw/master/notebook/PixieDust 1 - Easy Visualizations.ipynb : done
...https://github.com/ibm-watson-data-lab/pixiedust/raw/master/notebook/PixieDust 2 - Working with External Data.ipynb : done
...https://github.com/ibm-watson-data-lab/pixiedust/raw/master/notebook/PixieDust 3 - Scala and Python.ipynb : done
...https://github.com/ibm-watson-data-lab/pixiedust/raw/master/notebook/PixieDust 4 - Add External Spark Packages.ipynb : done
...https://github.com/ibm-watson-data-lab/pixiedust/raw/master/notebook/PixieDust 5 - Stash to Cloudant.ipynb : done
...https://github.com/ibm-watson-data-lab/pixiedust/raw/master/notebook/PixieDust Contribute.ipynb : done

/####################################################################################################
/# Congratulations: Kernel Python with Pixiedust (Spark 2.1) was successfully created in /root/.local/share/jupyter/kernels/pythonwithpixiedustspark21
/# You can start the Notebook server with the following command:
/# jupyter notebook /data/local/pixiedust/notebooks
/####################################################################################################

Actual behavior

jupyter pixiedust install
Step 1: PIXIEDUST_HOME: /root/pixiedust
Keep y/n [y]? n
Please enter a PIXIEDUST_HOME location: /data/local/pixiedust
Step 2: SPARK_HOME: /data/local/pixiedust/bin/spark
Keep y/n [y]? n
Step 2: Please enter a SPARK_HOME location: /usr/lib/spark-2.1.1-bin-without-hadoop
downloaded spark cloudant jar: /data/local/pixiedust/bin/cloudant-spark-v2.0.0-185.jar
Step 3: SCALA_HOME: /data/local/pixiedust/bin/scala
Keep y/n [y]? n
Step 3: Please enter a SCALA_HOME location: /usr/lib/scala
Directory /usr/lib/scala does not exist
Create y/n [y]? n
Step 3: SCALA_HOME: /data/local/pixiedust/bin/scala
Keep y/n [y]? n
Step 3: Please enter a SCALA_HOME location: /usr/share/scala
Traceback (most recent call last):
File "/usr/local/bin/jupyter-pixiedust", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/install/pixiedustapp.py", line 42, in main
PixiedustJupyterApp.launch_instance()
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 657, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 296, in initialize
self.parse_command_line(argv)
File "", line 2, in parse_command_line
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 514, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "", line 2, in initialize_subcommand
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 452, in initialize_subcommand
self.subapp.initialize(argv)
File "", line 2, in initialize
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/jupyter_core/application.py", line 239, in initialize
self.parse_command_line(argv)
File "/usr/local/lib/python3.5/dist-packages/install/createKernel.py", line 248, in parse_command_line
installed_scala_version = self.get_scala_version()
File "/usr/local/lib/python3.5/dist-packages/install/createKernel.py", line 429, in get_scala_version
return get_scala_version_from_dir(self.scala_home)
NameError: name 'get_scala_version_from_dir' is not defined

Steps to reproduce the behavior

jupyter pixiedust install
Step 1: PIXIEDUST_HOME: /root/pixiedust
Keep y/n [y]? n
Please enter a PIXIEDUST_HOME location: /data/local/pixiedust
Step 2: SPARK_HOME: /data/local/pixiedust/bin/spark
Keep y/n [y]? n
Step 2: Please enter a SPARK_HOME location: /usr/lib/spark-2.1.1-bin-without-hadoop
downloaded spark cloudant jar: /data/local/pixiedust/bin/cloudant-spark-v2.0.0-185.jar
Step 3: SCALA_HOME: /data/local/pixiedust/bin/scala
Keep y/n [y]? n
Step 3: Please enter a SCALA_HOME location: /usr/lib/scala
Directory /usr/lib/scala does not exist
Create y/n [y]? n
Step 3: SCALA_HOME: /data/local/pixiedust/bin/scala
Keep y/n [y]? n
Step 3: Please enter a SCALA_HOME location: /usr/share/scala

Reason:
https://github.com/ibm-watson-data-lab/pixiedust/blob/master/install/createKernel.py#L428
Instead of:
def get_scala_version(self):
return get_scala_version_from_dir(self.scala_home)

Should not it be:
def get_scala_version(self):
return self.get_scala_version_from_dir(self.scala_home)

@DTAIEB
Copy link
Member

DTAIEB commented Aug 28, 2017

@markwatsonatx can you take a look?

@DTAIEB DTAIEB added this to the 1.0.11 milestone Aug 28, 2017
markwatsonatx added a commit that referenced this issue Aug 29, 2017
DTAIEB pushed a commit that referenced this issue Sep 1, 2017
@DTAIEB DTAIEB closed this as completed Sep 5, 2017
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