Modify ↓
Ticket #1080 (closed defect: fixed)
Errors Checking Bcfg2.egg on Python 3.2
Reported by: | rcuza | Owned by: | rcuza |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.3.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | python3 | Cc: |
Description
Getting the following error while building the Bcfg2 egg under python3.2 and python3.0:
Sorry: TabError: inconsistent use of tabs and spaces in indentation (POSIX.py, line 810) File "build/bdist.linux-x86_64/egg/Bcfg2/Client/Tools/YUMng.py", line 745 except yum.Errors.YumBaseError, e: ^ SyntaxError: invalid syntax File "build/bdist.linux-x86_64/egg/Bcfg2/Server/Lint/Genshi.py", line 25 except genshi.template.TemplateSyntaxError, err: ^ SyntaxError: invalid syntax File "build/bdist.linux-x86_64/egg/Bcfg2/Server/Plugins/Svn2.py", line 75 except Exception, err: ^ SyntaxError: invalid syntax File "build/bdist.linux-x86_64/egg/Bcfg2/Server/Plugins/FileProbes.py", line 140 except OSError, err: ^ SyntaxError: invalid syntax
This is probably a quick fix, but I hit this error while heading out the door.
Attachments
Change History
Changed 11 years ago by rcuza
- Attachment z_check_against_example_repo-29-console.txt added
comment:1 follow-up: ↓ 2 Changed 11 years ago by rcuza
- Summary changed from Possible syntax error in POSIX.py to Errors Checking Bcfg2.egg on Python 3.2
Found a couple tabs in POSIX.py and removed them.
Next step: investigate except syntax errors.
comment:2 in reply to: ↑ 1 Changed 11 years ago by rcuza
Replying to rcuza:
Found a couple tabs in POSIX.py and removed them.
Next step: investigate except syntax errors.
comment:3 Changed 11 years ago by rcuza
Corrected exception syntax errors with commit https://github.com/rcuza/bcfg2/commit/4310284f6df01caf1b686c9bac8955364a895755
comment:5 Changed 11 years ago by rcuza
- Keywords python3 added
- Milestone changed from Bcfg2 1.2.1 Release (Bugfix) to Bcfg2 1.3.0 Release
Moving this to 1.3.0 since Py3K is not fully supported in 1.2.0 and the best way to solve this is by refactoring setup.py (ticket #1079).
comment:6 Changed 11 years ago by solj
- Status changed from accepted to closed
- Resolution set to fixed
Fixed in 43cce86f464eeaed73357524d0e5cec0ce5468a0.
Note: See
TracTickets for help on using
tickets.
Full text output of Jenkins z_check_against_example_repo job 29