Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK: Python Projects
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Python Projects
This is the forum to discuss the Wrox book Python Projects Laura Cassell, Alan Gauld; ISBN: 978-1-118-90866-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Python Projects section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 17th, 2017, 07:32 AM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2017
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 2: Starting External Programs not working

Hi Alan,

For some reason the import subprocess function on pg56 is not working.
Working in a Mac environment, python 3.6.1

I've created a directory 'root', and added some text files.
Run the import script and the sub.call. and it ignores the files.
I just get '0'

I've used the chdir command so that it will look to that directory and still no dice.

Suggestions as to why?
Reply With Quote
  #2 (permalink)  
Old May 17th, 2017, 07:49 AM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2017
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Alan,

Never mind.
Newbie move, and hadn't read far enough.
I was expecting it to display the data in the window.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 (IIS not Starting) mcstone13 BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 1 May 31st, 2016 10:16 AM
Starting Ajax Chapter 10 btcomp BOOK: Beginning ASP.NET 4 : in C# and VB 4 September 24th, 2010 03:28 PM
Completely lost starting with Chapter 11 bladejay BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 14 August 5th, 2010 04:44 PM
Help with starting on master pages chapter 6 italianjob BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 September 29th, 2009 06:45 PM
Executing and monitoring external programs jacob C# 3 February 24th, 2004 03:09 PM



All times are GMT -4. The time now is 02:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.