Coder Social home page Coder Social logo

confluence-dumper's Introduction

How to install

Configure virtualenvwrapper

For convenience you should use virtualenvwrapper:

sudo pip install virtualenvwrapper

Add three lines to /etc/environment or another shell startup file:

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/python_dev
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh

Create a new virtual environment:

mkvirtualenv confluence_dumper_venv

Enter the virtual environment:

workon confluence_dumper_venv

Configure confluence dumper

Install dependencies:

pip install -r requirements.txt

Copy confluence settings:

cd confluence_dumper
cp settings.sample.py settings.py

Please personalize the settings.py on your own according to your confluence instance.

How to use

Don't forget to switch to the virtual environment because of the installed dependencies:

workon confluence_dumper_venv

Run confluence dumper:

cd confluence_dumper
python confluence_dumper.py

confluence-dumper's People

Contributors

ssafari-parc avatar thomai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

confluence-dumper's Issues

Jsondecode error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "confluence_dumper.py", line 537, in
main()
File "confluence_dumper.py", line 471, in main
response = utils.http_get(page_url,verify_peer_certificate=settings.VERIFY_PEER_CERTIFICATE)
File "C:\Users\nuttan.kumari\PycharmProjects\Sale_services\confluence-dumper\utils.py", line 39, in http_get
return response.json()
File "C:\Users\nuttan.kumari\Anaconda3\envs\confluence\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Response is coming as empty for this url https://templates.atlassian.net/wiki/spaces/RD/overview

cannot start confluence-dumper

Hi, folks.
On CentOS Linux release 7.5.1804 i got error:
mkvirtualenv confluence_dumper_venv
New python executable in /root/root/.virtualenvs/confluence_dumper_venv/bin/python
Installing setuptools, pip, wheel...
Complete output from command /root/root/.virtuale...mper_venv/bin/python - setuptools pip wheel:
Traceback (most recent call last):
File "", line 9, in
File "/usr/lib64/python2.7/pkgutil.py", line 581, in get_data
mod = sys.modules.get(package) or loader.load_module(package)
File "/usr/lib/python2.7/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/init.py", line 83, in
File "/usr/lib/python2.7/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/init.py", line 42, in
File "/usr/lib/python2.7/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/cmdoptions.py", line 16, in
File "/usr/lib/python2.7/site-packages/virtualenv_support/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 15, in
ImportError: cannot import name requests

...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "/bin/virtualenv", line 3, in
virtualenv.main()
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 712, in main
symlink=options.symlink)
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 944, in create_environment
download=download,
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 900, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 796, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /root/root/.virtuale...mper_venv/bin/python - setuptools pip wheel failed with error code 1
what am I doing wrong ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.