enthought / enthought/enstaller
cannot use enpkg in canopy on Centos5
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Here is the traceback.
18:52:34 1015> export ENSTALLER_DEBUG=1
18:52:45 1016> enpkg enstaller
Traceback (most recent call last):
File "/opt/kitchingroup/CANOPY/Canopy_64bit/User/bin/enpkg", line 10, in
sys.exit(main_noexc())
File "/opt/kitchingroup/CANOPY/Canopy_64bit/User/lib/python2.7/site-packages/enstaller/main.py", line 844, in main_noexc
main(argv)
File "/opt/kitchingroup/CANOPY/Canopy_64bit/User/lib/python2.7/site-packages/enstaller/main.py", line 597, in main
config = Configuration.from_file(config_filename)
File "/opt/kitchingroup/CANOPY/Canopy_64bit/User/lib/python2.7/site-packages/enstaller/config.py", line 344, in from_file
ret = _create(fp)
File "/opt/kitchingroup/CANOPY/Canopy_64bit/User/lib/python2.7/site-packages/enstaller/config.py", line 329, in _create
parsed = parse_assignments(fp)
File "/opt/kitchingroup/CANOPY/Canopy_64bit/User/lib/python2.7/site-packages/egginst/utils.py", line 200, in parse_assignments
return _AssignmentParser().parse(file_or_filename.read())
File "/opt/kitchingroup/CANOPY/Canopy_64bit/User/lib/python2.7/site-packages/egginst/utils.py", line 165, in parse
root = ast.parse(s)
File "/opt/kitchingroup/CANOPY/appdata/canopy-1.5.1.2730.rh5-x86_64/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
TypeError: compile() expected string without null bytes
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce `enpkg enstaller` on CentOS 5 with `ENSTALLER_DEBUG=1`, then inspect `enstaller/main.py`, `enstaller/config.py`, and `egginst/utils.py` at the traceback locations. Done means the command no longer fails with `TypeError: compile() expected string without null bytes` and can proceed normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100