Python

Moderators: None (Apply to moderate this forum)
Number of threads: 474
Number of posts: 1166

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
After converting code to exe using PyInstaller, Unable to access defau Posted by Kalirajan88 on 21 Aug 2012 at 12:21 AM
I want to access a default(or any other) pdf viewer (to show a pdf file) from python on ubuntu 11.10.
On Ubuntu, evince is the default pdf viewer.
Code :-
------
import os
try:
os.system ("evince test_file.pdf")
except Exception, e:
print e

This code works well and gives output. No problem.
But, After converting this code to exe using PyInstaller On ubuntu, only the same code does not works. It gives the following error msg. "evince: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Permission denied". How to resolve this problem ?
Any Solutions/Comments you have would be appreciated. Thank you...




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.