Leapcast (Ubuntu problem) - Google Chromecast

Hello guys!
Im very new on this site and i don't know if this is the right category but i was installing "leapcast" and then when i tried to start it.
It just says this:
Code:
INFO:root:Starting SSDP server
INFO:root:Starting LEAP server
INFO:root:Loading Config-JSON from Google-Server
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): clients3.google.com
/home/ubuntu/.virtualenvs/leapcast/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/ubuntu/.virtualenvs/leapcast/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Traceback (most recent call last):
File "/home/ubuntu/.virtualenvs/leapcast/bin/leapcast", line 9, in <module>
load_entry_point('Leapcast==0.1.3', 'console_scripts', 'leapcast')()
File "/home/ubuntu/.virtualenvs/leapcast/local/lib/python2.7/site-packages/leapcast/__main__.py", line 38, in main
leap_server.start()
File "/home/ubuntu/.virtualenvs/leapcast/local/lib/python2.7/site-packages/leapcast/services/leap.py", line 35, in start
resp = requests.get(url=app_dict_url)
File "/home/ubuntu/.virtualenvs/leapcast/local/lib/python2.7/site-packages/requests/api.py", line 67, in get
return request('get', url, params=params, **kwargs)
File "/home/ubuntu/.virtualenvs/leapcast/local/lib/python2.7/site-packages/requests/api.py", line 53, in request
return session.request(method=method, url=url, **kwargs)
File "/home/ubuntu/.virtualenvs/leapcast/local/lib/python2.7/site-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/home/ubuntu/.virtualenvs/leapcast/local/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/home/ubuntu/.virtualenvs/leapcast/local/lib/python2.7/site-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
(leapcast)[email protected]:~/leapcast$
Anyone know whats the problem?
System: Ubuntu 12.04 32bit.

Related

[Q] Error in Cyanogenmod 7 repo init

i get this error in repo cyanogenmod 7:
Fetching projects: 100% (238/238), done.
Syncing work tree: 71% (169/238) Traceback (most recent call last):
File "/home/utente/.repo/repo/main.py", line 238, in <module>
_Main(sys.argv[1:])
File "/home/utente/.repo/repo/main.py", line 220, in _Main
repo._Run(argv)
File "/home/utente/.repo/repo/main.py", line 125, in _Run
cmd.Execute(copts, cargs)
File "/home/utente/.repo/repo/subcmds/sync.py", line 360, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/utente/.repo/repo/project.py", line 688, in Sync_LocalHalf
head = self.work_git.GetHead()
File "/home/utente/.repo/repo/project.py", line 1380, in GetHead
fd = open(path, 'rb')
IOError: [Errno 2] No such file or directory: u'/home/utente/packages/apps/Bluetooth/.git/HEAD'
anyone know a solution??
Alberto96 said:
i get this error in repo cyanogenmod 7:
Fetching projects: 100% (238/238), done.
Syncing work tree: 71% (169/238) Traceback (most recent call last):
File "/home/utente/.repo/repo/main.py", line 238, in <module>
_Main(sys.argv[1:])
File "/home/utente/.repo/repo/main.py", line 220, in _Main
repo._Run(argv)
File "/home/utente/.repo/repo/main.py", line 125, in _Run
cmd.Execute(copts, cargs)
File "/home/utente/.repo/repo/subcmds/sync.py", line 360, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/utente/.repo/repo/project.py", line 688, in Sync_LocalHalf
head = self.work_git.GetHead()
File "/home/utente/.repo/repo/project.py", line 1380, in GetHead
fd = open(path, 'rb')
IOError: [Errno 2] No such file or directory: u'/home/utente/packages/apps/Bluetooth/.git/HEAD'
anyone know a solution??
Click to expand...
Click to collapse
Delete "/home/utente/packages/apps/Bluetooth" and try your repo sync again. It's possible your initial repo sync was interrupted.
ok , thanks for the solution . it worked .
please close this thread

OmniROM for GT-i9300 Build Failure

