You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running from pycharm the report is generated but an error is thrown
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pandas_profiling", line 10, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas_profiling/controller/console.py", line 78, in main
p.to_file(output_file=args.output_file, silent=args.silent)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas_profiling/init.py", line 139, in to_file
webbrowser.open_new_tab(output_file)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/webbrowser.py", line 68, in open_new_tab
return open(url, 2)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/webbrowser.py", line 60, in open
if browser.open(url, new, autoraise):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/webbrowser.py", line 592, in open
script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser
TypeError: replace() takes 2 positional arguments but 3 were given
Describe the bug
When running from pycharm the report is generated but an error is thrown
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pandas_profiling", line 10, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas_profiling/controller/console.py", line 78, in main
p.to_file(output_file=args.output_file, silent=args.silent)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas_profiling/init.py", line 139, in to_file
webbrowser.open_new_tab(output_file)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/webbrowser.py", line 68, in open_new_tab
return open(url, 2)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/webbrowser.py", line 60, in open
if browser.open(url, new, autoraise):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/webbrowser.py", line 592, in open
script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser
TypeError: replace() takes 2 positional arguments but 3 were given
it seems to be caused by this line, changing it by webbrowser.open_new_tab(output_file.as_uri()) fix the issue
https://github.com/pandas-profiling/pandas-profiling/blob/master/pandas_profiling/__init__.py#L139
To Reproduce
1 follow the documentation on how to setup external tool in pycharm
2 run on any csv
The text was updated successfully, but these errors were encountered: