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

  • SEARCH
  • Home
  • 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 3949936
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:33:09+00:00 2026-05-20T01:33:09+00:00

I did the Nodebox tutorial on the graph library: http://nodebox.net/code/index.php/Graph#loading_the_library I installed the library

  • 0

I did the Nodebox tutorial on the graph library:

http://nodebox.net/code/index.php/Graph#loading_the_library

I installed the library in Application Support
I pasted the following code:

graph = ximport("graph")
create(iterations=1000, distance=1.0, layout="spring", depth=True)

And I got this error message:

Traceback (most recent call last):
  File "nodebox/gui/mac/__init__.pyo", line 358, in _execScript
  File "mypath", line 2, in <module>
NameError: name 'create' is not defined

And before that I got this:

NameError: name 'ximport' is not defined

If I close the file and reopen and just say graph = ximport(“graph”)

Nothing happens (it seems to work).

I think it would be a very cool library to work with.

Any help would be great.

  • 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-05-20T01:33:10+00:00Added an answer on May 20, 2026 at 1:33 am

    The problem is with your Path, as the tutorial link that you pointed to said:

    Put the graph library folder in the same folder as your script so NodeBox can find the library. You can also put it in ~/Library/Application Support/NodeBox/.

    Otherwise install content from the graph.zip

    and do

    import graph
    graph.create
    

    Sorry, I don’t have MAC to try these. But the error messages are saying that Python is not able to find your modules properly. For python to find it, they should be in the current directory or in the PYTHONPATH.

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

Sidebar

Related Questions

Did you ever had a bug in your code, you could not resolve? I
Did Microsoft abandon support for Windows Presentation Foundation (WPF) on Visual Studio 2005? There
I did a lot of PHP programming in the last years and one thing
Did you ever have to choose between WISA or LAMP at the beginning of
Did anyone of you ever find a way of getting the Microsoft Report Viewer
Did you ever use Oracle auditing features on a production db? How did that
Did the recent purchase of MySQL by Sun and the subsequent buggy releases kill
Did you know that : Map<Object,Object> m1 = new HashMap<Object, Object>(); Map<Object,Object> m2 =
Did anyone try that feature and has some feedback? Or Does anyone know some
Did anyone try to read programmatically an Alibre Design CAD file? I see that

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.