When I try to install Optik 1.4.1, I get the below error. I
am able to install Optik 1.4 just fine.
c:\trash\temp\Optik-1.4.1>python setup.py install
running install
running build
running build_py
Traceback (most recent call last):
File "setup.py", line 24, in ?
packages = ["optik", ""],
File "C:\Python22\lib\distutils\core.py", line 138, in
setup
dist.run_commands()
File "C:\Python22\lib\distutils\dist.py", line 893, in
run_commands
self.run_command(cmd)
File "C:\Python22\lib\distutils\dist.py", line 913, in
run_command
cmd_obj.run()
File "C:\Python22\lib\distutils\command\install.py", line
491, in run
self.run_command('build')
File "C:\Python22\lib\distutils\cmd.py", line 330, in
run_command
self.distribution.run_command(command)
File "C:\Python22\lib\distutils\dist.py", line 913, in
run_command
cmd_obj.run()
File "C:\Python22\lib\distutils\command\build.py", line
107, in run
self.run_command(cmd_name)
File "C:\Python22\lib\distutils\cmd.py", line 330, in
run_command
self.distribution.run_command(command)
File "C:\Python22\lib\distutils\dist.py", line 912, in
run_command
cmd_obj.ensure_finalized()
File "C:\Python22\lib\distutils\cmd.py", line 112, in
ensure_finalized
self.finalize_options()
File "C:\Python22\lib\distutils\command\build_py.py",
line 57, in finalize_opt
ions
self.package_dir[name] = convert_path(path)
File "C:\Python22\lib\distutils\util.py", line 87, in
convert_path
if pathname[0] == '/':
IndexError: string index out of range
Logged In: YES
user_id=14422
What OS are you running, and which version of that OS?
Which version of Python are you running? Is it a standard
build or did you build your own Python?
(This looks like a distutils bug, but it rings a distant
bell. You might ask for help on distutils-sig@python.org as
well.)
Logged In: YES
user_id=14422
Ahh yes, now I remember -- this was previously reported as
bug #740398. This is a distutils bug that is easily worked
around in setup.py. It's fixed in Optik 1.5a1 -- can you
please try that version and see how it works for you? (You
can find it from http://optik.sourceforge.net/\)
If you really must use 1.4.1, apply this patch to setup.py:
--- setup.py 8 May 2003 01:21:28 -0000 1.16
+++ setup.py 19 Jun 2003 01:40:33 -0000 1.17
@@ -1,6 +1,6 @@
#!/usr/local/bin/python
-import sys
+import sys, os
from distutils.core import setup
if sys.hexversion >= 0x02030000:
@@ -20,6 +20,6 @@
options to your scripts with very little overhead.""",
license = "BSD",
- package_dir = { "optik" : "lib", "": "" },
+ package_dir = { "optik" : "lib", "": os.curdir },
packages = ["optik", ""],
)
(or just fetch rev 1.17 from CVS)