Difference between revisions of "Talk:Generating TSP art from a stippled image"

From Evil Mad Scientist Wiki
Jump to: navigation, search
(Created page with "I'm a beginner with Python, I'm used to using C++. I tried to use your software to generate TSP-Art, after correcting (hopefully) syntax errors due to Python3, on the "tspart....")
(No difference)

Revision as of 03:53, 18 February 2023

I'm a beginner with Python, I'm used to using C++. I tried to use your software to generate TSP-Art, after correcting (hopefully) syntax errors due to Python3, on the "tspart.py", "tspbitcity.py" and "tspsolution.py" files, I keep getting errors of various types on the generation of the files. For example: $ python3 tspart2.py a.PBM Loading bitmap file a.PBM ... Traceback (most recent call last):

  File "tspart.py", line 241, in <module>
    if not cities.load( infile ):
  File "/home/renato/Graphic-Work/Drawing-single-line/A/work/tspbitcity.py", line 280, in load
    f = open( self.infile, 'rb' )

FileNotFoundError: [Errno 2] No such file or directory: 'a.PBM'