×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    80

    Sensor module error?

    Hi

    I just downloaded Python 1.4.1 and I signed the PythonScriptShell with all the permissions, installed it on my N95 and I get the following error when I import the sensor module

    -------------------------------------------------------------------------
    >>> import sensor
    Traceback (most recent call last):
    File "<console>", line 1, in ?
    File "c:\resource\site.py", line 97, in platsec_import
    return _original_import(name, globals, locals, fromlist)
    File "c:\resource\sensor.py", line 20, in ?
    import _sensor
    File "c:\resource\site.py", line 114, in platsec_import
    raise ImportError("Permission denied (error -46). Possible cause: Check that
    %s.pyd is compiled to have at least the same capabilities as this Python interp
    reter process."%name)
    ImportError: Permission denied (error -46). Possible cause: Check that _sensor.p
    yd is compiled to have at least the same capabilities as this Python interpreter
    process.

    -------------------------------------------------------------------------

    I did sign the PythonScriptShell but not the PythonForS60 file, was I supposed to sign that one as well? what permissions are required for the sensor? How can I check the permissions a particular sis has assigned?

    Do I have to install it in a particular drive?

    Thanks
    Last edited by federico2929; 2007-10-17 at 23:01.

  2. #2
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Sensor module error?

    Quote Originally Posted by federico2929 View Post
    Hi

    I just downloaded Python 1.4.1 and I signed the PythonScriptShell with all the permissions, installed it on my N95 and I get the following error when I import the sensor module

    I did sign the PythonScriptShell but not the PythonForS60 file, was I supposed to sign that one as well? what permissions are required for the sensor? How can I check the permissions a particular sis has assigned?

    Do I have to install it in a particular drive?

    Thanks
    I try it also on N95 with PyS60 dev cert and ScriptShell devcert and it doesn't work
    I have the same error !
    The PythonForS60 file has more caps than your devcert (4 more than it). It is already signed by Nokia so don't sign it !
    I don't think that the sensor need more caps than dev cert because one guy made an extension module for 5500 : pyaccel and it works with dev cert
    You can look the caps assigned to all files in a sis with the useful app sisinfo
    And last question if you read result from the following command
    python sisinfo.py -f PythonForS60_1_4_0_3rd.sis -i
    you'll see that _sensor.pyd is ALWAYS put in c: (phone memory) even if you choose e: (memory card) !

    Cyke64
    Last edited by cyke64; 2007-10-18 at 14:28. Reason: missing command line
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  3. #3
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    80

    Re: Sensor module error?

    Oh good.. then it wasn't a stupid mistake I did, I always freak out when something that should work doesn't work and I have to come with my tail between my legs to the forum.. anyways I guess we will have to wait for the wise words from Paavo

    -Thanks
    Last edited by federico2929; 2007-10-21 at 23:21.

  4. #4
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    67

    Re: Sensor module error?

    Just a quick reply: i'm on a 5500, PyS60 1.4.1 (nokia signed), ScriptShell signed with devcert, and the sensor module works without a problem.

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    22

    Re: Sensor module error?

    I tried on an N95 and it doesn't work

  6. #6
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: Sensor module error?

    Quote Originally Posted by federico2929 View Post
    I did sign the PythonScriptShell but not the PythonForS60 file, was I supposed to sign that one as well? what permissions are required for the sensor?
    Using N95 and:

    - PythonForS60_1_4_1_3rdEd.SIS
    - PythonScriptShell_1_4_1_3rdEd.sis

    downloaded from the SourceForge site.

    No signing done for either of the packages - this works (output from BT console):

    Code:
    >>> import sensor
    >>> orientation_sensor_data = sensor.sensors()['RotSensor']
    >>> orientation_sensor = sensor.Sensor(orientation_sensor_data['id'],orientation
    _sensor_data['category'])
    >>> orientation_sensor.set_event_filter(sensor.RotEventFilter())
    >>> def orientation_changed(data):
    ...   print data
    ...
    >>> orientation_sensor.connect(orientation_changed)
    1
    >>> 3
    0
    3
    0
    2
    Please try the above without signing.

    Hope this helps.

  7. #7
    Registered User
    Join Date
    Jul 2007
    Posts
    2

    Re: Sensor module error?

    I just tried running the above script, with unsigned Python and ScriptShell, and still getting the same error using the N95.

  8. #8
    Registered User
    Join Date
    Feb 2006
    Posts
    22

    Re: Sensor module error?

    Hi otsov,
    sorry to disappoint you, but it doesn't work to me.
    I have download and installed the two files:
    - PythonForS60_1_4_1_3rdEd.SIS
    - PythonScriptShell_1_4_1_3rdEd.sis
    I haven't signed anything as you said, but I still get this message:
    >>> import sensors
    Traceback (most recent call last):
    File "<console>", line 1, in ?
    File "c:\resource\site.py", line 112, in platsec_import
    raise ImportError("No module named "+name)
    ImportError: No module named sensors
    >>> import sensor
    Traceback (most recent call last):
    File "<console>", line 1, in ?
    File "c:\resource\site.py", line 97, in platsec_import
    return _original_import(name, globals, locals, fromlist)
    File "c:\resource\sensor.py", line 20, in ?
    import _sensor
    File "c:\resource\site.py", line 114, in platsec_import
    raise ImportError("Permission denied (error -46). Possible cause: Check that
    %s.pyd is compiled to have at least the same capabilities as this Python interp
    reter process."%name)
    ImportError: Permission denied (error -46). Possible cause: Check that _sensor.p
    yd is compiled to have at least the same capabilities as this Python interpreter
    process.
    >>>
    My phone has the following firmware version. Which version do you have on yours? Did anybody make it work on an N95 with my same firmware version?

    V 12.0.013
    19.06.07
    RM-159
    Nokia N95 (03.01)

  9. #9
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: Sensor module error?

    Quote Originally Posted by giaperrucci View Post
    My phone has the following firmware version. Which version do you have on yours? Did anybody make it work on an N95 with my same firmware version?
    Currently using:

    Code:
    >>> import sysinfo
    >>> sysinfo.sw_version()
    u'V 21.0.001 16-10-07 RM-159 N95(c)NMP'
    >>>
    This is a rather new version, but it was also working with an earlier version (replaced by the above).

  10. #10
    Registered User
    Join Date
    Oct 2007
    Posts
    3

    Re: Sensor module error?

    Unless otherwise proven, this seems to be a platform bug and a problem
    with platform DLL capabilities in some N95 firmware versions.

    Thanks for your report.
    I have the latest firmware according to http://europe.nokia.com/A4577224


    This is the info from *#0000#


    V 12.0.013
    RM-159
    19-06-07
    Nokia N95 (01.01)

    is there another firmware I am supposed to have installed?

    Why is the resolution "Wont Fix"?

  11. #11
    Registered User
    Join Date
    Jun 2006
    Posts
    4

    Re: Sensor module error?

    I've just installed Python 1.4.1 for 3rd edition on my N95, with firmware version 12.0.013, which claims to be the latest according to:

    http://europe.nokia.com/appmanager/U...p-windowState=

    And I'm getting the same problem as is described here. When I look in C:\\resource, there is no _sensor.pyd file (or any other .pyd file, so I guess this isn't actually a useful metric.)

    The Camera module imports and works correctly.

    Not sure what else I can do to debug or offer more information.

  12. #12
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Espoo, Finland
    Posts
    66

    Re: Sensor module error?

    I think just couple of days ago a new firmware version (v 20.0.015) was released for N95. You can get that using the Nokia Software Updater application. I just recently flashed my phone with that firmware and now the sensor module works.

    - Teemu

  13. #13
    Registered User
    Join Date
    Jun 2006
    Posts
    4

    Re: Sensor module error?

    Quote Originally Posted by tsharju View Post
    I think just couple of days ago a new firmware version (v 20.0.015) was released for N95. You can get that using the Nokia Software Updater application. I just recently flashed my phone with that firmware and now the sensor module works.
    Unfortunately, my phone does not have any firmware update available, according to Nokia Software Updater.

  14. #14
    Regular Contributor
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323

    Re: Sensor module error?

    Quote Originally Posted by crschmidt View Post
    Unfortunately, my phone does not have any firmware update available, according to Nokia Software Updater.
    I had similar problems in one of two E70's. E70 with firmware 1.0x updated successfully to 3.0x with Nokia updater, but E70 with firmware 2.0x did not.

    I brought latter to the Nokia service and after 10 minutes it had firmware 3.0633.xx.

  15. #15
    Registered User
    Join Date
    Nov 2006
    Posts
    568

    Re: Sensor module error?

    I can confirm federicos report with a signed shell (devcert).

    >>> import sensor
    Traceback (most recent call last):
    File "<console>", line 1, in ?
    File "c:\resource\site.py", line 97, in platsec_import
    return _original_import(name, globals, locals, fromlist)
    File "c:\resource\sensor.py", line 20, in ?
    import _sensor
    File "c:\resource\site.py", line 114, in platsec_import
    raise ImportError("Permission denied (error -46). Possible cause: Check tha)
    ImportError: Permission denied (error -46). Possible cause: Check that _sensor..
    >>>

    Regards

Page 1 of 2 12 LastLast

Similar Threads

  1. XMl Parser Implementation for Symbian
    By ittiam in forum Symbian C++
    Replies: 26
    Last Post: 2009-09-16, 05:26
  2. i cant build helloworld project
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-12-22, 12:38
  3. Help with lnk2019 lnk1120 error
    By yuenfatt in forum Symbian C++
    Replies: 8
    Last Post: 2007-08-24, 08:21
  4. My BuilderX (with S60 SDK 2.1.NET MS version) cannot build ARMI UREL
    By danielvidonyi@hotmail.com in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-05-04, 21:30
  5. User break point error in Grid
    By ag24master in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-08-07, 08:20

Posting Permissions

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