ContinuumIO/conda — pull request #438 by asmeurer (2013-12-19 16:35:29+00:00)
Title: New Error introduced: lchmod

just to let you know that it seems in the last couple of commits you introduced a new error.
```
An unexpected error has occurred, please consider sending the
following traceback to the conda GitHub issue tracker at:

https://github.com/ContinuumIO/conda/issues

Include the output of the command 'conda info' in your report.

Traceback (most recent call last):
File "./conda", line 5, in
pkg_resources.run_script('conda==870eca39b5b76b9f0853f266bf5133d3cbbb1e56', 'conda')
File "/home/workerm/anaconda/lib/python3.3/site-packages/setuptools-1.4-py3.3.egg/pkg_resources.py", line 492, in run_script
File "/home/workerm/anaconda/lib/python3.3/site-packages/setuptools-1.4-py3.3.egg/pkg_resources.py", line 1350, in run_script
File "/home/workerm/anaconda/lib/python3.3/site-packages/setuptools-1.4-py3.3.egg/pkg_resources.py", line 57, in execfile
File "/home/workerm/anaconda/lib/python3.3/site-packages/conda-870eca39b5b76b9f0853f266bf5133d3cbbb1e56-py3.3.egg/EGG-INFO/scripts/conda", line 5, in
sys.exit(main())
File "/home/workerm/anaconda/lib/python3.3/site-packages/conda-870eca39b5b76b9f0853f266bf5133d3cbbb1e56-py3.3.egg/conda/cli/main.py", line 186, in main
args.func(args, p)
File "/home/workerm/anaconda/lib/python3.3/site-packages/conda-870eca39b5b76b9f0853f266bf5133d3cbbb1e56-py3.3.egg/conda/cli/main_build.py", line 169, in execute
build.build(m, pypi=args.pypi)
File "/home/workerm/anaconda/lib/python3.3/site-packages/conda-870eca39b5b76b9f0853f266bf5133d3cbbb1e56-py3.3.egg/conda/builder/build.py", line 187, in build
fix_permissions(files3 - files1)
File "/home/workerm/anaconda/lib/python3.3/site-packages/conda-870eca39b5b76b9f0853f266bf5133d3cbbb1e56-py3.3.egg/conda/builder/post.py", line 187, in fix_permissions
os.lchmod(path, stat.S_IMODE(st.st_mode) | stat.S_IWUSR) # chmod u+w
AttributeError: 'module' object has no attribute 'lchmod'
workerm@notebookpc:~/anaconda/bin$
```

Seems to come from this commit: https://github.com/ContinuumIO/conda/commit/870eca39b5b76b9f0853f266bf5133d3cbbb1e56

workerm@notebookpc:~/0__PythonCodingEnviroment__0/bin$ ./python
Python 3.3.3 |Continuum Analytics, Inc.| (default, Nov 25 2013, 17:28:04)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> dir(os)
['CLD_CONTINUED', 'CLD_DUMPED', 'CLD_EXITED', 'CLD_TRAPPED', 'EX_CANTCREAT', 'EX_CONFIG', 'EX_DATAERR', 'EX_IOERR', 'EX_NOHOST', 'EX_NOINPUT', 'EX_NOPERM', 'EX_NOUSER', 'EX_OK', 'EX_OSERR', 'EX_OSFILE', 'EX_PROTOCOL', 'EX_SOFTWARE', 'EX_TEMPFAIL', 'EX_UNAVAILABLE', 'EX_USAGE', 'F_LOCK', 'F_OK', 'F_TEST', 'F_TLOCK', 'F_ULOCK', 'MutableMapping', 'NGROUPS_MAX', 'O_ACCMODE', 'O_APPEND', 'O_ASYNC', 'O_CREAT', 'O_DIRECT', 'O_DIRECTORY', 'O_DSYNC', 'O_EXCL', 'O_LARGEFILE', 'O_NDELAY', 'O_NOATIME', 'O_NOCTTY', 'O_NOFOLLOW', 'O_NONBLOCK', 'O_RDONLY', 'O_RDWR', 'O_RSYNC', 'O_SYNC', 'O_TRUNC', 'O_WRONLY', 'POSIX_FADV_DONTNEED', 'POSIX_FADV_NOREUSE', 'POSIX_FADV_NORMAL', 'POSIX_FADV_RANDOM', 'POSIX_FADV_SEQUENTIAL', 'POSIX_FADV_WILLNEED', 'PRIO_PGRP', 'PRIO_PROCESS', 'PRIO_USER', 'P_ALL', 'P_NOWAIT', 'P_NOWAITO', 'P_PGID', 'P_PID', 'P_WAIT', 'RTLD_DEEPBIND', 'RTLD_GLOBAL', 'RTLD_LAZY', 'RTLD_LOCAL', 'RTLD_NODELETE', 'RTLD_NOLOAD', 'RTLD_NOW', 'R_OK', 'SCHED_BATCH', 'SCHED_FIFO', 'SCHED_OTHER', 'SCHED_RR', 'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'ST_NOSUID', 'ST_RDONLY', 'TMP_MAX', 'WCONTINUED', 'WCOREDUMP', 'WEXITED', 'WEXITSTATUS', 'WIFCONTINUED', 'WIFEXITED', 'WIFSIGNALED', 'WIFSTOPPED', 'WNOHANG', 'WNOWAIT', 'WSTOPPED', 'WSTOPSIG', 'WTERMSIG', 'WUNTRACED', 'W_OK', 'XATTR_CREATE', 'XATTR_REPLACE', 'XATTR_SIZE_MAX', 'X_OK', '_Environ', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__initializing__', '__loader__', '__name__', '__package__', '_copyreg', '_execvpe', '_exists', '_exit', '_fwalk', '_get_exports_list', '_get_masked_mode', '_make_stat_result', '_make_statvfs_result', '_pickle_stat_result', '_pickle_statvfs_result', '_putenv', '_spawnvef', '_unsetenv', '_wrap_close', 'abort', 'access', 'altsep', 'chdir', 'chmod', 'chown', 'chroot', 'close', 'closerange', 'confstr', 'confstr_names', 'ctermid', 'curdir', 'defpath', 'device_encoding', 'devnull', 'dup', 'dup2', 'environ', 'environb', 'errno', 'error', 'execl', 'execle', 'execlp', 'execlpe', 'execv', 'execve', 'execvp', 'execvpe', 'extsep', 'fchdir', 'fchmod', 'fchown', 'fdatasync', 'fdopen', 'fork', 'forkpty', 'fpathconf', 'fsdecode', 'fsencode', 'fstat', 'fstatvfs', 'fsync', 'ftruncate', 'fwalk', 'get_exec_path', 'get_terminal_size', 'getcwd', 'getcwdb', 'getegid', 'getenv', 'getenvb', 'geteuid', 'getgid', 'getgrouplist', 'getgroups', 'getloadavg', 'getlogin', 'getpgid', 'getpgrp', 'getpid', 'getppid', 'getpriority', 'getresgid', 'getresuid', 'getsid', 'getuid', 'getxattr', 'initgroups', 'isatty', 'kill', 'killpg', 'lchown', 'linesep', 'link', 'listdir', 'listxattr', 'lockf', 'lseek', 'lstat', 'major', 'makedev', 'makedirs', 'minor', 'mkdir', 'mkfifo', 'mknod', 'name', 'nice', 'open', 'openpty', 'pardir', 'path', 'pathconf', 'pathconf_names', 'pathsep', 'pipe', 'popen', 'posix_fadvise', 'posix_fallocate', 'pread', 'putenv', 'pwrite', 'read', 'readlink', 'readv', 'remove', 'removedirs', 'removexattr', 'rename', 'renames', 'replace', 'rmdir', 'sched_get_priority_max', 'sched_get_priority_min', 'sched_getparam', 'sched_getscheduler', 'sched_param', 'sched_rr_get_interval', 'sched_setparam', 'sched_setscheduler', 'sched_yield', 'sendfile', 'sep', 'setegid', 'seteuid', 'setgid', 'setgroups', 'setpgid', 'setpgrp', 'setpriority', 'setregid', 'setresgid', 'setresuid', 'setreuid', 'setsid', 'setuid', 'setxattr', 'spawnl', 'spawnle', 'spawnlp', 'spawnlpe', 'spawnv', 'spawnve', 'spawnvp', 'spawnvpe', 'st', 'stat', 'stat_float_times', 'stat_result', 'statvfs', 'statvfs_result', 'strerror', 'supports_bytes_environ', 'supports_dir_fd', 'supports_effective_ids', 'supports_fd', 'supports_follow_symlinks', 'symlink', 'sync', 'sys', 'sysconf', 'sysconf_names', 'system', 'tcgetpgrp', 'tcsetpgrp', 'terminal_size', 'times', 'times_result', 'truncate', 'ttyname', 'umask', 'uname', 'uname_result', 'unlink', 'unsetenv', 'urandom', 'utime', 'wait', 'wait3', 'wait4', 'waitid', 'waitid_result', 'waitpid', 'walk', 'write', 'writev']
>>>
```

```
workerm@notebookpc:~/anaconda/bin$ ./python
Python 3.3.3 |Continuum Analytics, Inc.| (default, Nov 25 2013, 17:28:04)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.chmod

>>> os.lchmod
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'lchmod'
>>>
```

I installed also debian python3 and it is the same: no lchmod

Hope this helps
P