Can anyone suggest a Python client for AWS Redis Cluster enabled?
I'm using redis-py-cluster, but it fails:
Sample code:
from rediscluster import StrictRedisCluster
startup_nodes = [{"host": "xxxx.clustercfg.apn2.cache.amazonaws.com", "port": "6379"}]
r = StrictRedisCluster(startup_nodes=startup_nodes, decode_responses=True, skip_full_coverage_check=False)
r.set('foo', 'bar')
value = r.get('foo')
======
Exception:
Traceback (most recent call last):
File "testRedisCluster.py", line 11, in
r = StrictRedisCluster(startup_nodes=startup_nodes, decode_responses=True, skip_full_coverage_check=False)
File "/Library/Python/2.7/site-packages/rediscluster/client.py", line 181, in init
**kwargs
File "/Library/Python/2.7/site-packages/rediscluster/connection.py", line 141, in init
self.nodes.initialize()
File "/Library/Python/2.7/site-packages/rediscluster/nodemanager.py", line 228, in initialize
need_full_slots_coverage = self.cluster_require_full_coverage(nodes_cache)
File "/Library/Python/2.7/site-packages/rediscluster/nodemanager.py", line 270, in cluster_require_full_coverage
return any(node_require_full_coverage(node) for node in nodes.values())
File "/Library/Python/2.7/site-packages/rediscluster/nodemanager.py", line 270, in
return any(node_require_full_coverage(node) for node in nodes.values())
File "/Library/Python/2.7/site-packages/rediscluster/nodemanager.py", line 267, in node_require_full_coverage
return "yes" in r_node.config_get("cluster-require-full-coverage").values()
File "/Library/Python/2.7/site-packages/redis/client.py", line 715, in config_get
return self.execute_command('CONFIG GET', pattern)
File "/Library/Python/2.7/site-packages/redis/client.py", line 668, in execute_command
return self.parse_response(connection, command_name, **options)
File "/Library/Python/2.7/site-packages/redis/client.py", line 680, in parse_response
response = connection.read_response()
File "/Library/Python/2.7/site-packages/redis/connection.py", line 629, in read_response
raise response
redis.exceptions.ResponseError: unknown command 'CONFIG'
I'm using redis-py-cluster 1.3.4.
Any idea?
Change the parameter skip_full_coverage_check=False to skip_full_coverage_check=True
Related
I created a small program that uses numba on a method containing a 2D array (list of lists). This program runs just fine on Spyder, but when I try to run the exact same program on a remote Ubuntu server, I get a long error saying "unsupported nested memory-managed object" (listed below the program code).
The code:
from numba import jit
#jit(nopython=True)
def test():
num1 = 10
num2 = 5
array = [ [ 1 for i in range(num1) ] for j in range(num2) ]
#array = [2 for i in range(num1) ]
sum = 0
for i in range(0,num1):
for j in range(0,num2):
sum = sum + array[i][j]
print(sum)
test()
The error:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numba/runtime/context.py", line 186, in _call_incref_decref
meminfo = data_model.get_nrt_meminfo(builder, value)
File "/usr/lib/python3/dist-packages/numba/datamodel/models.py", line 329, in get_nrt_meminfo
"unsupported nested memory-managed object")
NotImplementedError: unsupported nested memory-managed object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numba/errors.py", line 243, in new_error_context
yield
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 216, in lower_block
self.lower_inst(inst)
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 263, in lower_inst
self.storevar(val, inst.target.name)
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 928, in storevar
self.decref(fetype, old)
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 982, in decref
self.context.nrt.decref(self.builder, typ, val)
File "/usr/lib/python3/dist-packages/numba/runtime/context.py", line 208, in decref
self._call_incref_decref(builder, typ, typ, value, "NRT_decref")
File "/usr/lib/python3/dist-packages/numba/runtime/context.py", line 179, in _call_incref_decref
funcname, getters + (getter,))
File "/usr/lib/python3/dist-packages/numba/runtime/context.py", line 188, in _call_incref_decref
raise NotImplementedError("%s: %s" % (root_type, str(e)))
NotImplementedError: list(list(int64)): unsupported nested memory-managed object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "2DArrayTest.py", line 15, in <module>
test()
File "/usr/lib/python3/dist-packages/numba/dispatcher.py", line 307, in _compile_for_args
return self.compile(tuple(argtypes))
File "/usr/lib/python3/dist-packages/numba/dispatcher.py", line 579, in compile
cres = self._compiler.compile(args, return_type)
File "/usr/lib/python3/dist-packages/numba/dispatcher.py", line 80, in compile
flags=flags, locals=self.locals)
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 740, in compile_extra
return pipeline.compile_extra(func)
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 360, in compile_extra
return self._compile_bytecode()
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 699, in _compile_bytecode
return self._compile_core()
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 686, in _compile_core
res = pm.run(self.status)
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 246, in run
raise patched_exception
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 238, in run
stage()
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 621, in stage_nopython_backend
self._backend(lowerfn, objectmode=False)
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 576, in _backend
lowered = lowerfn()
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 563, in backend_nopython_mode
self.flags)
File "/usr/lib/python3/dist-packages/numba/compiler.py", line 858, in native_lowering_stage
lower.lower()
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 135, in lower
self.lower_normal_function(self.fndesc)
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 176, in lower_normal_function
entry_block_tail = self.lower_function_body()
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 201, in lower_function_body
self.lower_block(block)
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 216, in lower_block
self.lower_inst(inst)
File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/numba/errors.py", line 249, in new_error_context
six.reraise(type(newerr), newerr, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/numba/six.py", line 658, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/numba/errors.py", line 243, in new_error_context
yield
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 216, in lower_block
self.lower_inst(inst)
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 263, in lower_inst
self.storevar(val, inst.target.name)
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 928, in storevar
self.decref(fetype, old)
File "/usr/lib/python3/dist-packages/numba/lowering.py", line 982, in decref
self.context.nrt.decref(self.builder, typ, val)
File "/usr/lib/python3/dist-packages/numba/runtime/context.py", line 208, in decref
self._call_incref_decref(builder, typ, typ, value, "NRT_decref")
File "/usr/lib/python3/dist-packages/numba/runtime/context.py", line 179, in _call_incref_decref
funcname, getters + (getter,))
File "/usr/lib/python3/dist-packages/numba/runtime/context.py", line 188, in _call_incref_decref
raise NotImplementedError("%s: %s" % (root_type, str(e)))
numba.errors.LoweringError: Failed at nopython (nopython mode backend)
list(list(int64)): unsupported nested memory-managed object
File "2DArrayTest.py", line 7
[1] During: lowering "$56 = build_list(items=[])" at 2DArrayTest.py (7)
I have seen elsewhere that numba doesn't like 2D arrays and lists of lists because of memory. Is there a way to make it work on the remote server, since it works on Spyder? What is it that Spyder does differently to make it work?
i'm trying to convert the results to json of a postgres database,it works! but doesnt finish and it triggers an error
rows 984288
try:
cur = conn.cursor()
cur.execute("select * from daily")
row_headers = [x[0] for x in cur.description]
rows = cur.fetchall()
json_data = []
for result in rows:
json_data.append(dict(zip(row_headers,result)))
# rows = [dict((cur.description[i][0], value) \
# for i, value in enumerate(row)) for row in cur.fetchall()]
print("the number of parts: ", cur.rowcount)
conn.close()
except (Exception, psycopg2.DatabaseError) as error:
print(error)
finally:
if conn is not None:
conn.close()
return json.dumps(json_data)
debug:
error:
out of memory for query result
127.0.0.1 - - [03/Aug/2020 02:12:18] "GET /pruebas HTTP/1.1" 500 -
Exception happened during processing of request from ('127.0.0.1', 59545)
Traceback (most recent call last):
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug_init_.py", line 304, in debug_application
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask\app.py", line 2464, in call
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask\app.py", line 2450, in wsgi_app
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask\app.py", line 1867, in handle_exception
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask\app.py", line 2447, in wsgi_app
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\flask\app.py", line 1936, in dispatch_request
File "C:\Users\iscca\PycharmProjects\covid-uabc\main.py", line 114, in pruebas
cosa = Prueba()
File "C:\Users\iscca\PycharmProjects\covid-uabc\pruebas.py", line 14, in init
self.rows = self.enlistar(conn)
File "C:\Users\iscca\PycharmProjects\covid-uabc\pruebas.py", line 38, in enlistar
return json.dumps(json_data)
UnboundLocalError: local variable 'json_data' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\serving.py", line 323, in run_wsgi
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\serving.py", line 314, in execute
for data in application_iter:
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug_init_.py", line 344, in debug_application
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 344, in render_full
"summary": self.render_summary(include_title=False),
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 314, in render_summary
frames = [group.render(mark_lib=mark_lib) for group in self.groups]
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 314, in
frames = [group.render(mark_lib=mark_lib) for group in self.groups]
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 435, in render
frame.render(mark_lib=mark_lib),
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 485, in render
"lines": self.render_line_context(),
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 504, in render_line_context
before, current, after = self.get_context_lines()
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 611, in get_context_lines
before = self.sourcelines[self.lineno - context - 1 : self.lineno - 1]
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\utils.py", line 90, in get
value = self.func(obj)
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 608, in sourcelines
return source.decode(charset, "replace").splitlines()
MemoryError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\iscca\AppData\Local\Programs\Python\Python37-32\Lib\socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File "C:\Users\iscca\AppData\Local\Programs\Python\Python37-32\Lib\socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Users\iscca\AppData\Local\Programs\Python\Python37-32\Lib\socketserver.py", line 720, in init
self.handle()
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\serving.py", line 345, in handle
File "C:\Users\iscca\AppData\Local\Programs\Python\Python37-32\Lib\http\server.py", line 426, in handle
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\serving.py", line 379, in handle_one_request
return self.run_wsgi()
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\serving.py", line 340, in run_wsgi
self.server.log("error", "Error on request:\n%s", traceback.plaintext)
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\utils.py", line 90, in get
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 353, in plaintext
return u"\n".join([group.render_text() for group in self.groups])
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 353, in
return u"\n".join([group.render_text() for group in self.groups])
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 446, in render_text
out.append(frame.render_text())
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 500, in render_text
self.current_line.strip(),
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 618, in current_line
return self.sourcelines[self.lineno - 1]
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\utils.py", line 90, in get
value = self.func(obj)
File "C:\Users\iscca.virtualenvs\covid-uabc-YDkkGE3-\lib\site-packages\werkzeug\debug\tbtools.py", line 579, in sourcelines
source = f.read()
MemoryError
I am using dask with distributed scheduler. I am trying to replicate a dataset read through csv on s3 to all worker nodes. Example:
from distributed import Executor
import dask.dataframe as dd
e= Executor('127.0.0.1:8786',set_as_default=True)
df = dd.read_csv('s3://bucket/file.csv', blocksize=None)
df = e.persist(df)
e.replicate(df)
distributed.utils - ERROR - unhashable type: 'list'
Traceback (most recent call last):
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/distributed/utils.py", line 102, in f
result[0] = yield gen.maybe_future(func(*args, **kwargs))
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/gen.py", line 1015, in run
value = future.result()
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/concurrent.py", line 237, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/gen.py", line 1021, in run
yielded = self.gen.throw(*exc_info)
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/distributed/executor.py", line 1347, in _replicate
branching_factor=branching_factor)
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/gen.py", line 1015, in run
value = future.result()
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/concurrent.py", line 237, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/gen.py", line 1021, in run
yielded = self.gen.throw(*exc_info)
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/distributed/core.py", line 444, in send_recv_from_rpc
result = yield send_recv(stream=stream, op=key, **kwargs)
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/gen.py", line 1015, in run
value = future.result()
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/concurrent.py", line 237, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/gen.py", line 1024, in run
yielded = self.gen.send(value)
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/distributed/core.py", line 345, in send_recv
six.reraise(*clean_exception(**response))
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/distributed/core.py", line 211, in handle_stream
result = yield gen.maybe_future(handler(stream, **msg))
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/gen.py", line 1015, in run
value = future.result()
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/concurrent.py", line 237, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/tornado/gen.py", line 285, in wrapper
yielded = next(result)
File "/root/.miniconda/envs/dask_env/lib/python3.5/site-packages/distributed/scheduler.py", line 1324, in replicate
keys = set(keys)
TypeError: unhashable type: 'list'
Is this the correct way to replicate a dataframe? It appears that e.persist(df) returned object does not work with e.replicate for some reason.
This was a bug and has been resolved in https://github.com/dask/distributed/pull/473
I am trying to check whether a certain dataset exists in BigQuery and I get this very strange error I've never had untill yesterday:
ERROR:dsUtils.bq_utils:Could not check if dataset tmp exists.
Traceback (most recent call last):
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\dsUtils\bq_utils.py", line 113, in _get
resp = bq_service.datasets().get(projectId=self.project_id, datasetId=self.id).execute(num_retries=2)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\oauth2client\util.py", line 137, in positional_wrapper
return wrapped(*args, **kwargs)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\googleapiclient\http.py", line 755, in execute
method=str(self.method), body=self.body, headers=self.headers)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\googleapiclient\http.py", line 93, in _retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\oauth2client\client.py", line 598, in new_request
self._refresh(request_orig)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\oauth2client\client.py", line 864, in _refresh
self._do_refresh_request(http_request)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\oauth2client\client.py", line 891, in _do_refresh_request
body = self._generate_refresh_request_body()
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\oauth2client\client.py", line 1597, in _generate_refresh_request_body
assertion = self._generate_assertion()
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\oauth2client\service_account.py", line 318, in _generate_assertion
key_id=self._private_key_id)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\oauth2client\crypt.py", line 97, in make_signed_jwt
signature = signer.sign(signing_input)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\oauth2client\_pycrypto_crypt.py", line 101, in sign
return PKCS1_v1_5.new(self._key).sign(SHA256.new(message))
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\Crypto\Signature\PKCS1_v1_5.py", line 112, in sign
m = self._key.decrypt(em)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\Crypto\PublicKey\RSA.py", line 174, in decrypt
return pubkey.pubkey.decrypt(self, ciphertext)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\Crypto\PublicKey\pubkey.py", line 93, in decrypt
plaintext=self._decrypt(ciphertext)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\Crypto\PublicKey\RSA.py", line 235, in _decrypt
r = getRandomRange(1, self.key.n-1, randfunc=self._randfunc)
File "C:\Users\paco\Anaconda3\envs\visitForecastEnv\lib\site-packages\Crypto\PublicKey\RSA.py", line 126, in __getattr__
raise AttributeError("%s object has no %r attribute" % (self.__class__.__name__, attrname,))
AttributeError: _RSAobj object has no '_randfunc' attribute
Has anyone an idea of why I get these errors suddenly?
Im trying install indico while follow installation guide but there is some problem and i can't fix it.
index.py return this message on browser
MOD_PYTHON ERROR
ProcessId: 18206
Interpreter: '127.0.1.1'
ServerName: '127.0.1.1'
DocumentRoot: '/var/www'
URI: '/indico/index.py'
Location: None
Directory: '/opt/indico/htdocs/'
Filename: '/opt/indico/htdocs/index.py'
PathInfo: None
Phase: 'PythonHandler'
Handler: 'mod_python.publisher'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)
File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 213, in handler
published = publish_object(req, object)
File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 425, in publish_object
return publish_object(req,util.apply_fs_data(object, req.form, req=req))
File "/usr/lib/python2.7/dist-packages/mod_python/util.py", line 554, in apply_fs_data
return object(**args)
File "/opt/indico/htdocs/index.py", line 23, in index
return welcome.RHWelcome( req ).process( params )
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/rh/base.py", line 707, in process
res = self._processUnexpectedError( e )
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/rh/base.py", line 382, in _processUnexpectedError
return p.display()
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/pages/base.py", line 189, in display
return "%s%s%s"%( self._getHTMLHeader(), \
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/pages/base.py", line 169, in _getHTMLHeader
"assets": self._asset_env
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/wcomponents.py", line 195, in getHTML
tempHTML = templateEngine.render(self.tplFile, vars, self)
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/common/TemplateExec.py", line 128, in render
return template.render(**params)
File "/usr/local/lib/python2.7/dist-packages/Mako-1.0.0-py2.7.egg/mako/template.py", line 443, in render
return runtime._render(self, self.callable_, args, data)
File "/usr/local/lib/python2.7/dist-packages/Mako-1.0.0-py2.7.egg/mako/runtime.py", line 803, in _render
**_kwargs_for_callable(callable_, data))
File "/usr/local/lib/python2.7/dist-packages/Mako-1.0.0-py2.7.egg/mako/runtime.py", line 835, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/local/lib/python2.7/dist-packages/Mako-1.0.0-py2.7.egg/mako/runtime.py", line 860, in _exec_template
callable_(context, *args, **kwargs)
File "/opt/indico/tmp/mako_modules/HTMLHeader.tpl.py", line 44, in render_body
__M_writer(str(self_._rh.csrf_token))
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/rh/base.py", line 278, in csrf_token
return self._getSession().csrf_token
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/rh/base.py", line 268, in _getSession
self._setSession()
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/rh/base.py", line 261, in _setSession
self._websession = session.getSessionForReq(self._req)
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/session/__init__.py", line 28, in getSessionForReq
return sm.get_session(req)
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/session/base.py", line 637, in get_session
rw = RequestWrapper.getWrapper( request )
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/session/base.py", line 730, in getWrapper
w = RequestWrapper( req )
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/MaKaC/webinterface/session/base.py", line 709, in __init__
self.environ = {"REMOTE_ADDR": _get_remote_ip(request)}
File "/usr/local/lib/python2.7/dist-packages/indico-1.1.2-py2.7.egg/indico/util/network.py", line 31, in _get_remote_ip
hostIP = str(req.get_remote_ip())
AttributeError: 'mp_request' object has no attribute 'get_remote_ip'
MODULE CACHE DETAILS
Accessed: Fri Jun 20 11:54:56 2014
Generation: 1
_mp_f82f1cbab6d44e96c95ffaf5362fd5ea {
FileName: '/opt/indico/htdocs/index.py'
Instance: 1
Generation: 1
Modified: Fri Jun 20 10:38:13 2014
Imported: Fri Jun 20 10:57:15 2014
}
I don't understand what is the problem..
python -V > Python 2.7.3
apache2 -v > Server version: Apache/2.2.22 (Debian)
libapache2-mod > 3.3-4+deb7u1