Hi,
I successfully built the rom for a couple months on Ubuntu 13.10 following wiki's instructions, as an exercise on learning how to 'cherry-pick' stuff into a work-tree, now wanna add Hammerhead to the working tree BUT it seems that the building system for GT-I9300 is actually broken (maybe by an update?), here's the log:
mkdir -p /media/reS28raM/android/omni/out/target/product/i9300/obj/GYP/shared_intermediates/ui/jni; cd external/chromium_org/ui; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/ui/WindowAndroid.java --output_dir "/media/reS28raM/android/omni/out/target/product/i9300/obj/GYP/shared_intermediates/ui/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
[32mImport includes file:[0m /media/reS28raM/android/omni/out/target/product/i9300/obj/STATIC_LIBRARIES/ui_ui_gyp_intermediates/import_includes
[32mExport includes file:[0m external/chromium_org/GypAndroid.linux-arm.mk -- /media/reS28raM/android/omni/out/target/product/i9300/obj/STATIC_LIBRARIES/ui_ui_gyp_intermediates/export_includes
Gyp action: Generating JNI bindings from /media/reS28raM/android/omni/prebuilts/sdk/17/android.jar/android/view/Surface.class (/media/reS28raM/android/omni/out/target/product/i9300/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h)
Traceback (most recent call last):
File "../../base/android/jni_generator/jni_generator.py", line 1070, in <module>
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1066, in main
options.optimize_generation)
File "../../base/android/jni_generator/jni_generator.py", line 1001, in GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, namespace)
File "../../base/android/jni_generator/jni_generator.py", line 514, in CreateFromClass
jni_from_javap = JNIFromJavaP(stdout.split('\n'), namespace)
File "../../base/android/jni_generator/jni_generator.py", line 457, in __init__
contents[1]).group('class_name')
AttributeError: 'NoneType' object has no attribute 'group'
make: *** [/media/reS28raM/android/omni/out/target/product/i9300/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Errore 1
make: *** Attesa per i processi non terminati....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
real 4m21.228s
user 4m4.210s
sys 0m53.027s
Don't understand that reference to SDK API 17 at all, are you guys still using Ubuntu 13.10 to build OmniROM for Galaxy S3? Thx
reS28raM said:
Hi,
I successfully built the rom for a couple months on Ubuntu 13.10 following wiki's instructions, as an exercise on learning how to 'cherry-pick' stuff into a work-tree, now wanna add Hammerhead to the working tree BUT it seems that the building system for GT-I9300 is actually broken (maybe by an update?), here's the log:
mkdir -p /media/reS28raM/android/omni/out/target/product/i9300/obj/GYP/shared_intermediates/ui/jni; cd external/chromium_org/ui; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/ui/WindowAndroid.java --output_dir "/media/reS28raM/android/omni/out/target/product/i9300/obj/GYP/shared_intermediates/ui/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
[32mImport includes file:[0m /media/reS28raM/android/omni/out/target/product/i9300/obj/STATIC_LIBRARIES/ui_ui_gyp_intermediates/import_includes
[32mExport includes file:[0m external/chromium_org/GypAndroid.linux-arm.mk -- /media/reS28raM/android/omni/out/target/product/i9300/obj/STATIC_LIBRARIES/ui_ui_gyp_intermediates/export_includes
Gyp action: Generating JNI bindings from /media/reS28raM/android/omni/prebuilts/sdk/17/android.jar/android/view/Surface.class (/media/reS28raM/android/omni/out/target/product/i9300/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h)
Traceback (most recent call last):
File "../../base/android/jni_generator/jni_generator.py", line 1070, in <module>
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1066, in main
options.optimize_generation)
File "../../base/android/jni_generator/jni_generator.py", line 1001, in GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, namespace)
File "../../base/android/jni_generator/jni_generator.py", line 514, in CreateFromClass
jni_from_javap = JNIFromJavaP(stdout.split('\n'), namespace)
File "../../base/android/jni_generator/jni_generator.py", line 457, in __init__
contents[1]).group('class_name')
AttributeError: 'NoneType' object has no attribute 'group'
make: *** [/media/reS28raM/android/omni/out/target/product/i9300/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Errore 1
make: *** Attesa per i processi non terminati....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
real 4m21.228s
user 4m4.210s
sys 0m53.027s
Don't understand that reference to SDK API 17 at all, are you guys still using Ubuntu 13.10 to build OmniROM for Galaxy S3? Thx
Click to expand...
Click to collapse
Wrong Java version or Python version.
I was using OpenJDK and was happy to see it working, maybe it is time to switch to Oracle's
Sent from my Nexus 5 using Tapatalk

Noob development question: avc permission denied { open } on zip file, Marshmallow

This question was also asked in StackOverflow by me. (http://stackoverflow.com/questions/34547745/android-marshmallow-new-file-gives-permission-denied)
My apologies if this has been asked, but the only articles/threads for SELinux explained the policies and didn't have a procedure on Android, OR were not for Android.
Currently writing an app where content (in a small zip file) is downloaded from an external location and stored inside /data/data/package_name_removed/user1/, to be read later.
I currently have a zip file in that directory "Test.zip".
A try-catch loop containing:
Code:
//where filename is Test.zip
//and userDir = "user1"
//and sourceContext is passed from the base Activity calling this class that does not inherit Activity
Log.d("Target file is", sourceContext.getFilesDir()+"/"+userDir +"/"+ fileName);
File file = new File(sourceContext.getFilesDir()+"/"+userDir +"/"+ fileName);
ZipFile loadedFile = new ZipFile(file);
Doesn't seem to work in Marshmallow:
Code:
D/Target file is: /data/data/package_name_removed/files/user1/Test.zip
W/package_name_removed: type=1400 audit(0.0:11699): avc: denied { open } for name="Test.zip" dev="mmcblk0p29" ino=57426 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0 tclass=file permissive=0
"avc" is a SELINUX error according to the documentation.
This is a Log.d of the IOException getMessage; I think this one's generated from the new File() statement:
Code:
D/Log_title_omitted: /data/data/package_name_removed/files/user1/Test.zip: open failed: EACCES (Permission denied)
I'm pretty sure I do not need READ/WRITE_EXTERNAL_STORAGE at this point as I'm in a directory that is the app's personal directory, which the app is supposed to have access to anyway.
I don't think I should change SELINUX to Permissive in order for this to work, I can't guarantee this flag is set on any other device but mine.
Any help here? Or is the procedure now to get write permissions to a location that isn't guaranteed to exist?
Answer found on StackOverflow:
Manually copying the file into the app's own data/data/package_name/ directory on a rooted device will not work if SELinux is "enforcing" - The app must own the file by "creating" it. Giving it r permissions across the board isn't enough.
No idea how this is for places requiring READ_EXTERNAL.
My solution involved creating a temporary http download service to pass the file along.

Error in Signing

I've struggled for weeks in getting properly signed release apk's using Android Studio. I've tried new certificates, v1, v2, v1 & v2, read all the tips and tricks on various forums, nothing seems to work. My output from jarsigner -verify is:
This jar contains entries whose certificate chain is invalid. Reason: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This jar contains entries whose signer certificate is self-signed.
This jar contains signatures that do not include a timestamp. Without a timestamp, users may not be able to validate this jar after any of the signer certificates expire (as early as 2048-03-27).​
How can I fix this?
Thanks in advance,
Dave

Trouble using picamera python module with raspberry pi 4

Hello All,
I am using a raspberry pi4 with a bullseye os - 64 bit.
In a virtual environment, I used - "pip install picamera" - to install the module
Whenever I try to import picamera, I get the following error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/Documents/proj_trash_can/cam.py", line 2, in <module>
from picamera import PiCamera
File "/home/pi/Documents/proj_trash_can/venv/lib/python3.9/site-packages/picamera/__init__.py", line 72, in <module>
from picamera.exc import (
File "/home/pi/Documents/proj_trash_can/venv/lib/python3.9/site-packages/picamera/exc.py", line 41, in <module>
import picamera.mmal as mmal
File "/home/pi/Documents/proj_trash_can/venv/lib/python3.9/site-packages/picamera/mmal.py", line 49, in <module>
_lib = ct.CDLL('libmmal.so')
File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libmmal.so: cannot open shared object file: No such file or directory
Click to expand...
Click to collapse
I have updated and upgraded with sudo but to no luck. It seems I am missing a directory and some files. Requesting some guidance and help regarding this problem - I would be very grateful.
If any added information is needed to be provided from my side, kindly let me know how to do so and I will provide it.
Thank You.

Categories

Resources