-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fmbttizen.TizenConnectionError: Connecting to a Tizen device/emulator #27
Comments
The fmbttizen library tries to execute pythonCommand on the emulator / device. If neither of the following launches Python, the problem is that it is not installed on the emulator:
Please see issue #18 to find Python RPMs. |
Thank you for your prompt reply. I installed (on emulator) the files bellow: The results: sdb shell /opt/python/bin/python For some reason, Python isn't being installed in /opt/python/bin I'm not sure if it is the correct procedure. Unfortunately, the error message persists: |
Ok, in that case you can drop If you need to write code that has to work with both typical Python and "/opt/python/bin/python", I would suggest using
|
I'm beginning to suspect that the problem can be with my environment configuration (running Tizen 2.3b in a virtual machine with Ubuntu 14.04). The issue #18 refers to version 2.2. However, I could install those RPMs in new emulator. Is it a problem of the new version of Tizen? Please, can you recommend me a stable configuration (environment)? The project fMBT is very interesting and I'd like to test it. |
I installed Tizen 2.3b to Ubuntu 14.04 that runs on a virtual machine. I installed The root cause seems to be that emulator:/tmp/fmbttizen-agent.py cannot connect to the X server (on emulator) when running as a "developer". Try As a quick solution, I would suggest running I will see if I could make the root cause of the error visible to the user. |
Error messages are now more informative. I also noticed that input devices on Tizen 2.3b emulator differ from those on earlier Tizen emulators. So a patch was needed to get pressBack(), pressHome(), pressMenu(), pressVolumeUp(), pressVolumeDown() working. The patch is now in fMBT devel branch. Please use fMBT from github devel branch or fMBT packages for Ubuntu from my PPA repo in order to test Tizen 2.3b. |
Yes!!! I followed your instructions and everything is working now. Thank for your help and patience, Attin. I hope you continue to maintain this excellent work. |
Glad to hear that, @ehro. Thanks for your contribution to the project! Closing the issue. |
I'm glad to hear about support of Tizen 2.3! |
Hi @ehro, |
@Rosi061, my installation was Ubuntu-based. I just followed the instructions described on Tizen website. Are you using another distro? |
@ehro Could you provide a link, please? |
@Rosi061, you should be able to install Python rpms by running |
Dear Askervin, Thank you. |
Hi, Please try this "sdb root on" and let me know if it works for you Thanks |
Hi Madhav, |
Hi Madhav, Thanks a lot. |
Hello, Antti.
I'm facing the same issue related in #23. However, I can't find a solution. The error message displayed in fmbt-scripter is:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/dist-packages/fmbttizen.py", line 179, in init
pythonCommand=pythonCommand)
File "/usr/lib/python2.7/dist-packages/fmbttizen.py", line 591, in init
self.open()
File "/usr/lib/python2.7/dist-packages/fmbttizen.py", line 667, in open
raise TizenConnectionError('Connecting to a Tizen device/emulator with "sdb -s %s shell" failed.' % (self._serialNumber,))
fmbttizen.TizenConnectionError: Connecting to a Tizen device/emulator with "sdb -s emulator-26101 shell" failed.
My results:
$which sdb:
/home/tizen/tizen-sdk/tools/sdb
$ sdb version
Smart Development Bridge version 2.2.48
$python -c 'import fmbttizen; print fmbttizen.Device(pythonCommand="/opt/python/bin/python")'
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/dist-packages/fmbttizen.py", line 179, in init
pythonCommand=pythonCommand)
File "/usr/lib/python2.7/dist-packages/fmbttizen.py", line 591, in init
self.open()
File "/usr/lib/python2.7/dist-packages/fmbttizen.py", line 667, in open
raise TizenConnectionError('Connecting to a Tizen device/emulator with "sdb -s %s shell" failed.' % (self._serialNumber,))
fmbttizen.TizenConnectionError: Connecting to a Tizen device/emulator with "sdb -s emulator-26101 shell" failed.
$sdb -s emulator-26101 shell
->shell opens successfully
$python -c 'print "hello"'
hello
$/opt/python/bin/python -c 'print "hello"'
bash: /opt/python/bin/python: File or directory not found
$/usr/bin/python -c 'print "hello"'
hello
$python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
$echo $PATH
$/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib:/home/tizen/tizen-sdk/tools
Please, can you help me?
The text was updated successfully, but these errors were encountered: