Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3788 by der.se...@gmail.com: "AttributeError: 'module' object has no attribute 'chown'" when installing reviewboard on Windows
https://code.google.com/p/reviewboard/issues/detail?id=3788

What version are you running?
2.0.13

What's the URL of the page containing the problem?
reviewboard/cmdline

What steps will reproduce the problem?
What steps will reproduce the problem?
1. easy_install reviewboard
2. rb-site install D:\reviewboard\www
3. fill all formes

What is the expected output? What do you see instead?
Install reviewboard to D:\reviewboard\www

What operating system are you using? What browser?
Windows 7 english

Please provide any additional information below.
* Installing the site...
Building site directories ... Traceback (most recent call last):
  File "C:\Python27\Scripts\rb-site-script.py", line 9, in <module>
    load_entry_point('ReviewBoard==2.0.13', 'console_scripts', 'rb-site')()
File "C:\Python27\lib\site-packages\reviewboard-2.0.13-py2.7.egg\reviewboard\cmdline\rbsite.py", line 1883, in main
    command.run()
File "C:\Python27\lib\site-packages\reviewboard-2.0.13-py2.7.egg\reviewboard\cmdline\rbsite.py", line 1241, in run
    self.show_install_status()
File "C:\Python27\lib\site-packages\reviewboard-2.0.13-py2.7.egg\reviewboard\cmdline\rbsite.py", line 1550, in show_install_status
    site.rebuild_site_directory)
File "C:\Python27\lib\site-packages\reviewboard-2.0.13-py2.7.egg\reviewboard\cmdline\rbsite.py", line 1084, in step
    func()
File "C:\Python27\lib\site-packages\reviewboard-2.0.13-py2.7.egg\reviewboard\cmdline\rbsite.py", line 210, in rebuild_site_directory
    os.chown(writable_dir, writable_st.st_uid, writable_st.st_gid)
AttributeError: 'module' object has no attribute 'chown'

To fix:
Replace line 210
os.chown(writable_dir, writable_st.st_uid, writable_st.st_gid)

With:
if hasattr(os, 'chown'):
  os.chown(writable_dir, writable_st.st_uid, writable_st.st_gid)

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to