Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7801039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:49:44+00:00 2026-06-02T00:49:44+00:00

I am running Ubuntu with python 2.7.2. script python \ /home/blainer/Desktop/convert/converter.py \ /home/blainer/Desktop/convert/urban.shp \

  • 0

I am running Ubuntu with python 2.7.2.

script

python \
/home/blainer/Desktop/convert/converter.py \
/home/blainer/Desktop/convert/urban.shp \
/home/blainer/Desktop/convert/result.js \
--width 900 \
--country_name_index 4 \
--where "ISO = 'USA'" \
--codes_file /home/blainer/Desktop/convert/codes-en.tsv \
--insets '[{"codes": ["US-AK"], "width": 200, "left": 10, "top": 370}, {"codes": ["US-HI"], "width": 100, "left": 220, "top": 400}]' \
--minimal_area 4000000 \
--buffer_distance -3000 \
--simplify_tolerance 1000 \
--longtitude0 10w \
--name us

error

blainer@ubuntu:~/Desktop/convert$ python script.py
File "script.py", line 5
--width 900 \
          ^
SyntaxError: invalid syntax
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:49:45+00:00Added an answer on June 2, 2026 at 12:49 am

    That’s not a Python script, it’s a shell script that runs Python.

    1. Name it script.sh, not .py.
    2. Add a “shebang” line to the top: #!/bin/bash
    3. Make it executable: chmod +x ./script.sh
    4. Run it: blainer@ubuntu:~/Desktop/convert$ ./script.sh
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Python script running at the command line on Ubuntu, it's selecting UTF8-encoded
I'm running Ubuntu to compile a set of code which requires python 2.4. How
I am running the following code on ubuntu 11.10, python 2.7.2+. import urllib import
Running ubuntu 9.04 jaunty. When I run make I get the following error: Python
I'm running Ubuntu 10.04.3 LTS, Python 2.6.5, Matplotlib 0.99.1.2-3ubuntu1, I try to import GridSpec
Receiving a segfault when running this very short script in Ubuntu. from osgeo import
I am running an Ubuntu 8.10, using Python 2.5 out of the box. This
I'm running Django 1.3 + Python 2.6 on Ubuntu 10.10 (64bit) with uWSGI (0.9.8).
I'm developing an application in Python on Ubuntu and I'm running external binaries from
I'm running Ubuntu on EC2 (using the alestic community AMI) and on startup my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.