Please let me know the error when running on Linux and give me a solution

Please help me with the error in the source code.

This is for Linux server, running python, R, rpy2.

– coding: utf-8 –

!/usr/bin/python

import os,re,sys from rpy2.robjects.packages import importr

accrual = importr(‘accrual’,’tcltk2′) print accrual.n.inform(n=300, T=36, P=0.5, m=100, tm=10, Tp=36)[[1]]

Traceback (most recent call last): File “test.py”, line 8, in print accrual.n.inform(n=300, T=36, P=0.5, m=100, tm=10, Tp=36)[[1]] AttributeError: ‘InstalledSTPackage’ object has no attribute ‘n’