EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CSS - Problem importing Jar on Jython
From: Gabriel de Souza Fedel <[email protected]>
To: "[email protected]" <[email protected]>
Date: Mon, 28 Nov 2016 10:24:52 +0000
Hi Pattard,

thank you for the answer.
I tried your solution, but didn't work.

The console error is this:
"ImportError: No module named github"

I'm trying to import a module called com.github.imageio, but the 
cs-studio didn't find it....

I'm tried another jars that didn't work too.  I'm tried to add path inside my code too, but nothing works.

What version of CSS you are using?

Regards

Em 28-11-2016 06:29, Patard Charles-Henri escreveu:
> Hi Gabr iel,
>
> Can you show the console error ? I’ve got this kind of problem with
> Jython imports. Even if you modify PYTHONPATH or CS-Studio PYTHONPATH
> preferences it doesn’t work. To solve it I needed to create a python
> script named ImportDependencies.py :
>
>
>
> “
>
> #Python imports
>
> import sys
>
> from os.path import expanduser
>
>
>
> # Get Home path
>
> HOME_PATH = expanduser("~")
>
> print 'importDependencies HOME_PATH '+str(HOME_PATH)
>
>
>
> # Add librairies
>
> sys.path.append(str(HOME_PATH)+'/path/to/jar/file')”
>
>
>
> In a second time, you have to import ImprtDependencies.py in your
> Jython/Python script like this : “import ImportDependencies”.
>
>
>
> Best regards.
>
>
>
>
>
> ------------------------------------------------------------------------
> /Préservons notre environnement, n’imprimez ce mail que si nécessaire./
> /Preserve our environment, print this email only if necessary./
>

-- 
Gabriel Fedel
Software de Operação das Linhas de Luz
Laboratório Nacional de Luz Síncrotron – (LNLS)
Centro Nacional de Pesquisa em Energia e Materiais (CNPEM)
[email protected] | +55 (19) 3512 1226
www.lnls.cnpem.br


Replies:
Re: CSS - Problem importing Jar on Jython Kasemir, Kay
References:
CSS - Problem importing Jar on Jython Patard Charles-Henri

Navigate by Date:
Prev: CSS - Problem importing Jar on Jython Patard Charles-Henri
Next: Re: CSS - Problem importing Jar on Jython Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: CSS - Problem importing Jar on Jython Patard Charles-Henri
Next: Re: CSS - Problem importing Jar on Jython Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 28 Nov 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·