ipdb crashed on parsing a valid pyproject.toml file
See original GitHub issueThe pyproject.toml file must be valid because poetry parses and manages the file just fine. ipdb objects to any closing brace on a new line as the only character on that line.
The following error was raised by simply importing ipdb and calling ipdb.set_trace()
Traceback (most recent call last):
File "./notebooks/csg_random_poi.py", line 32, in <module>
ipdb.set_trace()
File "/opt/conda/envs/gis/lib/python3.7/site-packages/ipdb/__main__.py", line 75, in set_trace
p = _init_pdb(context).set_trace(frame)
File "/opt/conda/envs/gis/lib/python3.7/site-packages/ipdb/__main__.py", line 52, in _init_pdb
context = os.getenv("IPDB_CONTEXT_SIZE", get_context_from_config())
File "/opt/conda/envs/gis/lib/python3.7/site-packages/ipdb/__main__.py", line 82, in get_context_from_config
parser = get_config()
File "/opt/conda/envs/gis/lib/python3.7/site-packages/ipdb/__main__.py", line 174, in get_config
read_func(f)
File "/opt/conda/envs/gis/lib/python3.7/configparser.py", line 717, in read_file
self._read(f, source)
File "/opt/conda/envs/gis/lib/python3.7/configparser.py", line 1110, in _read
raise e
configparser.ParsingError: Source contains parsing errors: '/home/joe/src/gis/pyproject.toml'
[line 17]: ']\n'
[line 24]: ']\n'
[line 175]: ']\n'
[line 181]: ']\n'
[line 186]: ']\n'
[line 193]: ']\n'
[line 216]: ']\n'
[line 227]: ']\n'
[line 236]: ']\n'
If you suspect this is an IPython 7.21.0 bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@python.org
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
pyproject.toml - Poetry configuration
Important: This program performs automated edits to the pyproject.toml files for this project and all its subprojects (such as the BookServer and the ......
Read more >pytest Documentation - Read the Docs
The callable must return a string with a valid scope and will be executed only ... or in your pyproject.toml file like this:...
Read more >How to write a minimally working pyproject.toml file that can ...
my question differ because I ask for a human-written pyproject.toml. First, the pyproject.toml file is always "human-writable".
Read more >How to parse JSON in background thread after Alamofire ...
After getting JSON data from Alamofire request, I want to parse it on ... using a .ipdb file on your home folder, setup.cfg...
Read more >The Real Python Podcast
Package Python Code With pyproject.toml & Listing Files With pathlib ... Preparing Data to Measure True Machine Learning Model Performance
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @dazza-codes. I’ll close this issue, as (IIUC) it’s not actually related to IPython. If the update to 0.13.6 didn’t fix your problem, please file an issue in gotcha/ipdb.
@dazza-codes @bollwyvl I should’ve check before commenting. Indeed, on paper ipdb support for pyptoject.toml was added in 0.13.5 (9 days ago), but actually working only since 0.13.6 (2 days ago).
Anyways - update Ipdb, it should work.