rlm_ python how to find imported modules?
Adam.Bishop at jisc.ac.uk
Mon Feb 22 12:15:44 CET 2016
On 19 Feb 2016, at 04:32, Jim Whitescarver <jimscarver at gmail.com> wrote:
> How do I get radiusd to run python the same as from the command line?
Depends how you run python from the command line. Are you using a virtualenv from the cli?
Run 'env | grep VIRTUAL_ENV' to check. If you are, you'll need to read the virtualenv manual on how to configure it for an embedded interpreter.
Run 'which python' to find the location of your interpreter. Tell FreeRADIUS to use that.
Open up the REPL and run:
Build FreeRADIUS' PYTHONPATH value from those values.
Systems Development Specialist
t: +44 (0)1235 822 245
xmpp: adamb at jabber.dev.ja.net
jisc.ac.uk | Networkshop 44: Save the date!
| 22-24 March 2016 @ University of Manchester
Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.
More information about the Freeradius-Users