Skip to content
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

Windows 10, Think I am doing something wrong. Have followed instructions to the best of my ability. Found 1 other with similar problem. His remedy did not work for me. #36

Closed
survivethewalkingdead opened this issue Feb 11, 2022 · 13 comments
Assignees
Labels
bug Something isn't working

Comments

@survivethewalkingdead
Copy link

No description provided.

@survivethewalkingdead
Copy link
Author

survivethewalkingdead commented Feb 11, 2022

C:\Users\Owner\Desktop>cd cn5x-master

C:\Users\Owner\Desktop\cn5X-master>dir
Volume in drive C is Acer
Volume Serial Number is E8D5-30CC

Directory of C:\Users\Owner\Desktop\cn5X-master

11-Feb-22 09:32 AM

.
11-Feb-22 09:32 AM ..
11-Feb-22 09:33 AM cn5X-master
0 File(s) 0 bytes
3 Dir(s) 310,636,195,840 bytes free

C:\Users\Owner\Desktop\cn5X-master>cd cn5x-master

C:\Users\Owner\Desktop\cn5X-master\cn5X-master>dir
Volume in drive C is Acer
Volume Serial Number is E8D5-30CC

Directory of C:\Users\Owner\Desktop\cn5X-master\cn5X-master

11-Feb-22 09:33 AM

.
11-Feb-22 09:33 AM ..
31-Jan-22 03:53 AM .github
31-Jan-22 03:53 AM 1,198 .gitignore
31-Jan-22 03:53 AM 124,543 cn5X.py
31-Jan-22 03:53 AM 4,621 cn5X.qrc
31-Jan-22 03:53 AM 3,028 cn5X_apropos.py
31-Jan-22 03:53 AM 3,154 cn5X_beep.py
31-Jan-22 03:53 AM 6,245 cn5X_config.py
31-Jan-22 03:53 AM 10,567 cn5X_gcodeFile.py
31-Jan-22 03:53 AM 6,050 cn5X_helpProbe.py
31-Jan-22 03:53 AM 15,967 cn5X_jog.py
31-Jan-22 03:53 AM 5,890,177 cn5X_rc.py
31-Jan-22 03:53 AM 37,041 cnled.py
31-Jan-22 03:53 AM 5,786 cnledplugin.py
31-Jan-22 03:53 AM 2,138 cnQLabel.py
31-Jan-22 03:53 AM 5,913 cnQPushButton.py
31-Jan-22 03:53 AM 2,334 compilOptions.py
31-Jan-22 03:53 AM 35,149 COPYING
31-Jan-22 03:53 AM 8,075 dlgAPropos.py
31-Jan-22 03:53 AM 12,701 dlgAPropos.ui
31-Jan-22 03:53 AM 57,379 dlgConfig.py
31-Jan-22 03:53 AM 80,386 dlgConfig.ui
31-Jan-22 03:53 AM 17,641 dlgG28_30_1.py
31-Jan-22 03:53 AM 21,163 dlgG28_30_1.ui
31-Jan-22 03:53 AM 11,519 dlgG92.py
31-Jan-22 03:53 AM 16,193 dlgG92.ui
31-Jan-22 03:53 AM 3,404 dlgHelpProbe.py
31-Jan-22 03:53 AM 4,812 dlgHelpProbe.ui
31-Jan-22 03:53 AM 22,825 dlgJog.py
31-Jan-22 03:53 AM 34,112 dlgJog.ui
31-Jan-22 03:53 AM doc
31-Jan-22 03:53 AM fonts
31-Jan-22 03:53 AM 1,949 gcodeQLineEdit.py
31-Jan-22 03:53 AM 10,841 grblCom.py
31-Jan-22 03:53 AM 20,499 grblComSerial.py
31-Jan-22 03:53 AM 2,903 grblComStack.py
31-Jan-22 03:53 AM 39,937 grblConfig.py
31-Jan-22 03:53 AM 48,793 grblDecode.py
31-Jan-22 03:53 AM 4,864 grblError.py
31-Jan-22 03:53 AM 14,054 grblG28_30_1.py
31-Jan-22 03:53 AM 12,320 grblG92.py
31-Jan-22 03:53 AM 3,588 grblJog.py
31-Jan-22 03:53 AM 11,362 grblProbe.py
31-Jan-22 03:53 AM i18n
31-Jan-22 03:53 AM images
31-Jan-22 03:53 AM 248,596 mainWindow.py
31-Jan-22 03:53 AM 385,824 mainWindow.ui
31-Jan-22 03:53 AM 2,100 Makefile
31-Jan-22 03:53 AM 5,196 msgbox.py
31-Jan-22 03:53 AM 27,172 Plaque01.ngc
31-Jan-22 03:53 AM 5,269 qweditmask.py
31-Jan-22 03:53 AM 5,686 qweditmaskplugin.py
31-Jan-22 03:53 AM 7,574 qwprogressbox.py
31-Jan-22 03:53 AM 2,343 README.md
31-Jan-22 03:53 AM 3,138 setup.py
31-Jan-22 03:53 AM 2,994 speedOverrides.py
11-Feb-22 09:33 AM pycache
50 File(s) 7,311,123 bytes
8 Dir(s) 310,636,183,552 bytes free

