-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KiCost GUI mode not working - Win7x64 #493
Comments
Hi @sujitth! Thanks for adding this report. Could you add the output from I suspect this could be related to a wxWidgets problem found in version 4.1: DeepLabCut/DeepLabCut#682 |
Hi @set-soft , Please find the info: |
Ok, can you try to downgrade wx to 4.0.7 as suggested in the issue I mentioned? I think something like this should work:
The thread says:
|
Hi @set-soft , still gui couldn't start, please find the error report. |
This is similar to what I have on Linux:
So I don't think this is a problem of KiCost setting some locale. But just in case: Can you try commenting the |
Hi @set-soft , Please find attached the error report after made the changes as stated above. |
Hi @sujitth ! I added wxWidgets locale initialization. This also logs what you got initialized for wxWidgets and what Python thinks is the system locale. In my case:
Please try it and tell me what you get. |
Hi @set-soft , Please find attached the error report after installing latest kicost. |
Hi @sujitth !
I need the output you get using: IMHO this is a wxPython bug, but we should find a workaround. |
Hi @set-soft , Yes, the file Gui_test2.txt was the test output before making the loc code changes using the command provided. I have reverted the changes made and done the test again, same output. |
Hi @sujitth ! This is not the last git code. What do you get from |
Hi @set-soft , Please find the kicost --info attached below: |
Hi @sujitth! And this version doesn't print any debug information about the locale?
|
Hi @set-soft , No. |
Please check that line 1171 of
If this is the case:
|
Hi @set-soft , Ok, there was a mistake in the command I have run, I was included 2> in previous attempts. Please find the output: (I have fiddled with setting locale during previous bug report:492 it seems, pls check those screenshots aso)
I did't understood this. |
This log shows the source of the problem. wxWidgets is failing to set your locale. About the changes you made for #492: What's the current value for the environment variable About point 2: never mind, it was a debug suggestion assuming you didn't get the message that you are getting. Things will be solved when we get wxWidgets locale in sync with your system. |
Hi @set-soft , The GUI mode was working on KiCost - 1.0.4, the issue started after updating to current version. |
Your LC_ALL is wrong, doesn't match your system. Please try to define it as About KiCost 1.0.4: Which wxPython and wich Python did you use with it? Again: I think this is purely a wxWidgets problem, nothing related to KiCost. The fact that BTW: Your setup doesn't seem to be supported by wxWidgets: https://wxpython.org/Phoenix/docs/html/wx.Language.enumeration.html#wx-language (no wx.LANGUAGE_ENGLISH_INDIA) Things to try:
|
Hi @set-soft ,
Python 3.6 or 3.7(anaconda), wxPython- I did't checked that time.
This worked, gui mode is working now. no .xlsx file is generated for test2.xml file and what is this thing "locale setting" is related to kicost functionality? currency setting related? |
Hi @sujitth !
:-(
Nice!
Currently: nothing at all. kiCost is currently pure "en_US". Please try with the last patch. About the fail to generate test2.xlsx: The screen capture is incomplete, the scroll bar says more text is there. |
Hi @set-soft ,
No it seems, in windows the scroll bar in command prompt and content has no connection in general. |
- The automatic mechanism fails (broken and broken again!) - Related to #493
Hi @sujitth !
Then: are you sure you didn't wait enough? If KitSpace is saturated it will just time-out, see #417
Then wxWidgets is even more broken than what I thought ;-) (You can't change the locale twice using the API!) |
Hi @set-soft ,
The kitspace API limit was reached and @kasbah has reset it.
I have selected only 2 distributors only, what is the Local generated on the XL sheet? |
Hi @sujitth !
Sorry, I don't follow you. This looks like KitSpace failing. Do you mean that you have a BoM that can generate it even when other BoMs are working? If this is the case please send me it by mail so I can try to find where is the problem.
Ok. So now we have a workaround for systems where wxWidgets locale misserably fails. Thanks for testing it.
This is the mechanism that allows defining your own prices. The SW1 component defines: <field name="manf#">RS-282G05A3-SM RT</field>
<field name="kicost:pricing">1:0.10;10:0.03</field>
<field name="kicost:link">http://www.xess.com</link> So you get a Unit$ of $0,03 buying 10 parts. And the URL for the part is http://www.xess.com |
Hi @set-soft , Thank you very much for resolving the issue. |
Issue / Problem report
kicost --version
at terminal.KiCost 1.1.5
--debug
option on KiCost call;kicost -w -i %YOUR_FILE% --debug 8
kicost
Feature / Enhancement request
Hi @set-soft ,
The KiCost GUI mode not able to start, please refer the attached error report.
gui_error.txt
The team thanks your contribution.
The text was updated successfully, but these errors were encountered: