Keryx says: "the handle is invalid"
When I try to run keryx from my usb flash memory it gives this error message and won't start:
H:/keryx/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Keryx Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mahdi Fattahi
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
What operating system are you experiencing this issue on/
Revision history for this message
|
#2 |
Windows XP SP3
On Wed, May 5, 2010 at 2:31 AM, Chris Oliver <
<email address hidden>> wrote:
> Your question #109569 on Keryx changed:
> https:/
>
> Status: Open => Needs information
>
> Chris Oliver requested for more information:
> What operating system are you experiencing this issue on/
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you are a direct
> subscriber of the question.
>
Revision history for this message
|
#4 |
This appears to be a bug with py2exe and/or the subprocess module. Do you have administrative access to install python 2.5 and pygtk on Windows by chance? Running from source like this could help us determine if the issue is py2exe related or not. Thanks!
Chris
Revision history for this message
|
#5 |
Yes i have admin rights. I will install them and inform u of the result.
On 5/5/10, Chris Oliver <email address hidden> wrote:
> Your question #109569 on Keryx changed:
> https:/
>
> Status: Open => Needs information
>
> Chris Oliver requested for more information:
> This appears to be a bug with py2exe and/or the subprocess module. Do
> you have administrative access to install python 2.5 and pygtk on
> Windows by chance? Running from source like this could help us determine
> if the issue is py2exe related or not. Thanks!
>
> Chris
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you are a direct
> subscriber of the question.
>
Revision history for this message
|
#6 |
I installed python 2.5, pygtk 2.16 and latest gtk+ runtime, but keryx still fails to start.
Revision history for this message
|
#7 |
I installed python 2.6 too as pygtk said it requires python 2.6. Still no success.
Revision history for this message
|
#8 |
Hmmm...Did it give you any different errors? I am surprised of this. Run it from terminal and see if the output there is any different and post the traceback for us to take a look at. Hopefully we can get this figured out for you.
Revision history for this message
|
#9 |
Dear Chris
This is what I get when launching keryx:
F:\keryx\
Loading config: F:\keryx\
Traceback (most recent call last):
File "<string>", line 132, in <module>
File "keryx\
File "keryx\
_
File "keryx\
rapApp
File "keryx\
File "keryx\
LookupError: unknown encoding: cp720
Revision history for this message
|
#10 |
Thanks for the output. I would try deleting the logs folder and running Keryx again. Hopefully that will help as there is something wrong with the formatting of the file according to that error it seems.
Revision history for this message
|
#11 |
Thanks for the output. I would try deleting the logs folder and running Keryx again. Hopefully that will help as there is something wrong with the formatting of the file according to that error it seems.
Revision history for this message
|
#12 |
Thanks for the output. I would try deleting the logs folder and running Keryx again. Hopefully that will help as there is something wrong with the formatting of the file according to that error it seems.
Revision history for this message
|
#13 |
Need to see if the error is fixed after deleting the logs folder.
Revision history for this message
|
#14 |
I cleared the logs folder and tried running keryx again. This is what I got:
F:\keryx\
Loading config: F:\keryx\
Traceback (most recent call last):
File "<string>", line 132, in <module>
File "keryx\
File "keryx\
_
File "keryx\
rapApp
File "keryx\
File "keryx\
LookupError: unknown encoding: cp720
Revision history for this message
|
#15 |
I cleared the logs folder and tried running keryx again. This is what I got:
F:\keryx\
Loading config: F:\keryx\
Traceback (most recent call last):
File "<string>", line 132, in <module>
File "keryx\
Start
File "keryx\
__init_
_
File "keryx\
_Bootst
rapApp
File "keryx\
OnInit
File "keryx\
LookupError: unknown encoding: cp720
On Thu, May 13, 2010 at 3:18 PM, Chris Oliver <
<email address hidden>> wrote:
> Your question #109569 on Keryx changed:
> https:/
>
> Status: Answered => Needs information
>
> Chris Oliver changed the question status:
> Need to see if the error is fixed after deleting the logs folder.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>
Revision history for this message
|
#17 |
By the way I don't know if this has anything to do with the error but I am behind an ISA server firewall.
Revision history for this message
|
#18 |
What is your default language on that computer? It appears that it's a problem with using a string to open the filename since it is in a different locale.
Revision history for this message
|
#19 |
English. I'm not sure what you mean by "string to open the filename"?
Revision history for this message
|
#20 |
Alright hmm...Which version of python do you have installed?
Revision history for this message
|
#21 |
And just to double check you are now running it from Keryx.py correct?
Revision history for this message
|
#22 |
No I executed keryx.exe from the win32 folder. How can I run it from Keryx.py?
On 5/13/10, Chris Oliver <email address hidden> wrote:
> Your question #109569 on Keryx changed:
> https:/
>
> Chris Oliver requested for more information:
> And just to double check you are now running it from Keryx.py correct?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you are a direct
> subscriber of the question.
>
Revision history for this message
|
#23 |
Ah okay. That is probably why you aren't getting different outputs. Since you have Python and GTK installed, now you can open up the linux directory and double click on Keryx.py and run that instead. This will run it straight from the source code instead.
We have a little write up here about it: http://
Hopefully that helps and will give you different output.
Revision history for this message
|
#24 |
OK. Keryx is on my office PC (where I have broadband). On Saturday
I'll test this and report the output.
On 5/13/10, Chris Oliver <email address hidden> wrote:
> Your question #109569 on Keryx changed:
> https:/
>
> Chris Oliver posted a new comment:
> Ah okay. That is probably why you aren't getting different outputs.
> Since you have Python and GTK installed, now you can open up the linux
> directory and double click on Keryx.py and run that instead. This will
> run it straight from the source code instead.
>
> We have a little write up here about it:
> http://
>
> Hopefully that helps and will give you different output.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>
Revision history for this message
|
#25 |
OK here's the output:
F:\keryx\
File "keryx", line 1
SyntaxError: Non-ASCII character '\xc0' in file keryx on line 2, but
declared; see http://
Revision history for this message
|
#26 |
Actually try it against keryx.py in the source directory and see what happens then. The keryx file in the linux directory is actually an executable and wouldn't work being run with the python interpreter.
Revision history for this message
|
#27 |
Sorry for all the trouble. Hopefully we can get this figured out for you soon!
Revision history for this message
|
#28 |
No problem. I'd be glad if I could help you make the app better.
Here's the output of running keryx.py from source directory:
F:\keryx\
Loading config: F:\keryx\
Traceback (most recent call last):
File "keryx.py", line 115, in <module>
import wxversion
ImportError: No module named wxversion
F:\keryx\
On Sat, May 15, 2010 at 8:48 AM, Chris Oliver <
<email address hidden>> wrote:
> Your question #109569 on Keryx changed:
> https:/
>
> Chris Oliver posted a new comment:
> Sorry for all the trouble. Hopefully we can get this figured out for you
> soon!
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>
Revision history for this message
|
#29 |
If you can, install the package python-wxversion on there and run keryx.py again. It's an important package for Keryx so you'll need that to run it. Forgot to mention it. Hopefully that will work for you.
Revision history for this message
|
#31 |
OK I installed wxpython and this is the output:
F:\keryx\
Loading config: F:\keryx\
Traceback (most recent call last):
File "<string>", line 132, in <module>
File "keryx\
File "keryx\
_
File "keryx\
rapApp
File "keryx\
File "keryx\
LookupError: unknown encoding: cp720
F:\keryx\
Revision history for this message
|
#32 |
You can get it here: http://
Revision history for this message
|
#33 |
OK, could you run keryx.py in the 'source' directory?
Revision history for this message
|
#34 |
F:\keryx\
Loading config: F:\keryx\
Traceback (most recent call last):
File "F:\keryx\
lib.
File "F:\keryx\
keryx = wxKeryx(0)
File "F:\Python26\
, in __init__
self.
File "F:\Python26\
, in _BootstrapApp
return _core_.
File "F:\keryx\
log.
File "F:\keryx\
print status
LookupError: unknown encoding: cp720
F:\keryx\
Revision history for this message
|
#35 |
A temporary fix should be either deleting line 46 of source/lib/log.py or commenting out the line. It may or may not work because I'm unsure what Keryx will do with this weird character. You can try that and let us know if solves the problem or not and we can go from there.
I will be gone for a week so hopefully mac9416 can help you while I'm gone.
Revision history for this message
|
#39 |
But I'm now affected by this bug:
https:/
:(
Revision history for this message
|
#40 |
Doh. What is your output of running Python (by itself) and doing the following commands:
import platform
platform.dist()
You should get something like this:
chris@apoch:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.dist()
('Ubuntu', '10.04', 'lucid')
Revision history for this message
|
#41 |
Also, which version of Ubuntu are you trying to create the project on?
Revision history for this message
|
#42 |
I'm on Windows XP now. My target system is 10.04 (lucid)
Revision history for this message
|
#43 |
Oops! I didn't know this: "you’ll have to create your project on the Debian machine. "
Revision history for this message
|
#44 |
Ah yep common problem. i haven't had time to make a pre-made Lucid project that you could download but should have it done shortly after I get back next week. Hope everything works for you from here on out!