C:\Users\Owner\Desktop\cn5X-master\cn5X-master>cn5x
cn5X++ v0.8.7 running from: C:\Users\Owner\Desktop\cn5X-master\cn5X-master

            ####### #     #

# # # # # #

# ## # # # # #

# # # ##### # #####

# # # # # # #

# # ## # # # # #

# # ##### #

Traceback (most recent call last):
File "C:\Users\Owner\Desktop\cn5X-master\cn5X-master\cn5X.py", line 2762, in
window = winMain()
File "C:\Users\Owner\Desktop\cn5X-master\cn5X-master\cn5X.py", line 430, in init
self.__pBox = qwProgressBox(self)
File "C:\Users\Owner\Desktop\cn5X-master\cn5X-master\qwprogressbox.py", line 65, in init
self.pBoxLblStart.setGeometry(20, (self.pBoxBtnHeader.height() - self.pBoxLblStart.height())/2, self.pBoxLblStart.width(), self.pBoxLblStart.height())
TypeError: arguments did not match any overloaded call:
setGeometry(self, QRect): argument 1 has unexpected type 'int'
setGeometry(self, int, int, int, int): argument 2 has unexpected type 'float'

C:\Users\Owner\Desktop\cn5X-master\cn5X-master>

@fra589 fra589 added the bug Something isn't working label Feb 12, 2022
@fra589 fra589 self-assigned this Feb 12, 2022
@fra589
Copy link
Owner

fra589 commented Feb 12, 2022

Hi @survivethewalkingdead,

Many thanks for reporting,
It seams to be a bug (it's strange, but it doesn't happen to me) and I think I found where is it. :-)
I pushed a patch (v0.8.7.20220212), but, since I'm not at home, I don't have a Windows Box to test ans the bug doesn't affect me, tell me if it work for you.
For traceability, I also need to know what is your version of Windows, Python and QT?

@++;
Gauthier.

fra589 added a commit that referenced this issue Feb 12, 2022
@survivethewalkingdead
Copy link
Author

Thanks for the prompt response! :)
Edition Windows 10 Home
Version 20H2
Installed on ‎10-‎Jul-‎21
OS build 19042.1466
Experience Windows Feature Experience Pack 120.2212.3920.0

Py 3.9*** and 3.10***.Currently 3.10. Oh, I just found 3.4 also installed. Have removed 3.4 and 3.9.
I can't find qt version now...each time I installed successfully a message came up with version and slightly newer version available. I was not able to upgrade it. When I tried pip install pyqt5 just now it did something different, opened a second cmd window for a moment, went back to ready.
I've downloaded the new zip, will go try it now...
Darren.

@survivethewalkingdead
Copy link
Author

Uninstall all python. Download 3.10.2 again. Install. Install as admin. Will not run, will not associate with any .py files. Can't do anything now. :( Windows is all i know, NOT impressed anymore! (if ever. LOL). Googling...

@survivethewalkingdead
Copy link
Author

re-boot. uninstall py. reboot. install py. reboot. uninstall code reader. Still doesn't associate with Python, but Visual Studio starts it and it looks like it runs! First time I see the control panel! Thank you very much! Will play with it more tomorrow.
Darren

@fra589
Copy link
Owner

fra589 commented Feb 13, 2022

Hi @survivethewalkingdead,

I'm please to know that cn5X work for you 😃
Normally, open .py files is a Python install option, this option is not active by default and need to be checked during the Python install procedure.
By the way, perhaps there is a conflict between this option and the Visual Studio default file open options...

You can try to change the default file association with one of this link:
https://support.microsoft.com/en-us/windows/change-default-programs-in-windows-10-e5d82cad-17d1-c53b-3505-f10a32e1894d
https://www.google.com/search?q=change+default+file+association+windows

@++;
Gauthier.

@fra589 fra589 closed this as completed Feb 13, 2022
@survivethewalkingdead
Copy link
Author

Gauthier,

Finally got pyqt5 to show me version again... It is the pip that is looking for an upgrade, not qt or serial. I'm guessing pyserial is for comms with board. What is PyQT5 used for?

