Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8955847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:38:46+00:00 2026-06-15T14:38:46+00:00

I am trying to run through the d3py example code available in the d3py

  • 0

I am trying to run through the d3py example code available in the d3py readme file (see link below), and am receiving the following error:

https://github.com/mikedewar/d3py/blob/master/README.md

(python 2.7.3 on 32-bit Windows)

>>> # instantiate the figure object
>>> fig = d3py.Figure(df, name="basic_example", width=300, height=300) 
        Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "build\bdist.win32\egg\d3py\d3py.py", line 97, in __init__
    IOError: [Errno 2] No such file or directory: 'static/d3.js'
>>>

I installed the d3py package by using the following command in PowerShell:

easy_install https://github.com/mikedewar/d3py/tarball/master

and, importing the package within a python session (i.e. import d3py) does not result in any errors. What can I do to make the example code work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:38:47+00:00Added an answer on June 15, 2026 at 2:38 pm

    So d3py is a really raw project, and to be honest our setup.py sucks quite hard. This means you either need to make a pull request with some fixes to setup.py or you need to make a folder called static in your project folder and make sure that d3.js is inside the folder.

    On the assumption that the second option is the one you’ll use, just to make it clear:

    In a terminal, change to the directory that holds your project, like

    cd ~/Desktop/my/awesome/project
    

    Make a folder called static:

    mkdir static
    

    then move into that directory and get the d3.js file from the repo:

    cd static
    curl -O https://raw.github.com/mikedewar/d3py/static/d3.js
    

    Apologies for this terrible hack! d3 based plotting from inside python is definitely going to happen, but maybe not with this project!

    Having said that, d3py will work as advertised once you get it to run! A really popular use case of d3py, which we hadn’t quite realised would be popular, is that people use it to quickly mock up some javascript, using the output of d3py as a starting point for fancier visualisations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to run FireFox through apache (php script) I recieve the following error No
I'm receiving the following error when trying to run an ASP.NET MVC 3 project:
I'm trying to run through an example given for the C++ Xerces XML library
I am trying to create a VBA code that will run through each distinct
I've been trying to run a file through a shell script and write its
Trying to run through a dictionary string and write the contents to file that
I am trying to run through a array send to a php file and
Trying to run my program through java web start. I get the following exception
I am trying to run through a list of 6 anchors in a page
I'm trying to run through the Hello World tutorial for the iPhone and i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.