xhluca / dash-draggable

react-draggable in Python
Other
19 stars 5 forks source link

Error Loading Dependencies #5

Closed SterlingButters closed 5 years ago

SterlingButters commented 5 years ago

@xhlulu So I just deleted my fork from which I made the last PR and then I cloned from here and I get Error Loading Dependencies in the browser!

js console gives me: TypeError: undefined is not an object (evaluating 'n.subscribe')

I have a feeling its something wrong in the environment.

Once cloned:

npm install

python -m venv venv

Isn't that all? I'm worried now that the PR may have done something but going through the diff, everything looks right like it did when it was working - can you confirm?

UPDATE: It appears, interestingly enough, that its failing due to dash-daq... Which is so odd because it had just worked moments ago. Perhaps a bug in dash-daq? Tarballing dist and using outside environment results in no conflict - I wonder whats up

xhluca commented 5 years ago

Definitely pretty odd. Maybe try to isolate the error without dash-draggable, and if it's only caused by dash-daq it might be a good idea to open an issue in the dash-daq repo!

SterlingButters commented 5 years ago

I opened an issue there. Are you experiencing the same issue? Wondering if I can isolate to just my system.

xhluca commented 5 years ago

I haven't had the time to try it out! I'd recommend you to try to create a new venv for that to see if it works

SterlingButters commented 5 years ago

Yeah tried that already. However! if I change my python interpreter to my regular Anaconda in my IDE it works! But obviously need the venv for dev... Truly odd...

xhluca commented 5 years ago

That's really weird... In this case try to run virtualenv venv instead, let's see if this one works better.

xhluca commented 5 years ago

Make sure to correctly activate your virtual environment!

SterlingButters commented 5 years ago

same result with virtualenv venv - environment was activated for both venv and virtualenv

xhluca commented 5 years ago

Hmm pretty weird... I'll try to reproduce this when I get some time! Lmk in the meantime if you have any update :)

SterlingButters commented 5 years ago

Decided to try and work up my dcc.Store example but dcc.Store isn't working either... It doesn't throw the Failed to Load Dependency Error but on a refresh, it definitely "erases" the data in the dcc.Store for both storage_type='session' and storage_type='local' - definitely not the anticipated behavior, wondering if its related

SterlingButters commented 5 years ago

Thank God:

https://github.com/plotly/dash-daq/issues/32:

@SterlingButters Thanks for submitting this -- we're getting issues with the NPM package. I would recommend downgrading to 0.1.1 (#25 (comment)). Sorry for the inconvenience.

Going to leave this issue open still as I haven't checked with a downgrade of daq

SterlingButters commented 5 years ago

It was an issue with dash-daq - phew...