Advanced Search

Search Results (Searched for: )

  • workshop54
  • workshop54
14 May 2025 14:34

Best practice for installing custom Python packages in LinuxCNC?

Category: General LinuxCNC Questions

Fully agreed — if LinuxCNC ever gets a proper Java API, I’ll gladly throw my Python into the chip tray

Until then, I’ll just keep pretending my Python package has structure and discipline… while knowing deep down it’s all held together by logging statements and good intentions
  • unknown
  • unknown
14 May 2025 14:32
Replied by unknown on topic Combined MESA board order for Australia.

Combined MESA board order for Australia.

Category: Driver Boards

Oh great you're activly encourage someone to buy illegally cloned hardware, hardware mind that comes from a great company that gives fantastic support.
I've been waiting for you eff up.
  • unknown
  • unknown
14 May 2025 14:29

[SOLVED] New wifi card causes second parallel port to stop working

Category: General LinuxCNC Questions

Why do you need wi-fi?

Wi-Fi will increase latency for your CNC system.

Your CNC PC should be as minimal as possible.

Ethernet is far better than Wi-Fi anyhow.


Why do you do this, you add nothing, it's of completely no use.
Stop being an oxygen thief and find some other forum to ply your idiocy.
Does this stuff come naturally to you or do you have to work hard to be such a waste of space ?

My apologies to the OP but the user is a menace and I just couldn't put up with his complete uselessness.
  • langdons
  • langdons
14 May 2025 14:29 - 14 May 2025 14:30

[SOLVED] New wifi card causes second parallel port to stop working

Category: General LinuxCNC Questions

Some computers have a terrible BIOS with almost no features at all.

My Dell XPS 17 has like almost no helpful options in the BIOS.

It's incredibly lame.

Most PCs are UEFI nowadays anyways.
  • langdons
  • langdons
14 May 2025 14:27

[SOLVED] New wifi card causes second parallel port to stop working

Category: General LinuxCNC Questions

If you want to "surf the web", just get a second PC and use that for Wi-Fi.

Your CNC PC should probably be used solely for CNC stuff.

You can also potentially dual-boot (I recommend Ubuntu 22.04 LTS).
  • tommylight
  • tommylight's Avatar
14 May 2025 14:27

[SOLVED] New wifi card causes second parallel port to stop working

Category: General LinuxCNC Questions

In BIOS, see if there is the option to manually assign the IRQ resources and change the offending port IRQ so it is not the same as the WiFi card.
Not all PC's have that option.
  • unknown
  • unknown
14 May 2025 14:24

[SOLVED] New wifi card causes second parallel port to stop working

Category: General LinuxCNC Questions

Hard to really diagnose without seeing any relevant dmesg output or any info regarding the address of the parallel ports before failure and when failed.

If ptest works Linuxcnc should work.
  • langdons
  • langdons
14 May 2025 14:16

Best practice for installing custom Python packages in LinuxCNC?

Category: General LinuxCNC Questions

Python programming is generally something of a band-aid programmed free-for-all.

Java has conventions and structure.

Python is just "whatever floats your goat".
  • langdons
  • langdons
14 May 2025 14:14

[SOLVED] New wifi card causes second parallel port to stop working

Category: General LinuxCNC Questions

Why do you need wi-fi?

Wi-Fi will increase latency for your CNC system.

Your CNC PC should be as minimal as possible.

Ethernet is far better than Wi-Fi anyhow.
  • langdons
  • langdons
14 May 2025 14:10
Replied by langdons on topic Combined MESA board order for Australia.

Combined MESA board order for Australia.

Category: Driver Boards

See if you can buy a used MESA board from someone in Austrailia.

Or an Aisian knockoff.

Even in Canada, shipping from China/Thailand is often cheaper than shipping from USA.

(except digi-key)
  • RotarySMP
  • RotarySMP's Avatar
14 May 2025 14:06
Replied by RotarySMP on topic Bridgeport VMC760 retrofit

Bridgeport VMC760 retrofit

Category: Milling Machines

Yes, the RS-422 is their smart serial connection between the 7i97T FPGA main board and 7i73 and 7i84 daughter boards. Since there is only one RS-422 configured standard on the 7i97T (on TB4), you can only connect one of those two cards, until you reflash the 7i97T to reconfigure some of the pins of the P2 expansion port to provide a second RS-422.

Glad you are enjoying my videos. It is fun to dick around with this stuff :)
Cheers,
Mark
  • langdons
  • langdons
14 May 2025 14:02
Replied by langdons on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Open source is supposed to allow people to work together; but people don't work together, they insist on doing their own thing.

How does badly recoding chmod help anyone?
  • langdons
  • langdons
14 May 2025 13:58
Replied by langdons on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Turns out the GNU versions of chmod is inferior to the FreeBSD version I'm used to using on macOS.

Why don't the people at the GNU foundation just use the FreeBSD chmod?!!!

They could, but they insist on re-coding the wheel.

It's very annoying!

The FreeBSD has some issues, but has WAY more functionality than the GNU one.

The man page for chmod on macOS is WAY, WAY more detailed and informative than the lame, short GNU one.
  • workshop54
  • workshop54
14 May 2025 13:54 - 14 May 2025 13:56

Best practice for installing custom Python packages in LinuxCNC?

Category: General LinuxCNC Questions

 
Hi all,

I’ve developed a custom Python package — and not just a loose .py file, but a real multi-module package, complete with pyproject.toml, unit tests, internal structure, and even a __str__ for logging prettiness. Yes, I know, it’s total overkill for something that just drives the lubrication pump… but hey, it’s fun

The code I wrote can be found here if anyone is interested: github.com/johanvergeer/maho-mh400e-conf...ree/main/lubrication

Now I want to use this package from a Python script that’s launched via loadusr in my machine config.

Some context:
  • The script uses linuxcnc, hal, and qtvcp modules.
  • LinuxCNC runs on the global system Python interpreter as far as I can see, which means my package has to be available outside of any virtual environment.
  • Installing with pip install . into the global Python environment technically works, but it’s strongly discouraged on modern Debian-based systems due to PEP 668. I’ve already seen Poetry try to uninstall half of /usr/lib/python3 
  • Virtualenvs don’t help much either, since they can’t see LinuxCNC’s compiled modules.
  • Adding my repo folder to sys.path is possible, but feels like duct tape.
So… what’s the best practice here?
  • Is it acceptable to install your own packages into something like /usr/lib/python3/dist-packages/?
  • Is there an officially recommended way to include custom Python packages that need to be imported across multiple files or used in different HAL components?
Or am I simply in “here be dragons” territory and should stick to a bunch of flat .py files with global state? 

Any advice or patterns you use would be greatly appreciated!

Cheers,
Johan
 
  • langdons
  • langdons
14 May 2025 13:50
Replied by langdons on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

You can set special file permissions.

Allow write but not deletion.

Set the sticky bit to true.

Writing is allowed, but not deletion.
Displaying 3976 - 3990 out of 24524 results.
Time to create page: 0.467 seconds
Powered by Kunena Forum