← Back to team overview

graphite-dev team mailing list archive

Re: [Question #249690]: TypeError: fetch() takes at most 3 arguments (4 given)

 

Question #249690 on Graphite changed:
https://answers.launchpad.net/graphite/+question/249690

Description changed to:
Hi

I have a problem. I try to install Graphite on OpenSuse 13.1.
I will post my installation-steps at the end of my question.

I become the following Error, when i klick on a Graph in Graphite:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/webapp/graphite/render/views.py", line 113, in renderView
    seriesList = evaluateTarget(requestContext, target)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 10, in evaluateTarget
    result = evaluateTokens(requestContext, tokens)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 24, in evaluateTokens
    return fetchData(requestContext, tokens.pathExpression)
  File "/opt/graphite/webapp/graphite/render/datalib.py", line 230, in fetchData
    dbResults = dbFile.fetch( timestamp(startTime), timestamp(endTime), timestamp(now))
  File "/opt/graphite/webapp/graphite/storage.py", line 308, in fetch
    return whisper.fetch(self.fs_path, startTime, endTime, now)
TypeError: fetch() takes at most 3 arguments (4 given)

Till now, it looks like i have not the same whisper and graphite webapp version.
But i install it, like you can see at the end from git with checkout for 0.9.x.

One thing that maybe can a problem:
I first try to install Graphite(carbon/whisper/webapp) with a RPM witch was maked by a friend.
This Installation dosent work, so i deinstall the rpm.
But maybe there is still some files from the rpm somewhere, but i cant find it.

I delete after some installation trys from git, the complet /opt/graphite directory.
And reinstall again. The problem is still there.

Can me some one give a hint?

My Installation steps:
Install with yast:
python-2.7 (or higher)
python-django
python-ldap
python-python-memcached
python-pysqlite
sqlite3
sqlite2
python-setuptools-git
python-cairo
python-pip
python-Twisted	
git
apache2-mod_wsgi

install with easy_install:
easy_install  txamqp
easy_install django-tagging

Get Git packs:
cd
git clone https://github.com/graphite-project/graphite-web.git
cd graphite-web
git checkout 0.9.x
cd ..
git clone https://github.com/graphite-project/carbon.git
cd carbon
git checkout 0.9.x
cd ..
git clone https://github.com/graphite-project/whisper.git
cd whisper
git checkout 0.9.x
cd ..

install whisper/carbon:
pushd whisper
sudo python setup.py install
popd
pushd carbon
python setup.py install 
popd

konfigurate carbon:
pushd /opt/graphite/conf
cp carbon.conf.example carbon.conf
cp storage-schemas.conf.example storage-schemas.conf
storageschema edit:
#[default_1min_for_1day]
#pattern = .*
#retentions = 60s:1d

[default_1MinFor2Months_1hFor13Months]
pattern = .*
retentions = 60:89280,3600:9672

install webapp:
cd
pushd graphite-web
python check-dependencies.py # < All Okay :)
popd
mkdir /srv/www/run
chmod 777 /srv/www/run
pushd graphite-web
python setup.py install
popd
chgrp -R www /opt/graphite/webapp

#here i edit apache vhost conf, but i dont post it :)

wsgi script:
cp  /opt/graphite/conf/graphite.wsgi.example  /opt/graphite/conf/graphite.wsgi
chgrp www /opt/graphite/conf/graphite.wsgi

create DB:
cd /opt/graphite/
PYTHONPATH=`pwd`/webapp:`pwd`/whisper python ./webapp/graphite/manage.py syncdb
chown wwwrun:www /opt/graphite/storage/graphite.db

conf:
cd /opt/graphite/webapp/graphite
cp local_settings.py.example local_settings.py #<- edit timezone

permission:
chown wwwrun -R /opt/graphite

start carbon:
cd /opt/graphite/
PYTHONPATH=`pwd`/whisper ./bin/carbon-cache.py start

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.