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

Install location python3. #6

Closed
ruffsl opened this issue Jan 26, 2016 · 2 comments
Closed

Install location python3. #6

ruffsl opened this issue Jan 26, 2016 · 2 comments
Labels
Milestone

Comments

@ruffsl
Copy link

ruffsl commented Jan 26, 2016

After the conda's pip install didn't work (didn't see any changes in the notebook UI):

I tried to the Installation Troubleshooting:

ubuntu@eve:~$ jupyter --config-dir
/home/ubuntu/.jupyter
ubuntu@eve:~$ which ipython
/home/ubuntu/anaconda3/bin/ipython
ubuntu@eve:~$ ipython
Python 3.5.1 |Anaconda 2.4.1 (64-bit)| (default, Dec  7 2015, 11:16:01) 
Type "copyright", "credits" or "license" for more information.

IPython 4.0.3 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import hide_code.hide_code as hc

In [2]: dir = "/home/ubuntu/.jupyter"

In [3]: hc.install(dir)
Starting hide_code.js install...
No config directories contain "custom" folder. Trying site-packages...
Using argument supplied path: /home/ubuntu/.jupyter
Copying hide_code.js to /home/ubuntu/.jupyter
Attempting to configure custom.js to auto-load hide__code.js...
Custom.js not in custom directory.

This didn't change anything, I assume from the directory issue above. So I tried installing from source

$ python setup.py install
running install
running build
running build_py
running install_lib
running install_egg_info
running egg_info
writing hide_code.egg-info/PKG-INFO
writing requirements to hide_code.egg-info/requires.txt
writing top-level names to hide_code.egg-info/top_level.txt
writing dependency_links to hide_code.egg-info/dependency_links.txt
reading manifest file 'hide_code.egg-info/SOURCES.txt'
writing manifest file 'hide_code.egg-info/SOURCES.txt'
removing '/home/ubuntu/anaconda3/lib/python3.5/site-packages/hide_code-0.1.4-py3.5.egg-info' (and everything under it)
Copying hide_code.egg-info to /home/ubuntu/anaconda3/lib/python3.5/site-packages/hide_code-0.1.4-py3.5.egg-info
running install_scripts
Running post install task...
Starting hide_code.js install...
No config directories contain "custom" folder. Trying site-packages...
Unable to install into /home/ubuntu/anaconda3/lib/python3./site-packages/notebook/static/custom
Directory doesn't exist.
Make sure Jupyter is installed.

Then I saw it was trying to access a python3. directory that didn't exist, make a soft link for it pointing to python3.5, re-ran the install, then it worked in jupyter just fine. Not sure if this is a bug or just an install note. Would've been nice it pip install behaved.

@kirbs-
Copy link
Owner

kirbs- commented Feb 1, 2016

@ruffsl would you download the dev branch and try installing again?

@ruffsl
Copy link
Author

ruffsl commented Feb 1, 2016

I removed the soft link I made earer, checked out and built the dev branch and I looks to be finding the correct directory. Thanks!

hide_code$ python setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/hide_code
copying hide_code/hide_code.py -> build/lib/hide_code
copying hide_code/__init__.py -> build/lib/hide_code
copying hide_code/hide_code.js -> build/lib/hide_code
copying hide_code/README.txt -> build/lib/hide_code
copying hide_code/auto-load.txt -> build/lib/hide_code
copying hide_code/LICENSE.txt -> build/lib/hide_code
running install_lib
copying build/lib/hide_code/hide_code.py -> /home/ubuntu/anaconda3/lib/python3.5/site-packages/hide_code
copying build/lib/hide_code/hide_code.js -> /home/ubuntu/anaconda3/lib/python3.5/site-packages/hide_code
byte-compiling /home/ubuntu/anaconda3/lib/python3.5/site-packages/hide_code/hide_code.py to hide_code.cpython-35.pyc
running install_egg_info
running egg_info
creating hide_code.egg-info
writing top-level names to hide_code.egg-info/top_level.txt
writing requirements to hide_code.egg-info/requires.txt
writing hide_code.egg-info/PKG-INFO
writing dependency_links to hide_code.egg-info/dependency_links.txt
writing manifest file 'hide_code.egg-info/SOURCES.txt'
reading manifest file 'hide_code.egg-info/SOURCES.txt'
writing manifest file 'hide_code.egg-info/SOURCES.txt'
Copying hide_code.egg-info to /home/ubuntu/anaconda3/lib/python3.5/site-packages/hide_code-0.1.5-py3.5.egg-info
running install_scripts
Running post install task...
Starting hide_code.js install...
No config directories contain "custom" folder. Trying site-packages...
Copying hide_code.js to /home/ubuntu/anaconda3/lib/python3.5/site-packages/notebook/static/custom
Attempting to configure custom.js to auto-load hide__code.js...
Custom.js already configured to auto-load hide_code.js.

@kirbs- kirbs- added this to the 1.5 milestone Feb 1, 2016
kirbs- added a commit that referenced this issue Feb 1, 2016
@kirbs- kirbs- closed this as completed Feb 1, 2016
@kirbs- kirbs- reopened this Feb 1, 2016
kirbs- added a commit that referenced this issue Feb 1, 2016
kirbs- added a commit that referenced this issue Feb 1, 2016
Revert "Fixes for issues #4 & #6."
@kirbs- kirbs- closed this as completed Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants