[Twisted-Python] Conch SFTP Questions

Glyph glyph at twistedmatrix.com
Wed Sep 23 10:43:38 MDT 2020


> On Sep 22, 2020, at 3:47 PM, Robert DiFalco <robert.difalco at gmail.com> wrote:
> 
> Thanks! That is the full code. `connect` is from the conch library. 

To clarify Adi's comment somewhat, the "full" code would mean following the rules of http://sscce.org <http://sscce.org/> here; i.e. minimize the example to be runnable on its own, then attach the code as you actually run it (as a .py file, or in a link to a gist or a repo), rather than pasted into the body of the email which can easily lead to transcription errors.

For example, when I do paste your code into a file and run it, what I get is:

Traceback (most recent call last):
  File "stuff.py", line 1, in <module>
    @attr.s(frozen=True)
NameError: name 'attr' is not defined

and yeah, one could guess as to where to get `import attr`, from — me especially ;-) - but then we have to repeat that process for dozens of names, one at a time, gradually reassembling your code into something that approximates what it looked like to you; then we have to hook up your connection example to be runnable on its own, and after we're done guessing at all the imports we have to guess at the versions of things in your environment.  So a `requires.txt` generated by `pip freeze` or similar would also be a helpful addition here, just so someone attempting to tinker with your code can quickly get to the point rather than spending lots of time setting up things you've already done.

Thanks for using Twisted, and good luck with Conch!

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20200923/d54b3590/attachment.htm>


More information about the Twisted-Python mailing list