pyDatalog program fails on on Android Pydroid3 platform

114
January 24, 2022, at 08:00 AM

I can't get the Python program at https://github.com/pcarbonn/pyDatalog/blob/master/pyDatalog/examples/graph.py to run under Android using Pydroid3 (from the Play Store), and I was hoping someone could help me. It runs fine on Android using QPython 3L (from the Play Store) and also under Windows 10. The traceback is

Traceback (most recent call last):
  File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in <module>
    start(fakepyfile,mainpyfile)
  File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start
    exec(open(mainpyfile).read(),  __main__.__dict__)
  File "<string>", line 22, in <module>
  File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages/pyDatalog/pyParser.py", line 815, in add_program
    source_code = inspect.getsource(func)
  File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/inspect.py", line 1031, in getsource
    lines, lnum = getsourcelines(object)
  File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/inspect.py", line 1013, in getsourcelines
    lines, lnum = findsource(object)
  File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/inspect.py", line 842, in findsource
    raise OSError('could not get source code')
OSError: could not get source code

Platform details:

The Android platforms were pydroid3 version 5.00_arm64 (python 3.9.7) and QPython 3L version 3.0.0 (python 3.3.6), both running on on Android version 11 (and Samsung's One UI version 3.1) on a Samsung S6 lite. The Windows 10 platform (I'm not using the Android emulator) was Windows 10 and Python 3.8.2 using IDLE 3.8.2.

Thank you

READ ALSO
Segmented Control In Header

Segmented Control In Header

im trying to add a segmented tab to my header let me show you an example before i start

93
How to use jQuery.Lazy() Plugin with hash Image Tag Helper asp-append-version (in asp.net core)

How to use jQuery.Lazy() Plugin with hash Image Tag Helper asp-append-version (in asp.net core)

I am having a problem configuring jQueryLazy() to work with images that have been appended with a hash

96
How to convert PHP preg_replace_callback to C#?

How to convert PHP preg_replace_callback to C#?

I have such a code in PHP, but I need to rewrite it in C#Suggest any options please

88
Chaincode Installation error in Hyperledger Fabric 2.2

Chaincode Installation error in Hyperledger Fabric 2.2

~/go/src/githubcom/hyperledger/fabric-samples/test-network$ peer lifecycle chaincode install simple_chaincode

73