sudo jython ez_setup.py
Thufir Hawat <[email protected]> Mon, 16 Jan 2017 13:55:14 -0800 (PST)
| Newsgroups | gmane.comp.lang.jython.user |
|---|---|
| Message-ID | <[email protected]> |
Is it typical to have to resort to sudo to install ez_setup.py? This is following quite closely to the Jython book: http://www.jython.org/jythonbook/en/1.0/appendixA.html Because of root permissions, nearly everything must be done with root. On top of that, yolk, I don't think, is running. I suppose this is where virtual environments are handy? see attached sudo.txt pls. thanks, Thufir ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Jython-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jython-users
sudo.txt
(text/plain, 10.2 KB)
thufir@doge:~/jython$
thufir@doge:~/jython$ jython ez_setup.py
"my" variable $jythonHome masks earlier declaration in same scope at /usr/bin/jython line 15.
Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/Lib/site-packages/test-easy-install-116403823.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/Lib/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
http://peak.telecommunity.com/EasyInstall.html
Please make the appropriate changes for your system and try again.
thufir@doge:~/jython$
thufir@doge:~/jython$ sudo jython ez_setup.py
"my" variable $jythonHome masks earlier declaration in same scope at /usr/bin/jython line 15.
Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
Processing setuptools-0.6c11-py2.5.egg
Copying setuptools-0.6c11-py2.5.egg to /usr/Lib/site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.5 script to /usr/bin
Installed /usr/Lib/site-packages/setuptools-0.6c11-py2.5.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
thufir@doge:~/jython$
thufir@doge:~/jython$ easy_install python-twitter
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-30466.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.7/dist-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
thufir@doge:~/jython$
thufir@doge:~/jython$ sudo easy_install python-twitter
Searching for python-twitter
Reading https://pypi.python.org/simple/python-twitter/
Downloading https://pypi.python.org/packages/6c/d4/42dc3cf73f49bd325aa6620e39c75d091ea0d1312877900fc66f5c6bf695/python-twitter-3.2.tar.gz#md5=d4cc9b004cec760a26b48e4d70834b4c
Best match: python-twitter 3.2
Processing python-twitter-3.2.tar.gz
Writing /tmp/easy_install-XEqubn/python-twitter-3.2/setup.cfg
Running python-twitter-3.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XEqubn/python-twitter-3.2/egg-dist-tmp-mN5NBI
zip_safe flag not set; analyzing archive contents...
Installed /tmp/easy_install-XEqubn/python-twitter-3.2/.eggs/pytest_runner-2.9-py2.7.egg
no previously-included directories found matching '.DS_Store'
zip_safe flag not set; analyzing archive contents...
Moving python_twitter-3.2-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding python-twitter 3.2 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/python_twitter-3.2-py2.7.egg
Processing dependencies for python-twitter
Searching for requests-oauthlib
Reading https://pypi.python.org/simple/requests-oauthlib/
Downloading https://pypi.python.org/packages/46/9b/c28061cc63298bc29ff7d668e18c5293bb522e946aaeb98e4c552d2c0f7b/requests-oauthlib-0.7.0.tar.gz#md5=f770e7313035ecad1edd10ce50d1caec
Best match: requests-oauthlib 0.7.0
Processing requests-oauthlib-0.7.0.tar.gz
Writing /tmp/easy_install-CZZH_c/requests-oauthlib-0.7.0/setup.cfg
Running requests-oauthlib-0.7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CZZH_c/requests-oauthlib-0.7.0/egg-dist-tmp-FF6qxF
no previously-included directories found matching '*.pyc'
creating /usr/local/lib/python2.7/dist-packages/requests_oauthlib-0.7.0-py2.7.egg
Extracting requests_oauthlib-0.7.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding requests-oauthlib 0.7.0 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/requests_oauthlib-0.7.0-py2.7.egg
Searching for requests
Downloading https://pypi.python.org/packages/46/9b/c28061cc63298bc29ff7d668e18c5293bb522e946aaeb98e4c552d2c0f7b/requests-oauthlib-0.7.0.tar.gz#md5=f770e7313035ecad1edd10ce50d1caec
Best match: requests oauthlib-0.7.0
Processing requests-oauthlib-0.7.0.tar.gz
Writing /tmp/easy_install-gwJBLe/requests-oauthlib-0.7.0/setup.cfg
Running requests-oauthlib-0.7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-gwJBLe/requests-oauthlib-0.7.0/egg-dist-tmp-s3Mgje
no previously-included directories found matching '*.pyc'
removing '/usr/local/lib/python2.7/dist-packages/requests_oauthlib-0.7.0-py2.7.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/requests_oauthlib-0.7.0-py2.7.egg
Extracting requests_oauthlib-0.7.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
requests-oauthlib 0.7.0 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/requests_oauthlib-0.7.0-py2.7.egg
error: The 'requests' distribution was not found and is required by python-twitter
thufir@doge:~/jython$
thufir@doge:~/jython$ sudo jython ez_install.py yolk
"my" variable $jythonHome masks earlier declaration in same scope at /usr/bin/jython line 15.
IOError: [Errno 2] File not found - /home/thufir/jython/ez_install.py (No such file or directory)
thufir@doge:~/jython$
thufir@doge:~/jython$ jython /usr/bin/easy_install yolk
"my" variable $jythonHome masks earlier declaration in same scope at /usr/bin/jython line 15.
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/Lib/site-packages/test-easy-install-1802584604.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/Lib/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
http://peak.telecommunity.com/EasyInstall.html
Please make the appropriate changes for your system and try again.
thufir@doge:~/jython$
thufir@doge:~/jython$ sudo jython /usr/bin/easy_install yolk
"my" variable $jythonHome masks earlier declaration in same scope at /usr/bin/jython line 15.
Searching for yolk
Reading http://pypi.python.org/simple/yolk/
Best match: yolk 0.4.3
Downloading https://pypi.python.org/packages/2b/c0/73510e50668b70f3fad25328c58d7a29a300a2e452058dfdcb7c7538af7b/yolk-0.4.3.tar.gz#md5=10dfabca7a020058436aec9dbad70123
Processing yolk-0.4.3.tar.gz
Running yolk-0.4.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZJ8tow/yolk-0.4.3/egg-dist-tmp-bcGFcH
warning: no files found matching '*.txt' under directory 'tests'
warning: no files found matching '*.conf' under directory 'docs'
warning: no files found matching '*.css_t' under directory 'docs'
warning: no files found matching 'indexsidebar.html' under directory 'docs'
warning: no files found matching 'tests/test_cli.py'
zip_safe flag not set; analyzing archive contents...
Unable to analyze compiled code on this platform.
Please ask the author to include a 'zip_safe' setting (either True or False) in the package's setup.py
Adding yolk 0.4.3 to easy-install.pth file
Installing yolk script to /usr/bin
Installed /usr/Lib/site-packages/yolk-0.4.3-py2.5.egg
Processing dependencies for yolk
Finished processing dependencies for yolk
thufir@doge:~/jython$
thufir@doge:~/jython$ yolk -l
"my" variable $jythonHome masks earlier declaration in same scope at /usr/bin/jython line 15.
Traceback (most recent call last):
File "/usr/bin/yolk", line 7, in <module>
sys.exit(
File "/usr/Lib/site-packages/setuptools-0.6c11-py2.5.egg/pkg_resources.py", line 318, in load_entry_point
File "/usr/Lib/site-packages/setuptools-0.6c11-py2.5.egg/pkg_resources.py", line 2221, in load_entry_point
File "/usr/Lib/site-packages/setuptools-0.6c11-py2.5.egg/pkg_resources.py", line 1954, in load
File "/usr/Lib/site-packages/yolk-0.4.3-py2.5.egg/yolk/cli.py", line 30, in <module>
import webbrowser
ImportError: No module named webbrowser
thufir@doge:~/jython$
thufir@doge:~/jython$ sudo yolk -l
"my" variable $jythonHome masks earlier declaration in same scope at /usr/bin/jython line 15.
Traceback (most recent call last):
File "/usr/bin/yolk", line 7, in <module>
sys.exit(
File "/usr/Lib/site-packages/setuptools-0.6c11-py2.5.egg/pkg_resources.py", line 318, in load_entry_point
File "/usr/Lib/site-packages/setuptools-0.6c11-py2.5.egg/pkg_resources.py", line 2221, in load_entry_point
File "/usr/Lib/site-packages/setuptools-0.6c11-py2.5.egg/pkg_resources.py", line 1954, in load
File "/usr/Lib/site-packages/yolk-0.4.3-py2.5.egg/yolk/cli.py", line 30, in <module>
import webbrowser
ImportError: No module named webbrowser
thufir@doge:~/jython$