Reply
Thread Tools
Posts: 35 | Thanked: 18 times | Joined on Aug 2010 @ São Paulo, Brazil
#1
Dear fellows,

When running to apt-get python-dev (required to install lighblue library), I get this error:

Code:
RM696-21-3_PR_001:/home/user/lightblue-0.4-master# apt-get install python-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  python-dev: Depends: python2.6-dev (>= 2.6.6-1~) but it is not going to be installed
E: Broken packages
OK, so let's apt-get python2.6-dev

Code:
RM696-21-3_PR_001:/home/user/lightblue-0.4-master# apt-get install python2.6-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  python2.6-dev: Depends: libssl-dev but it is not going to be installed
E: Broken packages
RM696-21-3_PR_001:/home/user/lightblue-0.4-master#
Hmmm.. runnign apt-get install libssl-dev...
Code:
RM696-21-3_PR_001:/home/user/lightblue-0.4-master# apt-get install libssl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libssl-dev: Depends: libssl0.9.8 (= 0.9.8k-8maemo7+dbg+0m6) but 0.9.8r-maemo3+0m7 is to be installed
              Depends: zlib1g-dev but it is not going to be installed
E: Broken packages
RM696-21-3_PR_001:/home/user/lightblue-0.4-master#
That's strange.. so I need to downgrade the version of the package libssl-dev?
When I try to do that, something stranger happens:

Code:
RM696-21-3_PR_001:/home/user/lightblue-0.4-master# apt-get install libssl0.9.8=0.9.8k-8maemo7+dbg+0m6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  search busybox-symlinks-dnsutils libtelepathy-omb-glib0 aegis-enabler-enforce libmeegoimenginewords0 libmeegotouchevents0 ipa-fonts mstartup-l10n-engineering-english
  aegis-builder busybox-symlinks-iputils-ping wl1271-firmware gstreamer0.10-nokia-wm libnsautils1 wl1273-fm-radio-firmware calendar-db-default osso-wlan
 ...
<A LOT OF PACKAGES>
...
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  mp-harmattan-001-pr
The following packages will be DOWNGRADED:
  libssl0.9.8
0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 1 not upgraded.
Need to get 939kB of archives.
After this operation, 12.3kB disk space will be freed.
Do you want to continue [Y/n]?
So, in my understanding, the sdk.list repository was not updated when new versions of the firmware was released. So, to install a package from that, it is asking me to downgrade the whole OS version, basically.
Am I understanding that right?
Is there anything I can try to workaround this problem?
I already tried most common troubleshooting (apt-get -f, dpkg --configure, apt-get update -- of course, tried to disable some repositories... and now I am out of ideas).


Please bear with me. I am *very* new to python stuff and have no advanced/magic/guru knowledge of apt-get command (so chances are that I am missing something here).
What I can tell is that I have done that in my Kubuntu's notebook and had no problem.
And sorry for posting such a long question here. I have tried to contact someone on #harmattan, but seems like there's no one alive there :P

EDIT: Suggestions I have tried and didn't work:

1 - use a mirror of the sdk repository (http://mirror.thecust.net/harmattan-dev.nokia.com/)
__________________
Nokia N900 32GB Black
Nokia N9 16GB Black PR 1.3
Twitter: @cael_gomes

Last edited by cael_gomes; 2013-07-16 at 22:56.
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#2
sdk repository is only meant to be used with sdk scratchbox env, it never was meant for device, and should never be added on device. As it will cause the problems that you are having.

If you would only had installed packages from default repo you wouldn't have these problems. You can of course fix the depency problems and origins, but it might require you to learn how Aegis works, and you might need to modify some packages depends manifests by hand. In short, your screwed if you dont know how to do that. Luckily you can learn by reading TMO threads.
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.

Last edited by rainisto; 2013-07-16 at 07:03.
 

The Following 2 Users Say Thank You to rainisto For This Useful Post:
Elleo's Avatar
Posts: 266 | Thanked: 979 times | Joined on Jan 2010 @ London
#3
As rainisto said the SDK repo is only for use in Scratchbox, so for this sort of thing in the future you'll need to install and setup Scratchbox.

This time around however I've uploaded a pre-built version of lightblue here: http://mikeasoft.com/~mike/lightblue...rmattan.tar.gz

Just unpack it somewhere sensible and point your PYTHONPATH to it.
 

The Following User Says Thank You to Elleo For This Useful Post:
Posts: 35 | Thanked: 18 times | Joined on Aug 2010 @ São Paulo, Brazil
#4
Originally Posted by Elleo View Post
As rainisto said the SDK repo is only for use in Scratchbox, so for this sort of thing in the future you'll need to install and setup Scratchbox.

This time around however I've uploaded a pre-built version of lightblue here: http://mikeasoft.com/~mike/lightblue...rmattan.tar.gz

Just unpack it somewhere sensible and point your PYTHONPATH to it.
Thank you!

May I ask you how did you were able to build it (without python-dev)? Just for learning purposes - I am trying to understand the basics.
__________________
Nokia N900 32GB Black
Nokia N9 16GB Black PR 1.3
Twitter: @cael_gomes
 
Posts: 35 | Thanked: 18 times | Joined on Aug 2010 @ São Paulo, Brazil
#5
WOW WOW WOW WOW.

I just set up Scratchbox by hand, installed lightblue and harmattan-python-pybluez, copied the dist-packages folder to my n9, added the path to PYTHONPATH, granted permission with chmod and voila! Worked!

Thank you guys! It's so exciting learning new stuff like that.
And Elleo, thank you so much for your pre-builded lightblue -- helped me to understand what exactly I needed to copy from my scratchbox env to my n9.

I will set this post as solved.
__________________
Nokia N900 32GB Black
Nokia N9 16GB Black PR 1.3
Twitter: @cael_gomes
 
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#6
Another option would be using Harmattan SDK & Easy Chroot inside Nokia N9, see item 2 of the topic "Compiling & packaging on MeeGo Harmattan device".
It is simple to install and fast, good for C/C++/Python/Fortran/Qt programming anytime, anywhere.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.
 

The Following User Says Thank You to rcolistete For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 09:56.