Re: [cx-oracle-users] Unable to acquire Oracle environment handle
Brought to you by:
atuining
From: Marco De P. <dep...@gm...> - 2011-02-16 16:54:52
|
everything works if I force the rebuild of a file named tests.pyc in a django folder (via rm tests.pyc or via touch tests.pyc) if the file is already there I obtain "Unable to acquire Oracle environment handle" Maybe it's an issue on the django side, but I can't undestand what could be wrong... django is a pure python package and the question is: how can django influence the OCIEnvNlsCreate call in Environment.c that, as far as I know, doesn't get any login but just initialize a client data structure?!? Marco On Wed, Feb 16, 2011 at 9:18 AM, Marco De Paoli <dep...@gm...> wrote: > First of all, thanks very much for your hints > > Sorry, maybe I have not been clear: the problem is not systematic > > same xterm, same user, same shell, same environment... > sometimes it works, sometimes it doesn't > > Then I have rebuilt and installed from 5.0.4 sources but the problem is the > same > > Eventually I've tried tu use cx_Oracle from svn trunk: check-out and build > are ok but I can't execute the install, this is the message > > [root@bagvapp trunk]# python setup.py install > running install > running bdist_egg > running egg_info > writing cx_Oracle.egg-info/PKG-INFO > writing top-level names to cx_Oracle.egg-info/top_level.txt > writing dependency_links to cx_Oracle.egg-info/dependency_links.txt > Traceback (most recent call last): > File "setup.py", line 368, in ? > classifiers = classifiers) > File "/usr/lib/python2.4/distutils/core.py", line 149, in setup > dist.run_commands() > File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands > self.run_command(cmd) > File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command > cmd_obj.run() > File "/usr/lib/python2.4/site-packages/setuptools/command/install.py", > line 76, in run > self.do_egg_install() > File "/usr/lib/python2.4/site-packages/setuptools/command/install.py", > line 92, in do_egg_install > self.run_command('bdist_egg') > File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command > self.distribution.run_command(command) > File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command > cmd_obj.run() > File "/usr/lib/python2.4/site-packages/setuptools/command/bdist_egg.py", > line 167, in run > self.run_command("egg_info") > File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command > self.distribution.run_command(command) > File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command > cmd_obj.run() > File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", > line 171, in run > self.find_sources() > File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", > line 252, in find_sources > mm.run() > File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", > line 306, in run > self.add_defaults() > File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", > line 333, in add_defaults > rcfiles = list(walk_revctrl()) > File "/usr/lib/python2.4/site-packages/setuptools/command/sdist.py", line > 45, in walk_revctrl > for item in ep.load()(dirname): > File "/usr/lib/python2.4/site-packages/setuptools/command/sdist.py", line > 52, in _default_revctrl > for path in finder(dirname,path): > File "/usr/lib/python2.4/site-packages/setuptools/command/sdist.py", line > 98, in entries_finder > log.warn("unrecognized .svn/entries format in %s", dirname) > NameError: global name 'log' is not defined > > Marco > > > On Tue, Feb 15, 2011 at 10:47 PM, Anthony Tuininga < > ant...@gm...> wrote: > >> On Tue, Feb 15, 2011 at 12:02 PM, Mark Harrison <mh...@pi...> wrote: >> > On 2/15/11 9:33 AM, Anthony Tuininga wrote: >> >> Hi, >> >> >> >> This has always been some problem with a missing value for ORACLE_HOME >> >> and/or LD_LIBRARY_PATH. Check your environment variables. Since this >> > idea? >> > >> >>> I wolud be gratefull for any hint >> > >> > Ugh, environment variables, what a pain. >> > Here's how I installed so that no environment variables are required: >> > >> > >> http://stackoverflow.com/questions/764871/installing-oracle-instantclient-on-linux-without-setting-environment-variables >> >> Thanks for that. Using the default values across the board and not >> having to set custom values for environment variables can be highly >> convenient, especially for the web server case where its more work to >> set its environment. :-) >> >> Anthony >> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb >> _______________________________________________ >> cx-oracle-users mailing list >> cx-...@li... >> https://lists.sourceforge.net/lists/listinfo/cx-oracle-users >> > > |