[python] Jak pythonu rict kde ma knihovny?

azurIt azurit na pobox.sk
Středa Březen 12 12:29:11 CET 2008


skus sys.path.insert(0, "/usr/local/lib/")


-----Pôvodná správa-----
Od: David Michal [dmichal na altien.com]
Komu: python na py.cz
Predmet: [python] Jak pythonu rict kde ma knihovny?

        

 

Zdravim, 

Potrebuji nejak pythonu rict ze soubor libsvn_swig_py-1.so.0 je v adresari /usr/local/lib, ale nevim jak to udelat. Zkousel jsem to pres PYTHONPATH ale to neni spravna cesta. Jak to udelat ? 

Diky, 

David 

  

# find / -name libsvn_swig_py-1.so.0 

/usr/local/lib/libsvn_swig_py-1.so.0 

  

# set | grep PYTHON 

PYTHONPATH=/usr/local/lib/ 

  

# python 

Python 2.5b3 (r25b3:51041, Feb 24 2008, 19:02:14) 

[GCC 3.4.6] on linux2 

Type "help", "copyright", "credits" or "license" for more information. 

>>> from svn import core 

Traceback (most recent call last): 

  File "", line 1, in  

  File "/usr/local/lib/python2.5/site-packages/svn/core.py", line 19, in  

    from libsvn.core import * 

  File "/usr/local/lib/python2.5/site-packages/libsvn/core.py", line 5, in  

    import _core 

ImportError: libsvn_swig_py-1.so.0: cannot open shared object file: No such file or directory  
-------------------
MAPY.SK - Najpresnejsie vyhladavanie aj podla cisiel domu, planovanie trasy.
http://mapy.atlas.sk


Další informace o konferenci Python