try now
Search Criteria
Package Details: python-cx_oracle 5.1.3-2
Package Actions
| Package Base: | python-cx_oracle |
|---|---|
| Description: | Python extension module that allows access to Oracle databases |
| Upstream URL: | http://cx-oracle.sourceforge.net/ |
| Category: | lib |
| Licenses: | |
| Submitter: | kornerr |
| Maintainer: | soul_rebel |
| Last Packager: | soul_rebel |
| Votes: | 3 |
| First Submitted: | 2012-07-16 10:55 |
| Last Updated: | 2015-02-07 08:34 |
Dependencies (2)
Required by (0)
Sources
Latest Comments
Comment by soul_rebel
Comment by freaks
hello
i have this error when i try to compile
[code]
==> ERROR: Missing package() function in /data/build/python2-cx_oracle/btmp/PKGBUILD[/code]
and the package function is missing ...
can you update the package ?
thanks
Comment by soul_rebel
I updated the PKGBUILD so that it compiles the latest version, that works for me with sdk version 12.x.
This is my first aur upload. If anyone cares to do better I will gladly yield mantainership, otherwise I'll try this role for a while.
Comment by kornerr
I decided to disown the package, because I no longer use cx_Oracle at work.
As for 12 support, it won't hurt to patch cx_Oracle to support the latest version.
Comment by psi.neamf
Lol, never got a notification and clearly didn't think about checking for replies after I fixed my problem, until now.
For other users who are trying to build this: cx_oracle does not build against version 12 of oracle-instantclient. The aur packages for oracle-instantclient-basic and oracle-instantclient-sdk (both are required for this package to build as the sdk depends on basic) can be modified to point to version 11.2.0.4.0. Then this package will build.
Ideally cx_oracle neeeds to be updated upstream.
Comment by kornerr
So, it's not the package's fault, right?
Comment by psi.neamf
Ah, the oracle packages are vesion 12g.
cx_Oracle appears to be looking for 11g as highest vesion number.
Comment by psi.neamf
Hi,
I can't seem to build this :-|
==> Starting build()...
Traceback (most recent call last):
File "setup.py", line 126, in <module>
raise DistutilsSetupError(messageFormat % userOracleHome)
distutils.errors.DistutilsSetupError: Oracle home (/usr) does not refer to an 9i, 10g or 11g installation.
I have oracle-instantclient-basic and oracle-instantclient-sdk installed.
Any ideas? Thx.
Comment by kornerr
The cx_oracle comments and voices has been moved to here. Thanks to Daniel.
Comment by kornerr
whitelynx, I've done as you suggested and used the updated PKGBUILD you provided. Thanks for separation suggestion and PKGBUILD.
New packages:
python2-cx_oracle https://aur.archlinux.org/packages.php?ID=60871
python-cx_oracle https://aur.archlinux.org/packages.php?ID=60873
Unfortunately, I'm not sure how to delete this package. I'm not sure I have permissions to, since I'm only a supporter here. May be encelo can drop this package?
Comment by kornerr
The package obsoletes cx_oracle one. The package has been created, because of Arch changes with Python 2/3. Thanks to whitelynx for suggestion.
Comment by whitelynx
There is a new version available: 5.1.2
The name of the 'instantclient-sdk' dependency has also changed (it is now 'oracle-instantclient-sdk'), and it is now installed in /usr, so it doesn't require the ORACLE_HOME environment variable any more.
Updated PKGBUILD: http://pastebin.com/WXC6ieQF
Also, I'd like to suggest changing the package name to python2-cx_oracle and making a python-cx_oracle for python 3, in keeping with the Arch guidelines for Python packages.
Comment by kornerr
I've made it for Python2, because I needed it for web.py which, for now, requires Python2.
If you want it for Python3, just change 'python2' in depends and in install to 'python'.
Comment by encelo
I'm not dealing with Oracle anymore, would you like to adopt this package rickeyski?
Comment by rickeyski
the current version of this is 5.1. It also doesn't need the oracle-xe dependency. It can be built with sqlplus and the instantclient-sdk and sqlplus if you don't want to install the entire database onto your computer as shown here http://pastebin.com/pU2wVu7z