Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Rushal Verma rusrushal13

🏠
Working from home
View GitHub Profile
View response
rushal@rushal-Lenovo-B560:~/src/zenodo$ curl -v www.github.com
* Rebuilt URL to: www.github.com/
* Trying 192.30.253.113...
* Connected to www.github.com (192.30.253.113) port 80 (#0)
> GET / HTTP/1.1
> Host: www.github.com
> User-Agent: curl/7.50.1
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
View setup-assets.sh
(zenodo) rushal@rushal-Lenovo-B560:~/src/zenodo$ ./scripts/setup-assets.sh
/usr/local/lib/python2.7/dist-packages/dojson/contrib/to_marc21/model.py:22: UserWarning: MARC21 undo feature is experimental
warnings.warn('MARC21 undo feature is experimental')
Warn: 'angular-loading-bar' version ['~0.9.0', '~0.9.0'] resolved to: '~0.9.0'
Warn: 'almond' version ['~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1'] resolved to: '~0.3.1'
Warn: 'bootstrap-switch' version ['~3.0.2', '~3.0.2', '~3.0.2', '~3.0.2'] resolved to: '~3.0.2'
Warn: 'font-awesome' version ['~4.4.0', '~4.4.0'] resolved to: '~4.4.0'
No handlers could be found for logger "semver"
Warn: u'prismjs' version [u'1.4.1', u'1.4.1'] resolved to: u'1.4.1'
Warn: 'angular-sanitize' version ['~1.4.9', '~1.4.10', '~1.4.10'] resolved to: '~1.4.9'
View sudo setup-assets.sh
(zenodo) rushal@rushal-Lenovo-B560:~/src/zenodo$ sudo ./scripts/setup-assets.sh
/usr/local/lib/python2.7/dist-packages/dojson/contrib/to_marc21/model.py:22: UserWarning: MARC21 undo feature is experimental
warnings.warn('MARC21 undo feature is experimental')
Warn: 'angular-loading-bar' version ['~0.9.0', '~0.9.0'] resolved to: '~0.9.0'
Warn: 'almond' version ['~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1'] resolved to: '~0.3.1'
Warn: 'bootstrap-switch' version ['~3.0.2', '~3.0.2', '~3.0.2', '~3.0.2'] resolved to: '~3.0.2'
Warn: 'font-awesome' version ['~4.4.0', '~4.4.0'] resolved to: '~4.4.0'
No handlers could be found for logger "semver"
Warn: u'prismjs' version [u'1.4.1', u'1.4.1'] resolved to: u'1.4.1'
Warn: 'angular-sanitize' version ['~1.4.9', '~1.4.10', '~1.4.10'] resolved to: '~1.4.9'
View docker-compose build
Compiling './zenodo/lib/python2.7/site-packages/packaging/markers.py'...
Compiling './zenodo/lib/python2.7/site-packages/packaging/requirements.py'...
Compiling './zenodo/lib/python2.7/site-packages/packaging/specifiers.py'...
Compiling './zenodo/lib/python2.7/site-packages/packaging/utils.py'...
Compiling './zenodo/lib/python2.7/site-packages/packaging/version.py'...
Listing './zenodo/lib/python2.7/site-packages/packaging-16.8.dist-info'...
Listing './zenodo/lib/python2.7/site-packages/pip'...
Compiling './zenodo/lib/python2.7/site-packages/pip/__init__.py'...
Compiling './zenodo/lib/python2.7/site-packages/pip/__main__.py'...
Listing './zenodo/lib/python2.7/site-packages/pip/_vendor'...
View pkg_resources.DistributionNotFound
Traceback (most recent call last):
File "/usr/local/bin/zenodo", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 3036, in <module>
@_call_aside
File "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 3020, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 3049, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 654, in _build_master
View celery worker
(zenodo) rushal@rushal-Lenovo-B560:~/src/zenodo$ celery worker -A zenodo.celery -l INFO --purge
[2017-03-06 20:20:50,533] ERROR in app: Failed to initialize entry point: invenio_pidstore = invenio_pidstore:InvenioPIDStore
Traceback (most recent call last):
File "/usr/local/bin/celery", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/celery/__main__.py", line 30, in main
main()
File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 81, in main
cmd.execute_from_commandline(argv)
File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 793, in execute_from_commandline
View pip
(zenodo) rushal@rushal-Lenovo-B560:~/src/zenodo$ sudo pip install -r requirements.txt --src ~/src/ --pre --upgrade
The directory '/home/rushal/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/rushal/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Obtaining zenodo-migrator from git+https://github.com/zenodo/zenodo-migrator.git#egg=zenodo-migrator (from -r requirements.txt (line 29))
Updating /home/rushal/src/zenodo-migrator clone
Obtaining invenio-migrator from git+https://github.com/lnielsen/invenio-migrator.git@#egg=invenio-migrator (from -r requirements.txt (line 30))
Updating /home/rushal/src/invenio-migrator clone
Requirement already up-to-date:
View gist
(zenodo) rushal@rushal-Lenovo-B560:~/src/zenodo$ sudo ./scripts/setup-assets.sh
/usr/local/lib/python2.7/dist-packages/dojson/contrib/to_marc21/model.py:22: UserWarning: MARC21 undo feature is experimental
warnings.warn('MARC21 undo feature is experimental')
Warn: 'angular-loading-bar' version ['~0.9.0', '~0.9.0'] resolved to: '~0.9.0'
Warn: 'almond' version ['~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1'] resolved to: '~0.3.1'
Warn: 'bootstrap-switch' version ['~3.0.2', '~3.0.2', '~3.0.2', '~3.0.2'] resolved to: '~3.0.2'
Warn: 'font-awesome' version ['~4.4.0', '~4.4.0'] resolved to: '~4.4.0'
No handlers could be found for logger "semver"
Warn: u'prismjs' version [u'1.4.1', u'1.4.1'] resolved to: u'1.4.1'
Warn: 'angular-sanitize' version ['~1.4.9', '~1.4.10', '~1.4.10'] resolved to: '~1.4.9'
View gist
(zenodo) rushal@rushal-Lenovo-B560:~/src/zenodo$ sudo ./scripts/setup-assets.sh
[sudo] password for rushal:
/usr/local/lib/python2.7/dist-packages/dojson/contrib/to_marc21/model.py:22: UserWarning: MARC21 undo feature is experimental
warnings.warn('MARC21 undo feature is experimental')
Warn: 'angular-loading-bar' version ['~0.9.0', '~0.9.0'] resolved to: '~0.9.0'
Warn: 'almond' version ['~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1'] resolved to: '~0.3.1'
Warn: 'bootstrap-switch' version ['~3.0.2', '~3.0.2', '~3.0.2', '~3.0.2'] resolved to: '~3.0.2'
Warn: 'font-awesome' version ['~4.4.0', '~4.4.0'] resolved to: '~4.4.0'
No handlers could be found for logger "semver"
Warn: u'prismjs' version [u'1.4.1', u'1.4.1'] resolved to: u'1.4.1'
View gist
(zenodo) rushal@rushal-Lenovo-B560:~/src/zenodo$ sudo ./scripts/setup-assets.sh
/usr/local/lib/python2.7/dist-packages/dojson/contrib/to_marc21/model.py:22: UserWarning: MARC21 undo feature is experimental
warnings.warn('MARC21 undo feature is experimental')
Warn: 'angular-loading-bar' version ['~0.9.0', '~0.9.0'] resolved to: '~0.9.0'
Warn: 'almond' version ['~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1'] resolved to: '~0.3.1'
Warn: 'bootstrap-switch' version ['~3.0.2', '~3.0.2', '~3.0.2', '~3.0.2'] resolved to: '~3.0.2'
Warn: 'font-awesome' version ['~4.4.0', '~4.4.0'] resolved to: '~4.4.0'
No handlers could be found for logger "semver"
Warn: u'prismjs' version [u'1.4.1', u'1.4.1'] resolved to: u'1.4.1'
Warn: 'angular-sanitize' version ['~1.4.9', '~1.4.10', '~1.4.10'] resolved to: '~1.4.9'