Giter VIP home page Giter VIP logo

Comments (5)

Bachibouzouk avatar Bachibouzouk commented on May 28, 2024

I did the same but I didn't run into an AttributeError.
I could also type the following in a terminal :

Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import plotly.graph_objs as go
>>> go.layout.Shape()
layout.Shape()
>>> 

from dash-bio.

shammamah-zz avatar shammamah-zz commented on May 28, 2024

@Bachibouzouk Did you do a fresh clone of the repository, a new virtual environment, and then run it? If it still works after that, then we should investigate further.

from dash-bio.

cldougl avatar cldougl commented on May 28, 2024

it's probably just related to the plotly version (I think mine might not be updated :) ) but I didn't see that in the requirements.txt file - so maybe adding that with a version that works with the above syntax will allow this to work for all users

(venv3) ➜  dash-repos python                          
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import plotly.graph_objs as go
>>> go.layout.Shape()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'plotly.graph_objs' has no attribute 'layout'
>>> import plotly
>>> plotly.__version__
'2.5.1'
>>> quit()

from dash-bio.

Bachibouzouk avatar Bachibouzouk commented on May 28, 2024

@Bachibouzouk Did you do a fresh clone of the repository, a new virtual environment, and then run it? If it still works after that, then we should investigate further.

@shammamah : I did that

@cldougl My plotly version is 3.5, it installs automatically as a requirement for dash, maybe if you already have plotly installed it doesn't upgrade it to the newer version?

from dash-bio.

cldougl avatar cldougl commented on May 28, 2024

yep exactly @Bachibouzouk - so if you need a specific version of plotly you can add that to the requirements.txt file so it will update if the user doesn't have the correct version

from dash-bio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.