Isotropix Forums

Python problem

General Discussion about Isotropix and CG related topics

Python problem

Unread postby AlexanderConcept » Sat Jan 16, 2016 9:22 pm

Hey guys,

I just installed the PLE version of Clarisse 2.0 SP7 on Mac but when I start it I get this error:

Couldn't initialize Python engine. Please check if:
00:00:03 - Python is properly installed.
00:00:03 - PYTHONHOME and PYTHONPATH environment variables are properly set in clarisse.env file.
00:00:03 For more information please refer to the user manual in Configuration and Environment section.
00:00:03

I apologize if this is an incredibly stupid post but I do not know how to solve it.

I did download the latest Python version but problem occurred before/after.

Thanks,
Alex
AlexanderConcept
 
Posts: 1
Joined: Thu Jan 30, 2014 9:10 pm

Re: Python problem

Unread postby support_team » Sat Jan 16, 2016 11:29 pm

Hi Alex,

In your clarisse.env, could you try to set paths:
PYTHONHOME=/System/Library/Frameworks/Python.framework/Versions/2.6
PYTHONPATH=/System/Library/Frameworks/Python.framework/Versions/2.6/lib

Please note that Clarisse iFX 2.0 sp7 needs Python 2.6

Regards
Isotropix
Support Team
User avatar
support_team
 
Posts: 1023
Joined: Thu Jan 31, 2013 11:10 am

Re: Python problem

Unread postby Bronic » Sat Feb 20, 2016 7:38 am

Hi,

I have the same problem. Excuse my ignorance but how do I edit the clarisse.env ?

I know where the file is located but can't seem to edit it.

Thanks,
Bronic
Bronic
 
Posts: 2
Joined: Fri Feb 19, 2016 6:39 am

Re: Python problem

Unread postby arnaud » Mon Feb 22, 2016 9:16 am

Hi Bronic,

Your clarisse.env file is located in ~/Library/Preferences/Isotropix/Clarisse/clarisse.env.
Changing these paths should resolve your python issue!

Cheers !
Arnaud

Isotropix
Chief Process & Innovation Officer
User avatar
arnaud
 
Posts: 190
Joined: Mon Dec 14, 2015 2:48 pm

Re: Python problem

Unread postby emash2011 » Tue Jan 17, 2017 2:51 pm

Hi am using windows and am having this issues kindly assist

00:00:00 Couldn't initialize Python engine. Please check if:
00:00:00 - Python is properly installed.
00:00:00 - PYTHONHOME and PYTHONPATH environment variables are properly set in clarisse.env file.
00:00:00 For more information please refer to the user manual in Configuration and Environment section.
00:00:00
emash2011
 
Posts: 2
Joined: Tue Jan 17, 2017 1:28 pm

Re: Python problem

Unread postby emash2011 » Wed Jan 18, 2017 5:59 am

Helo. i am not a programmer or tech savvy kindly explain to me comprehensively on how to set-up python environment variables for clarrise on windows
emash2011
 
Posts: 2
Joined: Tue Jan 17, 2017 1:28 pm

Re: Python problem

Unread postby bvaldes » Wed Jan 18, 2017 11:29 am

Hi,

Could you check if python is already installed in your system?
To do that, simply open a new terminal then run the following command:
Code: Select all
python

If python is installed, you will see the python version and the release date of python. Now you have to find the python path, write the following code in the terminal running python (one line at a time):

python code

import sys
print "\n".join(sys.path)

The result will be several lines, you have to find a line starting by something like:

python code

c:\Python27

This is the path of python that clarisse have to use. You have now to edit the clarisse.env file, by default the env file is set to:
Code: Select all
%APPDATA%/Isotropix/Clarisse/clarisse.env

Inside of it you should have something like this:
Code: Select all
PYTHONHOME=Your_Python_Path
PYTHONPATH=Your_Python_Path/lib

Set the PYTHONHOME and PYTHONPATH variable like shown up by replacing "Your_Python_Path". for me it is:
Code: Select all
PYTHONHOME=c:\Python27
PYTHONPATH=C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk


If python is not installed then you have to install python separately: https://www.python.org/downloads/
Make sure to check the option to Install it for All Users
Now try to open clarisse, if it still doesn't work do the step I write on the top of the post.

Tell us if there is still an issue.

Regards,
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 384
Joined: Mon Sep 26, 2016 10:44 am

Re: Python problem

Unread postby jeffrey1232 » Tue Jan 31, 2017 11:36 am

I got the same issue, I downloaded the Clarisse iFX 3.0 SP7 64-bit for MAC

What I've done so far is first check if python Is installed and which version: when I type in the Terminal python I get this:
Python 2.7.10 (default, Jul 30 2016, 19:40:32)

When I print I get the paths:
>>> print "\n".join(sys.path)

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC

Then the only place I can find a env file is when I right click on my Clarisse (at application) and click on Show Package Contents, then I can click on Contents >MacOS>and then there is the env file, but my question is is this the file to edit? I've tried it with no results.

Because I can't find a other env file. I read about this path on other forum problem tickets: /Users/YOUR_USER_NAME/Library/Preferences/Isotropix/Clarisse/clarisse.env

But this path does not exist, I can't find a Isotropix map on my computer,

Help would be much appreciated!
jeffrey1232
 
Posts: 10
Joined: Fri Nov 18, 2016 10:40 am

Re: Python problem

Unread postby bvaldes » Wed Feb 01, 2017 9:26 am

Hi,

No the env file of clarisse.app is not the one you have to edit. When you launch Clarisse, the first thing that Clarisse do, is to make the preferences so the Isotropix folder should be in the preference folder of your OS.

Run a terminal and do these steps:
Code: Select all
cd ~/Library/Preferences/Isotropix/Clarisse/3.0/

If there is no error, that mean that the folder exists!
Code: Select all
nano clarisse.env

Now you have access to the file and you can edit it. When you are done press CTRL+X and Y to say that you want to save changes. Restart Clarisse everything should work now.

Cheers,
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 384
Joined: Mon Sep 26, 2016 10:44 am

Re: Python problem

Unread postby jeffrey1232 » Wed Feb 01, 2017 8:11 pm

The terminal says this:

-bash: /Users/jeffreyheuvel/Library/Preferences/Isotropix/Clarisse/3.0/: is a directory

But the funny thing is there is NO folder there! Like I checked a thousand times lol.

I don't understand it.
jeffrey1232
 
Posts: 10
Joined: Fri Nov 18, 2016 10:40 am

Next

Return to General Discussion
cron