Error during Pip install on Ubuntu 16.04

261 views
Skip to first unread message

Michael O'Brien

unread,
Jan 9, 2017, 11:02:44 AM1/9/17
to airbnb_superset
Used http://airbnb.io/superset/installation.html as the basis for installing

While Python3 is available on Ubuntu 16 its not the default so carried on install using python 2

Created a virtual environment called Superset to hold the python packages and ran pip install superset but I get permission denied about billiard.so
The output is given below but there were no other errors which took place on a clean Ubuntu 16.04 vm with latest updates installed. I also updated pip and setup tools as per the installation guide above

Any pointers how to fix it?

Successfully built superset cryptography flask-appbuilder flask-cache flask-migrate flask-script flask-testing flask-sqlalchemy humanize markdown PyHive simplejson sqlalchemy sqlalchemy-utils sqlparse thrift thrift-sasl billiard Flask-Babel Flask-Login Flask-OpenID alembic future sasl anyjson pycparser itsdangerous python-openid WTForms Mako python-editor MarkupSafe
Installing collected packages: billiard, pytz, anyjson, amqp, kombu, celery, idna, pyasn1, six, enum34, ipaddress, pycparser, cffi, cryptography, colorama, click, itsdangerous, werkzeug, MarkupSafe, Jinja2, Flask, Babel, Flask-Babel, Flask-Login, python-openid, Flask-OpenID, sqlalchemy, flask-sqlalchemy, WTForms, Flask-WTF, flask-appbuilder, flask-cache, Mako, python-editor, alembic, flask-script, flask-migrate, flask-testing, humanize, gunicorn, markdown, python-dateutil, numpy, pandas, parsedatetime, pydruid, future, PyHive, requests, simplejson, sqlalchemy-utils, sqlparse, thrift, sasl, thrift-sasl, superset
Exception:
Traceback (most recent call last):
 
File "/home/michael/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status
= self.run(options, args)
 
File "/home/michael/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix
=options.prefix_path,
 
File "/home/michael/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
   
**kwargs
 
File "/home/michael/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
   
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
 
File "/home/michael/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated
=self.isolated,
 
File "/home/michael/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
    clobber
(source, lib_dir, True)
 
File "/home/michael/.local/lib/python2.7/site-packages/pip/wheel.py", line 323, in clobber
    shutil
.copyfile(srcfile, destfile)
 
File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
   
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/_billiard.so'



Michael O'Brien

unread,
Jan 10, 2017, 9:21:55 AM1/10/17
to airbnb_superset
My mistake I forgot to activate the virtual using source [virtualenvironname]/bin/activate before running the pip command
Reply all
Reply to author
Forward
0 new messages