Can't install Mod"optical ray tracing"

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Fastpulse
Posts: 5
Joined: Fri Jun 24, 2016 2:45 pm
Location: Paris, France

Can't install Mod"optical ray tracing"

Post by Fastpulse »

Hi,

I Would like to install this mod "optical ray tracing
Based on Python" from Github,
I followed instructions, but when i execute
Build_rcc.sh with cygwin, i have this issue "
Pyside_rcc not found.."

Must i re install pyside? And how do it?
I use last release of freecad(0.16).

Could you help me?
Thank's all
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Can't install Mod"optical ray tracing"

Post by DeepSOIC »

Hi!
First, provide full FreeCAD info, as described here: viewtopic.php?f=3&t=2264
In particular, what kind of OS you are using.

Second, I've no idea what "optical ray tracing Based on Python" from Github is. Can you provide a link? I am interested in that kind of stuff!

EDIT: on Windows, I have PySide-rcc.exe in bin folder of FreeCAD installation. You may need to add path to it to PATH environment variable.
Fastpulse
Posts: 5
Joined: Fri Jun 24, 2016 2:45 pm
Location: Paris, France

Re: Can't install Mod"optical ray tracing"

Post by Fastpulse »

Thank for your response,
https://github.com/mess42/pyrate/blob/master/README.md,
I 've attached the link for optical design with freecad.
For pyside_rcc.exe, i don't find it, i use freecad
On Windows 7 64 bits,

Best regards
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Can't install Mod"optical ray tracing"

Post by DeepSOIC »

Fastpulse wrote:For pyside_rcc.exe, i don't find it, i use freecadOn Windows 7 64 bits,
Hm, indeed. It's not included. It is included with Libpack - a package of precompiled libraries needed for building FreeCAD. Download one here:
https://github.com/FreeCAD/FreeCAD/releases
("FreeCADLibs_11.3_x64_VC12.7z ", for example. If you want to build FreeCAD, the libpack must match your compiler, but if you only need PySide-rcc, then any will do).

Well, you can install PySide, of course :P
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Can't install Mod"optical ray tracing"

Post by sgrogan »

Code: Select all

During initialization the error No module named scipy.optimize occurred in C:\Users\sim\Desktop\BodyBase4.orig\Mod\pyrate-master\InitGui.py
The workbench depends on Scipy so it's not going to work on 64 bit Windows.
You could try the 0.16.6704 x86 version. You would need to add a 32 bit Scipy to FreeCAD/bin/Lib/site-packages directory. You may also have to replace numpy and matplot lib with a version from the same place you find Scipy so they all play nice together.
"fight the good fight"
Fastpulse
Posts: 5
Joined: Fri Jun 24, 2016 2:45 pm
Location: Paris, France

Re: Can't install Mod"optical ray tracing"

Post by Fastpulse »

Hello,

I have install Pyside, but i have same problem, when i launch build_rc with Cygwin64, this message appear 'pyside-rcc : command not found'
Do you have a solution?
someone tried this mod?

best regards

OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6704 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: 0c449d7e8f9b2b1fb93e3f8d1865e2f59d7ed253
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
joha2
Posts: 303
Joined: Tue Oct 11, 2016 9:48 pm

Re: Can't install Mod"optical ray tracing"

Post by joha2 »

Hi,

I am really sorry, I did not realize that anybody is using our workbench :-). The pyside-rcc step is not necessary since we updated
the resource files before pushing to github. (I will fix this in the readme file.) So in fact the only remaining problem is that scipy is (still) not available for win64. But scipy is really necessary for the workbench due to its optimization toolbox.

Since all authors of the pyrate toolbox use Linux we just don't have these win64 related problems. Although it would be nice
if there would be a solution for the scipy problem to have pyrate (and its workbench) available under win64.

Notice that the core code of the optical raytracing and the workbench (which lies on top of the core code) are still subject of heavy development.
Therefore the code is still not in a ready-to-use state.

Best wishes
Johannes
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: Can't install Mod"optical ray tracing"

Post by HoWil »

Quick question... does this already work properly?
Can anyone place here or on github a screenshot or output.

EDIT: OK found some .... really hidden in the wiki... a eyecatcher at the first page would be nice:
https://github.com/mess42/pyrate/wiki/Field-sampling

Maybe this could be combined with the work done over here https://forum.freecadweb.org/viewtopic. ... 9&start=10

BR,
HoWil
joha2
Posts: 303
Joined: Tue Oct 11, 2016 9:48 pm

Re: Can't install Mod"optical ray tracing"

Post by joha2 »

Hi HoWil

thanks for submitting the issue! :-) The FreeCAD workbench is only in some demo mode, yet. You can play around a bit, but cannot
do some serious stuff. Unfortunately mess42 and I did some major rearrangements in the core code of this package this weekend and therefore we have to further fix our core code first. I think the FreeCAD workbench is broken at the moment. I will try to fix it as fast as I can, but there are also some conceptional issues. To your second question: The goal is a scientific ray tracer which is different from photo realistic rendering of images. We try to couple CAD together with classical optical design tools to be able to design for example an objective for some camera from scratch.

Anyway, I will try to add the workbench to the addon manager. :mrgreen:

Best wishes
Johannes
Last edited by joha2 on Mon Apr 03, 2017 12:39 pm, edited 1 time in total.
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Can't install Mod"optical ray tracing"

Post by easyw-fc »

joha2 wrote:We try to couple CAD together with classical optical design tools to be able to design for example an objective for some camera from scratch.
https://forum.freecadweb.org/viewtopic. ... 70#p165770
Hi,
may be @DeepSOIC can be interested too :D
EDIT
oops I see that @HoWil was faster ;)
Post Reply