Last modified: 2014-11-09 19:59:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67675, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65675 - Invalid token for os.makedirs in generate_user_files.py
Invalid token for os.makedirs in generate_user_files.py
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: High major
: ---
Assigned To: John Mark Vandenberg
: testme
Depends on:
Blocks: pwbpy3
  Show dependency treegraph
 
Reported: 2014-05-23 12:28 UTC by xqt
Modified: 2014-11-09 19:59 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description xqt 2014-05-23 12:28:14 UTC
This bug is reported by ytrezq in IRC
-------------------------------------
I can't run setup.py  successfully.
It there's several built-in os functions for installing it :



reading manifest file 'Pywikipediabot.egg-info\SOURCES.txt'
writing manifest file 'Pywikipediabot.egg-info\SOURCES.txt'
Copying Pywikipediabot.egg-info to C:\Program Files\Python34\Lib\site-packages\Pywikipediabot-2.0b1-py3.4.egg-info
running install_scripts
  File "generate_user_files.py", line 58
    os.makedirs(base_dir, mode=0700)
                                  ^
SyntaxError: invalid token



os.makedirs(base_dir, mode=0700) is for Unix systems, and I'm using windows so it don't work. 

The error occures while running setup.py with python 3.4 in windows environment
Comment 1 Fabian 2014-09-17 22:29:18 UTC
While I don't know how 'mode' behaves on Windows machines, the error is a different one (which has been fixed): In Python 3 the octal mode requires to begin with '0o' while Python 2 also accepted just '0'. The current version is already using '0o' so at least this specific error shouldn't happen.

See alse: https://docs.python.org/3.0/whatsnew/3.0.html#integers

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links