Microsoft Windows [Version 10.0.19042.1466]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Owner>pip install pyqt5
Requirement already satisfied: pyqt5 in c:\users\owner\appdata\local\programs\python\python310\lib\site-packages (5.15.6)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in c:\users\owner\appdata\local\programs\python\python310\lib\site-packages (from pyqt5) (12.9.0)
Requirement already satisfied: PyQt5-Qt5>=5.15.2 in c:\users\owner\appdata\local\programs\python\python310\lib\site-packages (from pyqt5) (5.15.2)
WARNING: You are using pip version 21.2.4; however, version 22.0.3 is available.
You should consider upgrading via the 'C:\Users\Owner\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.

C:\Users\Owner>

Definitely had the check box for .py association checked. Been trying multiple ways to change file association. Windows will not let me access the folder (AppData) where Python resides.
I'm beginning to suspect some security and authentication apps installed for my employer to allow remote access to work files... Citrix Receiver, Ping ID etc. Definitely not your problem!

Thanks for the great program and support!
Darren.

@fra589
Copy link
Owner

fra589 commented Feb 13, 2022

Hi Darren,

AppData is for Data, not for software programs. This probably the reason you can't associate .py files to Python. For this, you have to install it in Programs files.

Yes, pyserial is used for the serial com with Grbl.

The PyQT implement the QT5 framework in Python.
The QT5 framework is a cross platform development tool which have many-many functionalities. In cn5X, I use it for driving all the graphical interface windows and widgets, the multithreading, and many other things.
It works just as well in Linux (which I use) as in Windows or on Mac :-)

@++;
Gauthier.

@survivethewalkingdead
Copy link
Author

Strange python default save/install location. Changed to program files works much better! Thank you!

Is there documentation anywhere of features, settings, etc? Specifically, how to set up for Plasma cutting, and what are the lower left indicators? x,y,z,a,b,c,p,d,h,r,s? Thanks again,

Darren.

@fra589
Copy link
Owner

fra589 commented Feb 14, 2022

Hi Darren,

Like all retirees, I don't have enough time to do what I have in mind, and so I haven't found the time to write the full cn5X documentation yet. I rather favor writing new features for cn5X & grbl-Mega-5X...
I also do a lot of things other than computing software developement :-)

Process specific settings, if any, are to be made at the machine and Grbl level and not in cn5X.

The lower left indicators indicate the state of grbl's inputs:
x,y,z,a,b,c => Limit switch pins status,
p,d,h,r,s => The probe, door, hold, soft-reset, and cycle-start pins, respectively.

@++;
Gauthier.

@survivethewalkingdead
Copy link
Author

survivethewalkingdead commented Feb 14, 2022 via email

@survivethewalkingdead
Copy link
Author

survivethewalkingdead commented Feb 15, 2022

Since I can't read this, I don't know if it is Cn5x or Mega5x related... just trying to move steppers at the kitchen table. No limit switches so I removed all Z commands. It could very well be an issue with my gcode, but the random french that pops up may be something you would like to address? If so I can keep sending them to you as I find them. If not, no problem, just let me know! :-)

Oh...just clicked define G28 position and Cn5X closes...

$X
[MSG:Caution: Unlocked]
ok
G17 G20 G90 G94 G54
ok
X-0.5 Y0.
ok
G02 X0. Y0.5 I0.5 J0. F2.5
ALARM:2: Limite logicielle,
Alarme limite logicielle. La cible de mouvement du code G dépasse la course de la machine. Position de la machine conservée. L'alarme peut être déverrouillée en toute sécurité.

Darren

@fra589
Copy link
Owner

fra589 commented Feb 16, 2022

Hi Darren,

It's strange, the default language should be English when the local system language is not known in cn5X. The message you are quoting should have been in English.
I have the same behavior on my own cn5X system, I'll have to find out why this message is in French...

The alarm number 2 you are getting is from grbl-Mega-5X and is normal. This stems from the standard way coordinate space is handled in a CNC milling machine.
By default, the homing procedure (or at power-up when homing is disabled) sets the coordinates to 0 for the maximum axis travel limits. So, according to this, all machine coordinates lie in a space of negative dimensions. If you enter an axis destination with a positive coordinate (Y0.5 in your case) it will generate this error.
To use positive coordinates, the work coordinates must be defined using the GCode commands G92 or/and G54-G59. see http://linuxcnc.org/docs/html/gcode/coordinates.html

About cn5X crash when you click define G28 position, I need more details about the complete procedure which made this crash, from cn5X start to the cn5X unexpected close. So, it will be possible for me to try to reproduce and correct it.
EDIT: I will reply to this bug in your other issue #37

@++;
Gauthier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants