UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. PancakeCrayon
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 4
    • Groups 0

    PancakeCrayon

    @PancakeCrayon

    0
    Reputation
    8
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    PancakeCrayon Unfollow Follow

    Latest posts made by PancakeCrayon

    • How can I install a new version of python?

      Hey all, I've honestly been trying all day without success and I'm not sure what to try next.

      I'm looking to get Python3.7 or newer (preferably 3.10.x) installed on my Nexus5 and I cant for the life of me figure it out.

      libertine-container-manager create --id test
      libertine-container-manager exec -i test -c "/bin/bash"
      python3 --version
      

      within this container I've tried add-apt-repository ppa:deadsnakes/ppa without success. I've downloaded and complied openssl-1.1.1v successfully(?) and Python-3.11.2 but when I try and pip install It says I haven't complied with SSL. Each time I try it takes almost 2 hours to get to this point.

      root@ubuntu-phablet:~/Python-3.8.12# /python/bin/python3 --version
      Python 3.11.2
      root@ubuntu-phablet:~/Python-3.8.12# /python/bin/python3 -c "import ssl; print('yay')"
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/python/lib/python3.11/ssl.py", line 100, in <module>
          import _ssl             # if we can't import it, let the error propagate
          ^^^^^^^^^^^
      ModuleNotFoundError: No module named '_ssl'
      root@ubuntu-phablet:~/Python-3.8.12# /python/bin/python3 -m pip install --user matrix-nio
      WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/matrix-nio/
      
      

      any one have any ideas?

      posted in Support
      P
      PancakeCrayon
    • MMS file handles not closed???

      Hey guys, I'm looking for a bit of direction. I have a Nexus 5 on
      OTA 11
      Image 20191016-9670

      If I reboot my nexus 5 and I receive an MMS message 4 filehandles are open to the one MMS file:

      root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms
      root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms
      ubuntu-do 6059          phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      QDBusConn 6059 6060     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      Qt\x20bea 6059 6061     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      QNetworkA 6059 6068     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      

      Then I send myself another MMS message it opens more and doesn't close the handle.

      root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms
      ubuntu-do 6059          phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      ubuntu-do 6059          phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
      QDBusConn 6059 6060     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      QDBusConn 6059 6060     phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
      Qt\x20bea 6059 6061     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      Qt\x20bea 6059 6061     phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
      QNetworkA 6059 6068     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      QNetworkA 6059 6068     phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
      QNetworkA 6059 6265     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      QNetworkA 6059 6265     phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
      root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms | wc -l
      10
      root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms | wc -l
      10
      root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms | wc -l
      10
      root@ubuntu-phablet:~# 
      

      Sending SMS messages does not affect this and they seem to be open forever. so I deleted one within the messages app and one from the command line:

      root@ubuntu-phablet:~# rm -f /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
      root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms
      ubuntu-do 6059          phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
      ubuntu-do 6059          phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
      QDBusConn 6059 6060     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
      QDBusConn 6059 6060     phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
      Qt\x20bea 6059 6061     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
      Qt\x20bea 6059 6061     phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
      QNetworkA 6059 6068     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
      QNetworkA 6059 6068     phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
      QNetworkA 6059 6265     phablet   10u      REG     179,28       493     696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
      QNetworkA 6059 6265     phablet   12u      REG     179,28    169454     695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
      root@ubuntu-phablet:~# ps aux | grep 6059
      phablet   6059  0.0  0.4  85028  7996 ?        Sl   18:17   0:00 /usr/bin/ubuntu-download-manager
      root      6747  0.0  0.0   5360   804 pts/26   S+   18:22   0:00 grep --color=auto 6059
      root@ubuntu-phablet:~# 
      

      And this just keeps going up for each MMS file I receive. I found this because I run my own python script to bridge SMS/MMS messages to Matrix/Riot and so I never touch this device. Its plugged in all the time and I only ever use matrix on a different device to text. Eventually it fails because there is too many open files... It's worth noteing that the above testing was done before I started my python script and the below was after a couple months of uptime/use.

      This is how it looked before I rebooted my phone:

      root@ubuntu-phablet:~# lsof 2> /dev/null | grep mms > /home/phablet/mmses.txt
      root@ubuntu-phablet:~# cat /home/phablet/mmses.txt | wc -l
      145844
      root@ubuntu-phablet:~# head -n 4 /home/phablet/mmses.txt
      grep        570              root    1w      REG     179,28         0     568935 /home/phablet/mmses.txt
      ubuntu-do  8553           phablet   10u      REG     179,28       609     695571 /home/phablet/.local/share/nuntium/store/e2a5ea130f8eb7ede3b0ec70ab647fdf.mms
      ubuntu-do  8553           phablet   12u      REG     179,28       526     695574 /home/phablet/.local/share/nuntium/store/4982f92024847e396468c4b702ed41f1.mms
      ubuntu-do  8553           phablet   14u      REG     179,28       528     695577 /home/phablet/.local/share/nuntium/store/4a268d52bf7b3a62893889437f56aed8.mms
      root@ubuntu-phablet:~# ps aux | grep 8553
      root      3854  0.0  0.0   5360   540 pts/21   S+   18:00   0:00 grep --color=auto 8553
      phablet   8553  0.0  1.0 3112304 20864 ?       Sl   May17   0:22 /usr/bin/ubuntu-download-manager
      root@ubuntu-phablet:~# 
      

      Is this a problem for anyone else?

      I've never contributed to an open source project before and I'm pretty new to programming but I'd love to dig though the code myself. Anyone have any idea where I'd even start to look to find out where I'd need to close off these file handles? it seems like its in ubuntu-download-manager

      posted in Support
      P
      PancakeCrayon
    • Easy way to Send MMS programmatically? (Comannd line or an API??)

      I'm just wondering if there is an easy option available for me to send MMS messages programmatically (command line or simple app). I have a Nexus 5 device.

      I've found some resources on how to send SMS messages but I'm specifically wondering about MMS/Pictures.

      Thanks!

      posted in Support
      P
      PancakeCrayon