cfx issues

82 views
Skip to first unread message

Mike7

unread,
Mar 13, 2010, 8:54:40 PM3/13/10
to mozilla-labs-jetpack
I'm wondering about a couple of problems with cfx.bat. If I execute
it without modification, Python seems to try to open ...\bin\bin\cfx
and fails due to "No such file or directory." If I edit \bin out of
cfx.bat and try cfx test, the following message appears:

Traceback (most recent call last):
File "c:\jetpack-sdk-0.1\bin\cfx", line 3, in <module>
import cuddlefish
ImportError: No module named cuddlefish

I'm using Windows Vista and don't know whether these are bug-related
problems or not.

Daniel

unread,
Mar 15, 2010, 11:39:06 PM3/15/10
to mozilla-labs-jetpack
There is a windows related bug that we are likely going to fix with a
0.1.1 release, sorry about the inconvenience!

- Daniel

Myk Melez

unread,
Mar 16, 2010, 8:38:01 PM3/16/10
to mozilla-la...@googlegroups.com, Mike7
Thanks for reporting the problem! I'm not sure it's a bug, but there's a
good chance it is, so I've filed a bug to get it on our radar:

https://bugzilla.mozilla.org/show_bug.cgi?id=552849

-myk

Atul Varma

unread,
Mar 17, 2010, 2:31:24 PM3/17/10
to mozilla-labs-jetpack
Hi Mike7,

Did you run 'bin\activate' before running 'cfx'? Doing that puts some
environment variables in your command prompt session that should fix
those problems you're having...

Sorry this is a little hard to debug right now. We should probably add
some code at the beginning of these .bat files that checks to see if
users have run bin\activate first and prints a helpful error message
if this is the case, to make things less confusing!

- Atul

On Mar 13, 6:54 pm, Mike7 <mike7...@gmail.com> wrote:

Mike7

unread,
Mar 20, 2010, 12:35:51 AM3/20/10
to mozilla-labs-jetpack
Hi Atul,

Yes, I did run bin\activate before running cfx.

- Mike

zina

unread,
May 9, 2010, 9:44:09 AM5/9/10
to mozilla-labs-jetpack
Hi!

I have the same problem(i get"... ImportError: No module named
cuddlefish" trying to run cfx docs at WinXP (python path, jetpack path
are named in $PATH), ). Here are some observations that may help:

1. %VIRTUAL_ENV% in activate.bat is not set that's why %CUDDLEFISH_ROOT
% is empty
2. i managed to run cfx docs under cygwin, hovewer the browser window
doen't appear. i can open the host manually.
3. cfx testall doesn't run appropriatelly (XUL Runner - Couldn't read
application.ini error) and after some time the following comes on the
screen:
Traceback (most recent call last):
File "/cygdrive/c/jetpack-sdk-0.3/bin/cfx", line 6, in <module>
cuddlefish.run()
File "/cygdrive/c/jetpack-sdk-0.3/python-lib/cuddlefish/
__init__.py", line 260
, in run
test_all_packages(env_root, defaults=options.__dict__)
File "/cygdrive/c/jetpack-sdk-0.3/python-lib/cuddlefish/
__init__.py", line 188
, in test_all_packages
defaults=defaults)
File "/cygdrive/c/jetpack-sdk-0.3/python-lib/cuddlefish/
__init__.py", line 482
, in run
logfile=options.logfile)
File "/cygdrive/c/jetpack-sdk-0.3/python-lib/cuddlefish/runner.py",
line 310,
in run_app
runner.stop()
File "/cygdrive/c/jetpack-sdk-0.3/python-lib/mozrunner/__init__.py",
line 427,
in stop
self.kill()
File "/cygdrive/c/jetpack-sdk-0.3/python-lib/mozrunner/__init__.py",
line 414,
in kill
for pid in get_pids(name, self.process_handler.pid):
File "/cygdrive/c/jetpack-sdk-0.3/python-lib/mozrunner/__init__.py",
line 106,
in get_pids
import wpk
File "/cygdrive/c/jetpack-sdk-0.3/python-lib/mozrunner/wpk.py", line
1, in <mo
dule>
from ctypes import sizeof, windll, addressof, c_wchar,
create_unicode_buffer

ImportError: cannot import name windll

I'm trying now to change to Firefox as a default browser.
Hope you can solve the problem soon

--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To post to this group, send email to mozilla-la...@googlegroups.com.
To unsubscribe from this group, send email to mozilla-labs-jet...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mozilla-labs-jetpack?hl=en.

Reply all
Reply to author
Forward
0 new messages