KevinUTAT / CSL-QMapViewer

A map viewer of Cities:Skyline map
8 stars 2 forks source link

fail to install #6

Open Dorian-wei opened 4 weeks ago

Dorian-wei commented 4 weeks ago

(macOS 15, python 3.8+) Hello sir, when I run the ./main_window.py, it happens: ./main_window.py: line 1: import: command not found ./main_window.py: line 2: import: command not found ./main_window.py: line 3: from: command not found ./main_window.py: line 4: from: command not found ./main_window.py: line 7: import: command not found ./main_window.py: line 8: from: command not found ./main_window.py: line 9: syntax error near unexpected token `(' ./main_window.py: line 9: `from PySide6.QtWidgets import (QApplication, QWidget, QGraphicsView,' I'm following the guidance :(

KevinUTAT commented 4 weeks ago

Hello, thank you for trying out my project. I haven't test this on MacOS yet, but I assume python is invoke the same way. Please try the following step for troubleshoot:

  1. Check if your python is accessible (Should show a version number started with 3):
    python3 -V
  2. Launch the program empty (should ask you for a cslmap file):
    python3 main_window.py
  3. locate your cslmap file (you exported it in game), and run:
    python3 main_window.py <path_to_cslmap>