hkmoffat / cantera

Automatically exported from code.google.com/p/cantera
0 stars 0 forks source link

scons install problem #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use attached cantera.conf
2. scons install

What is the expected output? What do you see instead?
I expect scons to build and install cantera. Instead, I get the following error 
message: 
scons: *** [build/platform/setup_cantera] KeyError : 'python_module_loc'
Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Action.py", line 1062, in execute
    result = self.execfunction(target=target, source=rsources, env=env)
  File "/local/Projects/Canthor/source/CanteraGoogleCode2/cantera-read-only/platform/posix/SConscript", line 19, in copy_var
    env['python_module_loc_sc'] = env['python_module_loc']
  File "/usr/lib/scons/SCons/Environment.py", line 2287, in __getitem__
    return self.__dict__['__subject'].__getitem__(key)
  File "/usr/lib/scons/SCons/Environment.py", line 412, in __getitem__
    return self._dict[key]
KeyError: 'python_module_loc'
scons: building terminated because of errors.

What version of the product are you using? On what operating system?
svn r2516 on Linux x86_64, scons 2.2.0, python 2.7.3, python 3.3.0, 

Please provide any additional information below.
Everything installs fine when using the  branches/2.1/SConstruct file from 
revision r2494 

Original issue reported on code.google.com by chdoi...@gmail.com on 12 Aug 2013 at 8:49

Attachments:

GoogleCodeExporter commented 9 years ago
I can't duplicate this behavior, but I can see that there is a dependency 
that's not expressed in the build scripts. Can you try the following patch to 
see if it fixes this problem?

Original comment by yarmond on 13 Aug 2013 at 2:43

Attachments:

GoogleCodeExporter commented 9 years ago
The patch did fix the issue, but I'm still have problem compiling revision 2516.

When I run 'scons install' on a fresh (but patched) directory containing r2516, 
I now get the following error:
copying cantera/__init__.py -> ../../build/python2/cantera
running build_ext
running build_scripts
error: file '/local/cantera-read-only/interfaces/cython/scripts/ctml_writer' 
does not exist
scons: *** [build/python2/cantera/__init__.py] Error 1
running build
running build_py
copying cantera/__init__.py -> ../../build/python3/cantera
running build_ext
running build_scripts
error: file '/local/cantera-read-only/interfaces/cython/scripts/ctml_writer' 
does not exist
scons: *** [build/python3/cantera/__init__.py] Error 1
scons: building terminated because of errors.

Interestingly, when I run 'scons build' followed by 'scons install', everything 
installs without problem.

Original comment by chdoi...@gmail.com on 13 Aug 2013 at 3:52

GoogleCodeExporter commented 9 years ago
Can you try this updated patch to see if it fixes this second issue?

Original comment by yarmond on 13 Aug 2013 at 4:58

Attachments:

GoogleCodeExporter commented 9 years ago
With the second patch everything compiles/installs perfectly. Thanks!

Original comment by chdoi...@gmail.com on 14 Aug 2013 at 6:28

GoogleCodeExporter commented 9 years ago
Fixed in r2517.

Original comment by yarmond on 14 Aug 2013 at 5:59