maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Problems executing python script [python newbie] (https://talk.maemo.org/showthread.php?t=89882)

_DICE_ 2013-04-23 19:05

Problems executing python script [python newbie]
 
Hi guys,

I am developing a Dropbox client for the N900. I know, there is already DropN900, but it never worked on my N900 (tried everything I could find in the internet). So I decided to solve this problem.

On my computer (Windows 7 Ultimate 64-Bit) I created a little console application that allows up- and download from the Dropbox account and it works fine on the computer (Python26, Dropbox-Python-SDK installed).

But when I try to test it on the N900 it returns errors: "no module named ..." (replace ... with the module name). And this is my problem. I am new to python (normally I develop apps using c++ with the Qt-Framework) and a little bit overstrained.
Until now, I found out, that modules seem to be python files called modulename.py. And when I copy the files into my clients folder, the error disappears.

But I am not quite sure, if this is the right way.
  1. I copied now about 10 py files from the python installation on my pc into my clients folder. I do not think, that this is the right way to solve the problem.
  2. It complains about the module "_ssl". This module does not even exist on my pc (or: Everything [a search tool] did not find it) !

Can someone explain me, how I can find out, which modules my client needs, where I can get them for the N900 and where they have to be stored on the N900 (I think somewhere in /lib/python or something like this) - because just copying the hole Python26 installation from my pc cannot be the solution.

Wikiwide 2013-04-24 12:44

Re: Problems executing python script [python newbie]
 
Quick reply...
Try installing, on N900, package "Python-openssl". Underscore probably means that a library/C-code is required.
I wouldn't recommend copying files manually from PC. With universally readable files, like .py, it's a workable mess - workable, but chaotic. With binary files, like .dll/.so, it's complete incompatibility: Windows-Linux, 64-32, armel processor on N900 and Intel (usually) processor on PC.
Best wishes.
_________________
Per aspera ad astra...


All times are GMT. The time now is 15:27.

vBulletin® Version 3.8.8