×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2007
    Location
    Stuttgart, Germany
    Posts
    3

    Question How to install miscellaneous Python scripts (and libraries) on pys60?

    I am undertaking the endeavour to install kedpm (http://kedpm.sourceforge.net) on my E70, as I require a free and secure password manager that is available on both, handset and PC (jfreesafe is lacking categories and there is no J2SE version, it seems)...

    Before going through SIS-creation with ensymble, I first wanted to try running the script directly off the phone.

    So I copied kedpm.py (after changing the default frontend from gtk to cli, naturally) to E:\Python (so that it may be found by the "Run Script" dialog) and the required libraries recursively into E:\Python\lib\kedpm and E:\Python\lib\Crypto (from their respective Python site-package directories installed on my PC).

    As probably was to be expected, I spectacularly fail with:
    Code:
    Version 1.3.15 final
    Traceback (most recent call last):
      File "c:\private\f0201515\default.py", line 59, in menu_action
        f()
      File "c:\private\f0201515\default.py", line 43, in query_and_exec
        execfile(script_list[index][1], globals())
      File "e:\python\kedpm.py", line 19, in ?
        from kedpm.frontends import frontendFactory
      File "c:\resource\site.py", line 94, in platsec_import
        return _original_import(name, globals, locals, fromlist)
      File "e:\python\lib\kedpm\__init__.py", line 47, in ?
        setupPrefix()
      File "e:\python\lib\kedpm\__init__.py", line 42, in setupPrefix
        if not os.access(data_files_dir, os.F_OK):
    AttributeError: 'module' object has no attribute 'access'
    So, is this an incompatibility in pys60 or am I going about this in a completely silly way???

  2. #2
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: How to install miscellaneous Python scripts (and libraries) on pys60?

    Hi BOFH

    I think there an incompatibility.

    File "e:\python\lib\kedpm\__init__.py", line 42, in setupPrefix
    if not os.access(data_files_dir, os.F_OK):
    AttributeError: 'module' object has no attribute 'access'
    AttributeError: 'module' object has no attribute 'access' means that there is no function access in the os module in that case.

    os.access() is present on my machine with Python 2.5. Since PyS60 runs on Python 2.2.2 you might have some difficulties. So you need to port the source if you want to use it on PyS60.

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    3

    Re: How to install miscellaneous Python scripts (and libraries) on pys60?

    Just wondering; where do you find the run script dialogue?

  4. #4
    Regular Contributor
    Join Date
    Jan 2006
    Location
    CPH, Denmark
    Posts
    64

    Re: How to install miscellaneous Python scripts (and libraries) on pys60?

    Quote Originally Posted by M55ikael
    Just wondering; where do you find the run script dialogue?
    Just start the Python intepreter (probably located in "tools" folder in your phone) and choose "run script" in the menu...

Similar Threads

  1. Please help installing Python libraries on S60
    By ericroijen in forum Symbian
    Replies: 11
    Last Post: 2009-07-18, 10:43
  2. Problem with install Python SDK on PC
    By znakharenko in forum Symbian
    Replies: 9
    Last Post: 2008-08-14, 04:29
  3. Installing scripts on Nokia E62 for PyS60 1.3.15
    By billmania in forum Symbian
    Replies: 6
    Last Post: 2006-12-14, 21:29
  4. Use filebrowser.py to execute your python scripts.
    By zweiberg in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-11-01, 13:24
  5. Replies: 6
    Last Post: 2006-03-04, 01:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×