-
Notifications
You must be signed in to change notification settings - Fork 16
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
Issue on Linux #43
Comments
Hi, glad that you were able to solve it. I developed and used this on Windows FreeCAD 0.20 and haven't had this issue, can you provide info about your FreeCAD version please? I'll try it in virtualbox to see what's different in Linux FreeCAD, I'm not sure maybe I installed PySide2 into it. Generally PySide is quite old even PySide2 is starts to be obsolete, what I saw there is PySide6 now used (numbering was changed PySide6 is for Qt6) depends which version of Qt is FreeCAD now using. If you provide more info about your FreeCAD I can check it. |
I am on the following:
I used the following command to fix all Python scripts: Interestingly, even if I install PySide2, FreeCAD still doesn't let me import it in the Python console. I can only import PySide. |
I have a few other questions. I took the filter design from the other repository here (https://github.com/LubomirJagos/FreeCAD-OpenEMS-Export-Plugin-Documentation/tree/main) and I'm getting weird results. Here's what it looks like:
I just cloned both repositories and ran the program with no changes. Did I use the wrong version? |
about that error, now when I looked on it, I put there for "Grid Settings" > "substrate Z 3 lines" user specified gridlines defined like this: mesh.z = np.concatenate((mesh.z, linspace(zmin, zmax-0.3, 3))) that's for python script file, for octave it must be updated to mesh.z = [mesh.z, linspace(zmin, zmax-0.3, 3)] I updated examples while ago and probably forgot about this, now at my PC I have this setting split to 2 files, LowPassFilter_basic__octave and LowPassFilter_basic__python which I will upload, they just differ in this since user defined gridlines are chunks of code which are directly inserted into generated script. |
I found out the reason, for some reason your program isn't generating the ground plane correctly. Also your code generator does not work for Octave because in your .ini file, you have:
and the script generator takes the userDefined line and puts it in the script, even though it is Octave and not Python. Edit: Never mind, it looks like that is because you did a user designed mesh for substrate Z 3 lines. Also, it seems like the ground plane issue is a FreeCAD issue: FreeCAD/FreeCAD#12278 |
yes, userDefined gridlines are chunks of code takes as are and placed into file, so if you put there python code everytime it will be python, if you put octave everytime it will be octave, it's treated just like text insertion, kind a there is no warning I can't open that .png image, there is error it's broken, looking on that FreeCAD 0.21 issue I think it's ont good to use FreeCAD 0.21, I also reported oen issue with STL export as there was problem, I recommend you should use FreeCAD 0.20, I developed this addon and haven't any problem with it till now, seems like 0.21 is buggy probably 0.22 would be better Just install FreeCAD 0.20 and you will have no issue |
Hi,
I was unable to run the macro on Linux. I ended up having to change all instances of PySide2 to PySide in every file to get it to work, since the one bundled with FreeCAD is called that.
https://wiki.freecad.org/PySide
"This module just imports the necessary classes from PySide2, and places them in the PySide namespace. This means that in most cases the same code can be used with both Qt4 and Qt5, as long as we use the single PySide module."
The text was updated successfully, but these errors were encountered: