marceloprates / prettymaps

A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
GNU Affero General Public License v3.0
11.04k stars 516 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\cuyug\assets\Permanent_Marker\PermanentMarker-Regular.ttf` #44

Closed matthewcuyugan closed 2 years ago

matthewcuyugan commented 2 years ago

Can someone help me how to fix these errors? Thanks in advance.

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\cuyug\assets\Permanent_Marker\PermanentMarker-Regular.ttf`

DeprecationWarning: An exception was ignored while fetching the attribute__array_interface__from an object of type 'Polygon'. With the exception ofAttributeErrorNumPy will always raise this exception in the future. Raise this deprecation warning to see the original exception. (Warning added NumPy 1.21)

hanksims commented 2 years ago

That's a font file. You need to have it, and it needs to exist at the path you've specified.

You can use any TrueType font, so long as your program can find it on your system.

The "PermanentMarker-Regular.ttf" file, which is used in several of the examples, can be downloaded from here:

https://fonts.google.com/specimen/Permanent+Marker

matthewcuyugan commented 2 years ago

That's a font file. You need to have it, and it needs to exist at the path you've specified.

You can use any TrueType font, so long as your program can find it on your system.

The "PermanentMarker-Regular.ttf" file, which is used in several of the examples, can be downloaded from here:

https://fonts.google.com/specimen/Permanent+Marker

Thank you very much!