Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank screen encountered after using Kedro Viz. #1500

Closed
Kale-S opened this issue Aug 22, 2023 · 16 comments
Closed

Blank screen encountered after using Kedro Viz. #1500

Kale-S opened this issue Aug 22, 2023 · 16 comments

Comments

@Kale-S
Copy link

Kale-S commented Aug 22, 2023

Description

Initially, I attempted to execute the spaceflights example provided in the documentation. However, whenever I tried launching the Kedro Viz interface, it opened the local host at 127.0.0.1:4141, but all I could see was a blank page.

Moreover, I encountered a similar issue with my own Kedro project. Interestingly, when I ran the project on a different machine, it functioned correctly

Steps to Reproduce

Its hard to reproduce because its only happend on my working machine.

Actual Result

When I execute the %run_viz command within the Jupyter Lab using the Kedro kernel, I encounter a white page displaying the message "127.0.0.1 has refused the connection."

Your Environment

I used the src/requirement.txt as Environment

  • Kedro version used v0.18.12:
  • Kedro viz version used 6.4.0:
  • Python version used 3.10.12:
  • Operating system and version Windows 11:
@noklam
Copy link
Contributor

noklam commented Aug 22, 2023

I will transfer this issue to kedro-org/kedro-viz

@noklam noklam transferred this issue from kedro-org/kedro Aug 22, 2023
@tynandebold
Copy link
Member

tynandebold commented Aug 22, 2023

Hey @Kale-S, thanks for the issue.

Could you please provide more context in order for us to help you better? It would be great to see if there are any errors in the browser console and also to know what browser and browser version.

And you're seeing this happen on a Windows machine, is that right? When it functioned property on your other machine, was that also a Windows operating system?

@johnkmaxi
Copy link

johnkmaxi commented Sep 1, 2023

I am having the same issue. When I run kedro viz the browser window just shows a blank webpage. The pipelines themselves run successfully using kedro run
kedro 0.18.11
kedro-viz 6.3.3

image

terminal output:
image

@tynandebold
Copy link
Member

@johnkmaxi could you please provide a minimum viable repo so we can try to reproduce this on our end? That will help us debug faster.

@tynandebold
Copy link
Member

@Kale-S we merged a PR (#1576) and released a version that might solve this. Could you please try out Kedro-Viz 6.6.1 and see if this solves your issue?

@Fatafim
Copy link

Fatafim commented Oct 24, 2023

For me on versions: kedro-0.18.14 kedro-viz-6.6.1, nothing's changed, still blank page. Not sure if it's useful but the browser returns js erorrs.

image

EDIT: Interstingly, I was able to run it with WSL. It still doesn't work on Windows 10 though.

@MehdiNV
Copy link
Contributor

MehdiNV commented Oct 25, 2023

Hi @Kale-S, @johnkmaxi - could you please execute node -v in your terminal and pass its output here?

I'm curious on the WinHttpSyncHttpClient Failed setting secure crypto protocols with error code 87 shown in the outputs earlier, wondering whether the node version could be related as it can sometimes mess up SSL connections on non-Windows operating systems.

@astrojuanlu
Copy link
Member

A user with this problem https://stackoverflow.com/q/77370743/554319

@Fatafim
Copy link

Fatafim commented Oct 27, 2023

@astrojuanlu

A user with this problem https://stackoverflow.com/q/77370743/554319

That's the same user :)

For me on versions: kedro-0.18.14 kedro-viz-6.6.1, nothing's changed, still blank page. Not sure if it's useful but the browser returns js erorrs.

image

EDIT: Interstingly, I was able to run it with WSL. It still doesn't work on Windows 10 though.

@MehdiNV
Copy link
Contributor

MehdiNV commented Oct 30, 2023

Hi @Fatafim similarly could you run node -v and post the results? Curious to see npm + node versions

@Fatafim
Copy link

Fatafim commented Nov 4, 2023

@MehdiNV Sure, here it is:
image

@MehdiNV
Copy link
Contributor

MehdiNV commented Nov 7, 2023

@MehdiNV Sure, here it is: image

Cheers! If you use a lower node version (~16 and below, e.g. 16.20.2), does anything change?

@Fatafim
Copy link

Fatafim commented Nov 9, 2023

@MehdiNV Sure, here it is: image

Cheers! If you use a lower node version (~16 and below, e.g. 16.20.2), does anything change?

@MehdiNV Having downgraded node to
image
nothing appears to have changed, still at:
image

@MehdiNV
Copy link
Contributor

MehdiNV commented Nov 14, 2023

@Fatafim Cheers for sharing - that's strange to see. If possible, would you be able to share a minimum viable repo? I'm struggling to reproduce this bug, and a repo close to yours would be massively useful hopefully for this

Edit: On similar note, can you please also pass your terminal output when you run into this bug?

@Fatafim
Copy link

Fatafim commented Dec 19, 2023

Hello,

I think I've solved the problem! Assuming that you have not made any big changes in kedro viz, it was a dependency conflict. Which one exactly? I do not know, but I realized it might have been the problem when I saw another conflict between kedro and icecream - which did NOT occur on another pc that had the same specification but it was installed solely for the project I had been using. So, if you're having the same issue, reinstall you python entirely, including manual delete of all libraries.

If any of you also has a problem with GridSearchCV with n_jobs>1 - the solution stays the same.

@MehdiNV - so no wonder you couldn't reproduce it. I couldn't reproduce it on a virtual environment I was going to share with you either :)

@rashidakanchwala
Copy link
Contributor

@Kale-S - were you able to solve this issue at your end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants