Talk:Generating TSP art from a stippled image

From Evil Mad Scientist Wiki
Revision as of 02:53, 18 February 2023 by Renato (talk | contribs) (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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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'