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

  • Home
  • SEARCH
  • 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 9016273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:57:15+00:00 2026-06-16T03:57:15+00:00

I was about to test the ftpmirror builtin script (python322, winXP 32bits) from the

  • 0

I was about to test the ftpmirror builtin script (python322, winXP 32bits) from the cmd windows default shell and get this :

File "C:\Program Files\python322\Tools\Scripts\ftpmirror.py", line 161
print('Skip pattern', repr(pat), end=' ')
                                    ^
SyntaxError: invalid syntax

I tested the print() line directly in the python shell, trough cmd, and with idle (and in blender also) : this work obsiously.

I reproduce the error with a coucou.py file like this :

#! /usr/bin/env python3
pat = 'toto'
print("Skip pattern", repr(pat), end=" ")

when directly called from a cmd prompt :

C:\Program Files\python322\Tools\Scripts>coucou.py

same error than with ftpmirror
but :

C:\Program Files\python322\Tools\Scripts>python coucou.py

is ok

and my environment is ok I can execute py scripts directly from the windows ui by double-clicking a .py file, and I got working scripts working fine when called from .bat

I don’t get it, it looks specific to the print() end argument, what did I not read yet about the way to execute python3 from the windows cmd shell ?

thanks,

Jerome

  • 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-16T03:57:16+00:00Added an answer on June 16, 2026 at 3:57 am

    Try checking if you are running the same python interpreter when you double click or you run python from the command-line.

    Save this in a .py file with this content and try running it with both methods:

    import sys
    print sys.version_info
    

    I bet you are using different interpreters in each case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a test about thread priority. The code is from Thinking in Java
I have a test sample about coherence lock-unlock mechanism like this: public class Test
I have this table Test as Id, SomeValue, SomeText contains about a mill records,
I am wondering about this test question. I prepared the example myself and tested
I am attempting to get JUnit test reports from our continuous integration Jenkins builds
This is a very simple test about persisting a transient Person Object in the
I've a question about the hypergeometric test. I've data like this : pop size
If you open up this page in Chrome it's fine: http://www.dsi-usa.com/test/about.php However in Firefox
I have heard about unit test in VS. Many persons of this community tells
I stumbled upon a question (in a test) about which aggregate functions are applicable

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.