| Reply | « Previous Thread | Next Thread » |
|
Join Date: Nov 2007
Posts: 494
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
Hello !
I have tried a lot to create my sis file but I couldn't. I am receiving several logs related to missing módules but I dont know how to include them. I need some help. What I did until now: 1) First, I tried to use my old script (it used to work with python 1.9.2). My code is located at src and I have a default.py. Code:
@echo off
REM %1 is the version number, like 1.4.2
IF "%1" EQU "" GOTO error
SET PYTHON=C:\Python25\python.exe
SET APPNAME=Wordmobi
SET CAPBLS=NetworkServices+LocalServices+ReadUserData+WriteUserData+UserEnvironment
SET SRCDIR=src
SET TXTFILE=README
SET TMPDIR=src.tmp
SET ICON=wordmobi.svg
SET OPTS=--verbose --version="%1" --appname="%APPNAME%" ^
--textfile="%TXTFILE%" --icon="%ICON%" ^
--caps="%CAPBLS%" "%TMPDIR%"
echo "Generating for Python 1.9.2..."
rmdir /s /q %TMPDIR%
mkdir %TMPDIR%\extras\data\python
copy %SRCDIR%\*.py %TMPDIR%\extras\data\python
move %TMPDIR%\extras\data\python\default.py %TMPDIR%\
%PYTHON% ensymble.py py2sis %OPTS% --extrasdir=extras --heapsize=4k,5M "%APPNAME%-%1-py19.sis"
goto end
:error
echo Sintaxe: %0 version
:end
Code:
import e32
import sys
if float(e32.pys60_version[:3]) >= 1.9:
sys.path.append("c:\\data\\python")
import wordmobi
wordmobi.WordMobi().run()
In both cases, there are warning in the screen related to missing modules (below). Sis is generate and may be installed but it does not work (we have missing modules). Code:
WARNING: Dependent module 'tty' not found WARNING: Dependent module '_sha512' not found WARNING: Dependent module 'aifc' not found WARNING: Dependent module 'whichdb' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'sgmllib' not found WARNING: Dependent module 'pprint' not found WARNING: Dependent module 'unittest' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'SocketServer' not found WARNING: Dependent module 'repr' not found WARNING: Dependent module 'email' not found WARNING: Dependent module '_lsprof' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module '_MozillaCookieJar' not found WARNING: Dependent module 'bisect' not found WARNING: Dependent module 'cmd' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'pydoc' not found WARNING: Dependent module 'sha' not found WARNING: Dependent module 'token' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'shlex' not found WARNING: Dependent module 'dummy_threading' not found WARNING: Dependent module 'dis' not found WARNING: Dependent module 'fcntl' not found WARNING: Dependent module 'asyncore' not found WARNING: Dependent module 'locale' not found WARNING: Dependent module 'chunk' not found WARNING: Dependent module 'popen2' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'BaseHTTPServer' not found WARNING: Dependent module 'calendar' not found WARNING: Dependent module 'bdb' not found WARNING: Dependent module 'py_compile' not found WARNING: Dependent module 'new' not found WARNING: Dependent module 'formatter' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'cgi' not found WARNING: Dependent module 'optparse' not found WARNING: Dependent module 'inspect' not found WARNING: Dependent module 'fnmatch' not found WARNING: Dependent module 'md5' not found WARNING: Dependent module '_locale' not found WARNING: Dependent module 'logging' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'opcode' not found WARNING: Dependent module 'doctest' not found WARNING: Dependent module 'pstats' not found WARNING: Dependent module 'pdb' not found WARNING: Dependent module 'base64' not found WARNING: Dependent module 'sensor_defs' not found WARNING: Dependent module 'dummy_thread' not found WARNING: Dependent module 'email' not found WARNING: Dependent module '_LWPCookieJar' not found WARNING: Dependent module 'pkgutil' not found WARNING: Dependent module 'binascii' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'symbol' not found WARNING: Dependent module '_sha256' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'Cookie' not found WARNING: Dependent module 'tokenize' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'unicodedata' not found WARNING: Dependent module 'anydbm' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'uu' not found WARNING: Dependent module '_csv' not found WARNING: Dependent module 'markupbase' not found WARNING: Dependent module 'multifile' not found WARNING: Dependent module 'mimetools' not found WARNING: Dependent module 'parser' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'shutil' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'symtable' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'gettext' not found WARNING: Dependent module '_ssl' not found WARNING: Dependent module 'rfc822' not found WARNING: Dependent module 'glob' not found WARNING: Dependent module 'textwrap' not found WARNING: Dependent module 'codeop' not found WARNING: Dependent module 'email' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'email' not found WARNING: Dependent module '_symtable' not found WARNING: Dependent module 'difflib' not found WARNING: Dependent module 'compiler' not found WARNING: Dependent module 'htmllib' not found WARNING: Dependent module 'gzip' not found WARNING: Dependent module 'hmac' not found Any tips ? Marcelo Barros Marcelo Barros Nokia E71, N800, N95, XM5800, N900 http://www.croozeus.com http://blog.nokiabr.com.br
Last edited by marcelobarrosalmeida : 2009-05-24 at 19:26.
|
|
Join Date: Nov 2007
Posts: 494
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
|
Following this thread:
Quote:
![]() Marcelo Barros Marcelo Barros Nokia E71, N800, N95, XM5800, N900 http://www.croozeus.com http://blog.nokiabr.com.br |
|
Join Date: Nov 2007
Posts: 494
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
Hi Marcelo,
How about to ckeck ensymble sources ? I can not say exactly what is happening but it is related to modules search inside <python s60 1.9.4 install dir>\module-repo. After checking src\py2sis\ensymble\module_repo.py I had some insights: Code:
module_repo_dir = os.path.abspath('module-repo')
std_modules_dir = os.path.join(module_repo_dir, 'standard-modules')
dev_modules_dir = os.path.join(module_repo_dir, 'dev-modules')
...
def search_module(modules):
dep_module_paths = []
if not os.path.exists(dev_modules_dir) or \
not os.path.exists(std_modules_dir):
raise RuntimeError("Module Dependency folder does not exist")
std_module_paths = [os.path.join(std_modules_dir, filename) \
for filename in os.listdir(std_modules_dir)]
...
for module_name in modules:
...
# Search in standard-modules repo directory. Remove the file extension
# and check if the module is present
if os.path.normcase(module_name) in \
[os.path.normcase(os.path.basename(std_module.split('.')[0]).split(prefix)[-1])
for std_module in std_module_paths]:
debug_print("Dep module %s found in Std. Library" % module_name)
...
Marcelo Barros PS: I felt alone in this thread ![]() Marcelo Barros Nokia E71, N800, N95, XM5800, N900 http://www.croozeus.com http://blog.nokiabr.com.br |
|
Hi Marcelo,
I had to fiddle a bit to work out how to use ensymble (on linux) as well. Not sure if they help, but here are my notes: http://baach.de/Members/jhb/pys60/de...n-for-s60/view Cheers, Joerg |
|
Join Date: Nov 2007
Posts: 494
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
|
Quote:
Thanks, Joerg. They are useful, for sure. Even more after I understood the origins of the problem. Good tips for bluetooth console as well ! Marcelo Marcelo Barros Nokia E71, N800, N95, XM5800, N900 http://www.croozeus.com http://blog.nokiabr.com.br |
|
Quote:
Thank you. import antigravity |
| ashwinurao |
| View Public Profile |
| Find all posts by ashwinurao |
|
Join Date: Nov 2007
Posts: 494
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
|
Quote:
Marcelo Marcelo Barros Nokia E71, N800, N95, XM5800, N900 http://www.croozeus.com http://blog.nokiabr.com.br |
|
Join Date: Nov 2007
Posts: 494
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
Marcelo Barros Nokia E71, N800, N95, XM5800, N900 http://www.croozeus.com http://blog.nokiabr.com.br |
|
Join Date: Nov 2007
Posts: 494
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
Hi
I think I found the "root" of this problem: PATHS WITH DOTS ! I was using "d:\s60\python1.9.4" as install dir for PyS60 so I copy all modules to my project dir and generated the sis. But, when I changed my project dir to something with dots in the path, the error started to happen again. Marcelo Marcelo Barros Nokia E71, N800, N95, XM5800, N900 http://www.croozeus.com http://blog.nokiabr.com.br |
|
Quote:
|
| mahesh.sayibabu |
| View Public Profile |
| Find all posts by mahesh.sayibabu |
|
Join Date: Nov 2007
Posts: 494
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
|
Quote:
![]() Tested. Fixed in 1.9.5 (My favorite version !) Marcelo Marcelo Barros Nokia E71, N800, N95, XM5800, N900 http://www.croozeus.com http://blog.nokiabr.com.br |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Python for S60 1.9.4 is now released | tvijayan | Python | 9 | 2009-05-27 11:39 |
| An issue with ensymble and Python 1.9.4 | sptkrishnan | Python | 7 | 2009-05-26 06:13 |
| Python for S60 1.9.3 released | tvijayan | Python | 40 | 2009-04-03 16:00 |
| Python for S60 1.9.1 released | tvijayan | Python | 30 | 2009-02-26 07:16 |
| Python for S60 1.9.0 released | tvijayan | Python | 48 | 2009-01-27 16:39 |