(Solved) QtPyVcp in Python3.9 venv issues

More
5 years 1 month ago #220873 by HarryXS
Hi at all,
I'm trying to install QtPyVcp on a Python 3.9.5 enviroment with all dependecies.

Now I'm stucked with:
Code:
from linuxcnc import ini ImportError: cannot import name 'ini' from 'linuxcnc' (unknown location)

importing linuxcnc works well.
This is strange...

Linuxcnc is Version 2.9.0~pre0
Thank you in advance.

Please Log in to join the conversation.

More
5 years 1 month ago #220874 by HarryXS
I think this is in the wrong subforum, it seems that it is a linuxcnc error from my side.
Please move it or delete it...

Please Log in to join the conversation.

More
5 years 1 month ago #220898 by tommylight
Leaving it a bit longer so please do report back.

Please Log in to join the conversation.

More
5 years 1 month ago #221182 by HarryXS
Ok, I tried to find out what happens.
- I freshly installed the linuxcnc 2.8 ISO from the buildbot.
- After that I installed qtpyvcp development for python3.

The same problem persists.

Python2.7:
from linuxcnc import ini
OK

Python 3.7.3 (from the ISO):
import linuxcnc -> OK

from linuxcnc import ini -> FAIL

I thought they made a change in the import of attributes in Python3.8 but it does not work with 3.7.3 either.

I'll try to install the qtpyvcp Python2 version.

I don't think linuxcnc 2.8 will work without Python 2.7.

Please Log in to join the conversation.

More
5 years 1 month ago #221184 by TurBoss
Hello,

i think that the only way to setup a venv with linuxcnc
is build from source after sourcing the venv

linuxcnc.org/docs/devel/html/code/buildi...ing_for_run_in_place

```
$ source venv/bin/activate
$ git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev
$ cd linuxcnc-dev/src
$ ./autogen.sh
$ ./configure --with-realtime=uspace
$ make
# make setuid
```

Please Log in to join the conversation.

More
5 years 1 month ago #221187 by BigJohnT
Not sure how you installed 2.9 but you would need a very recent master branch for Python 3.

JT

Please Log in to join the conversation.

More
5 years 1 month ago #221522 by isaac

Please Log in to join the conversation.

More
5 years 1 month ago #221526 by TurBoss
if you built linuxcnc from sources

```
source linuxcnc/scripts/rip-environment
```

Please Log in to join the conversation.

More
5 years 1 week ago #223912 by HarryXS
OK, after a long run I finally got it running on a Raspberry PI 4 4GB 64bit OS with the actual linuxcnc master and qtpyvcp.
I think it was too early as stated, with the recent linuxcnc master it works!

Btw. I managed to get gcodebackplot to run on the Raspberry Pi4 64bit with more than 60fps and V3D!
I'll share it with you as soon I cleaned it up and fix a strange bug after loading the gcode file, I'm not able to jog manually anymore...

I close this thread as solved
Cheers, Harry

Please Log in to join the conversation.

More
5 years 1 week ago #223914 by HarryXS
Hmm, cant close the thread and mark it as solved...
someone a hint?

Please Log in to join the conversation.

Time to create page: 0.182 seconds
Powered by Kunena Forum