environment variables - Python doesn't load _fileio library -


i have problem, python doesn't loads dynamic c library _fileio

~ $ python python 2.7.1+ (r271:86832, apr 11 2011, 18:05:24)  [gcc 4.5.2] on linux2 type "help", "copyright", "credits" or "license" more information. not open pythonstartup ioerror: [errno 2] no such file or directory: '/home/sven/.pythonrc' >>> import io traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "/usr/lib/python2.6/io.py", line 63, in <module>     import _fileio importerror: no module named _fileio >>>   ~ $ locate _fileio /usr/lib/python2.6/lib-dynload/_fileio.so   ~ $ echo $pythonpath /usr/lib/python2.6/ 

greetings sven

seems environment issue, stemming line:

ioerror: [errno 2] no such file or directory: '/home/sven/.pythonrc' 

to solve this, find .pythonrc , make sure pythonstartup environment variable in .bashrc file points file location. if in fact correct, try using hardcoded path /home/sven/.pythonrc rather such ~/.pythonrc.

also, if remember right, .pythonrc should *.py file, might vary depending on distribution.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -