(Solved) QtPyVcp in Python3.9 venv issues
17 Sep 2021 10:02 - 17 Sep 2021 10:09 #220873
by HarryXS
(Solved) QtPyVcp in Python3.9 venv issues was created 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:
importing linuxcnc works well.
This is strange...
Linuxcnc is Version 2.9.0~pre0
Thank you in advance.
I'm trying to install QtPyVcp on a Python 3.9.5 enviroment with all dependecies.
Now I'm stucked with:
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.
Last edit: 17 Sep 2021 10:09 by HarryXS. Reason: added linuxcnc version
Please Log in or Create an account to join the conversation.
17 Sep 2021 10:15 #220874
by HarryXS
Replied by HarryXS on topic (Solved) QtPyVcp in Python3.9 venv issues
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 move it or delete it...
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
17 Sep 2021 14:18 #220898
by tommylight
Replied by tommylight on topic (Solved) QtPyVcp in Python3.9 venv issues
Leaving it a bit longer so please do report back.
Please Log in or Create an account to join the conversation.
20 Sep 2021 09:36 - 20 Sep 2021 09:40 #221182
by HarryXS
Replied by HarryXS on topic (Solved) QtPyVcp in Python3.9 venv issues
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.
- 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.
Last edit: 20 Sep 2021 09:40 by HarryXS.
Please Log in or Create an account to join the conversation.
20 Sep 2021 10:04 #221184
by TurBoss
Replied by TurBoss on topic (Solved) QtPyVcp in Python3.9 venv issues
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
```
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 or Create an account to join the conversation.
20 Sep 2021 11:58 #221187
by BigJohnT
Replied by BigJohnT on topic (Solved) QtPyVcp in Python3.9 venv issues
Not sure how you installed 2.9 but you would need a very recent master branch for Python 3.
JT
JT
Please Log in or Create an account to join the conversation.
24 Sep 2021 23:43 - 25 Sep 2021 01:37 #221522
by isaac
Replied by isaac on topic (Solved) QtPyVcp in Python3.9 venv issues
Last edit: 25 Sep 2021 01:37 by isaac.
Please Log in or Create an account to join the conversation.
25 Sep 2021 01:25 #221526
by TurBoss
Replied by TurBoss on topic (Solved) QtPyVcp in Python3.9 venv issues
if you built linuxcnc from sources
```
source linuxcnc/scripts/rip-environment
```
```
source linuxcnc/scripts/rip-environment
```
Please Log in or Create an account to join the conversation.
22 Oct 2021 12:39 #223912
by HarryXS
Replied by HarryXS on topic (Solved) QtPyVcp in Python3.9 venv issues
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
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 or Create an account to join the conversation.
22 Oct 2021 12:42 #223914
by HarryXS
Replied by HarryXS on topic (Solved) QtPyVcp in Python3.9 venv issues
Hmm, cant close the thread and mark it as solved...
someone a hint?
someone a hint?
Please Log in or Create an account to join the conversation.
Time to create page: 0.125 seconds