I saw on my question that there is one vote to close the question because a user felt that the question is off-topic. Can my question be improved, or should I do everyone a favor and delete the question?

share|improve this question
7  
Put your code in the question...? We can't access your computer and do it for you. –  Doorknob Aug 21 '13 at 0:20
    
The error is on line 26 "JOB_CONFIG = multiprocessing.Process(os.system('./conf/set_data.py3'))" –  Devyn Collier Johnson Aug 21 '13 at 0:38
1  
It looks like the first close vote happened before you added code and error info. If the second also happened before, you may not get any more now that you've improved the question. However, I will suggest you can make the task easier for people trying to help by discarding everything from the code sample which is not required to reproduce the problem. The block of comment lines after #!/usr/bin/env python3 can all go away, can't they? –  HansUp Aug 21 '13 at 5:34
    
@HansUp, true, but the problem was with the multiprocessing.Process() command which was listed and mentioned in the error message that I had always had in the question from the beginning. Some users wanted the script. True, I could take a lot out, but if posting the whole script keeps me from getting more down-votes, then I will do it of course. –  Devyn Collier Johnson Aug 21 '13 at 12:58
    
I improved the question. –  Devyn Collier Johnson Aug 21 '13 at 13:04
1  
Good! And you're still at 2 close votes. You've fixed the perceived deficiency so probably won't get more. Now we get to see whether anyone can help you. :-) –  HansUp Aug 21 '13 at 23:04
add comment

1 Answer

up vote 9 down vote accepted

TL;DR

"Off-topic" doesn't always mean off-topic. It's (currently) a catch-all category for things which don't meet community guidelines or are lacking in other respects. Your topic is on-topic, but your post could use improvement.

What's Wrong with Your Post

In my opinion, your post has the following issues:

  1. It isn't clear what your question is.
  2. You have built a really large "wall of code" into your post.
  3. You haven't demonstrated an understanding of the problem.
  4. Your post isn't succinct or informative because you haven't really isolated the issue.

Ultimately, your question is committing the cardinal sin of boring the reader through lack of focus. By the time future meta users go to look at it, it may have already been edited or improved. However, that's how it looks right now.

How to Improve Your Post

Luckily, your post can be improved with just a bit of work on your part. Here are some suggestions to get you started:

  1. Clarify your question.

    "Please find my bug" is a terrible premise for anything on Stack Overflow. Be targeted. You have a stack trace and some triggering code. Hone in on that.

  2. Trim your code.

    Reduce your code to the minimum necessary to reproduce your state in a REPL. The exercise of doing that might even allow you to solve the problem yourself; if not, at least it will direct readers' attention to the right place.

  3. Demonstrate your understanding of the problem.

    Even if your conclusions are wrong, people want to know what you think is wrong and what you've already considered. No one wants to spend time writing an answer only to have you say you already tried that and it didn't work, either.

  4. Make your title count!

    A good title is the most important part of your question, because a well-written title attracts the right readers. "Starting a Python script from within another - odd behavior" is extremely generic; something like "Why is OS.system using /bin/sh?" might be better if it addresses your core question or draws in people who might know something about the method call you're using.

  5. Make your post as succinct as possible.

    You have a backtrace that shows a syntax error. You should probably focus your post on that. /bin/sh: 1: Syntax error: "(" unexpected (expecting "}") seems like it should be the point of your post. Posting the backtrace, along with just enough code to reproduce the problem, would improve your question tremendously.

  6. Reference code, not line numbers.

    Unless your code sample includes line numbers, don't reference lines of code that way. Instead of saying "[t]he error is now on line 29" you should use properly-formatted code inline. For example:

    Running multiprocessing.Process(os.system('./conf/set_data.py3')) results in the following error:

    /bin/sh: 1: Syntax error: "(" unexpected (expecting "}")

    would be a lot more informative for the readers, would also go a long way towards showing folks what you think is wrong, and what sort of solution you might be looking for.

Final Advice

Your question is salvageable, and I think you should make the effort to fix it up. You may or may not reverse any existing down-votes, but you'll be more likely to get a useful answer, and less likely to fall afoul of the system's ban-hammer.

Also, cleaning up your question might help you find your own answer. If that happens, you'll be more in keeping with the Stack Overflow spirit if you post that answer to your own question and help future visitors.

Good luck!

share|improve this answer
2  
The close reasons are crap if you ask me –  Cole Johnson Aug 21 '13 at 3:35
    
Thanks, I improved the question. –  Devyn Collier Johnson Aug 21 '13 at 13:05
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .