On 14 August 2012 16:26, Truckparts Hamburg COM
<[email protected]> wrote:
>
>>
>> The path is wrong, you must point to trytond inside the repository
>>
>
> Do you mean: PYTHONPATH=/opt/trytond/trytond/:$PYTHONPATH in my case?
>
> There is a file called tryton.rnc inside.
>
> But I still cannot import.
>
>
> I also tried
>
> export PYTHONPATH=/opt/trytond/trytond/
> in .bashrc
>
> and
>
> export PYTHONPATH=/opt/trytond/trytond/
> in .profile
>
> but nothing is working.

I think your 1st export may be correct as the trytond subfoloder is
the package.  You only need to set it in one of your startup scripts.

You should ensure you source the file with the export to set path in
your shell after you initially set it in the file.  Check the variable
to ensure that it is set correctly.

echo $PYTHONPATH

if you want it globally you should set it in /etc/profile

What are the file permissions?  I would assume root only access from
your 1st email.

Set an appropriate group owner access and / or other access depending
on your distro / use case.


HTH

Craig

-- 
-- 
[email protected] mailing list



Reply via email to