s.jor.ibra
s.jor.ibra

Reputation: 337

ImportError: No module named lines

from lines import lines 

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    import lines
ImportError: No module named lines

This is taken from this example for Pycha. How I can install this Module?

Upvotes: 1

Views: 3010

Answers (2)

poke
poke

Reputation: 388103

The module lines.py is part of the Pycha examples. You can find a copy of that module in that directory.

To follow the example correctly, you should call the examples/barchart.py example while still maintaining the rest of the examples directory. Then it will work.

If you want to create an own script based on the example, you’ll have to replace that module with your own code/data.

Upvotes: 3

Bj&#246;rn Pollex
Bj&#246;rn Pollex

Reputation: 76848

The module should be in a file name lines.py that is somewhere in your module search-path.

Upvotes: 1

Related Questions