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

Installation steps #43

Open
MorrisJobke opened this issue Mar 24, 2015 · 5 comments
Open

Installation steps #43

MorrisJobke opened this issue Mar 24, 2015 · 5 comments
Labels

Comments

@MorrisJobke
Copy link

Following steps are done locally:

mkvirtualenv smashbox -p /usr/bin/python2
mkdir ~/smashbox
vim etc/smashbox.conf.templates 
    oc_account_password <- random password
    oc_server <- IP address
    oc_root <- subfolder
    oc_ssl_enabled <- if no SSL is used
    oc_sync_cmd <- adjust path to owncloudcmd
    oc_admin_user <- admin user
    oc_admin_password <- admin password

smoke test:
    bin/smash lib/test_basicSync.py

mkvirtualenv is a zsh extension, which uses virtualenvwrapper to create a virtual env to have an isolated python env.

cc @PVince81 @jnfrmarks Maybe improve the readme with this info.

@jospoortvliet
Copy link

Are you saying smashbox needs python 2.7 rather than 3.4? I've got quite some error messages here, starting with this:

2015-06-17 21:29:49,100 - CRITICAL - creator - Exception occured: Client instance has no attribute 'delete_user' 
 Traceback (most recent call last):
  File "python/smashbox/multiprocessing_engine.py", line 161, in worker_wrap
    f(step)
  File "/home/jospoortvliet/smashbox/lib/test_basicSync.py", line 98, in creator
    reset_owncloud_account()
  File "/home/jospoortvliet/smashbox/python/smashbox/utilities/__init__.py", line 40, in reset_owncloud_account
    delete_owncloud_account(config.oc_account_name)
  File "/home/jospoortvliet/smashbox/python/smashbox/utilities/__init__.py", line 144, in delete_owncloud_account
    oc_api.delete_user(username)
AttributeError: Client instance has no attribute 'delete_user'

Is that related or am I just doing something wrong...

@jnfrmarks
Copy link

Yes, smashbox uses 2.7 and does not yet support 3.4

And, you need to install pyocclient:

pip install -r requirements.txt

@jospoortvliet
Copy link

yeah, I did that, but it looks like debian has 3.4 as default so everything got installed there and I get loads of errors
I'll have to move to 2.7 then.
edit - my mistake, this was on openSUSE and indeed pip3 was installed, not pip2. installed now, fresh errors so at least some progress

@jospoortvliet
Copy link

That seemed to have helped at least a little, yes - I get a nice 401 now:

INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.42.0.152
2015-06-17 22:26:10,217 - CRITICAL - creator - Exception occured: HTTP error: 401 
 Traceback (most recent call last):
  File "python/smashbox/multiprocessing_engine.py", line 161, in worker_wrap
    f(step)
  File "/home/jospoortvliet/smashbox/lib/test_basicSync.py", line 98, in creator
    reset_owncloud_account()
  File "/home/jospoortvliet/smashbox/python/smashbox/utilities/__init__.py", line 40, in reset_owncloud_account
    delete_owncloud_account(config.oc_account_name)
  File "/home/jospoortvliet/smashbox/python/smashbox/utilities/__init__.py", line 144, in delete_owncloud_account
    oc_api.delete_user(username)
  File "/home/jospoortvliet/smashbox/src/pyocclient/owncloud/owncloud.py", line 729, in delete_user
    raise ResponseError(res)
ResponseError: HTTP error: 401

sorry for abusing this bugreport...

@jospoortvliet
Copy link

/me goes change the readme to at least mention the python thing

nickvergessen pushed a commit that referenced this issue Oct 22, 2015
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

4 participants