[Twisted-Python] Where is trial?
![](https://secure.gravatar.com/avatar/e93e18f71a5821a54c233690506bdbf7.jpg?s=120&d=mm&r=g)
I am trying to write tests for my project. According to the twisted howto found here http://twistedmatrix.com/documents/current/core/howto/trial.html I should use trial. When I try to run trial from the command line (Windows) I get the usual "that's not a program I know about" error. The howto says that there's a twisted bin directory that should be in the path, but looking around in my python installation, I see no such thing. I checked lib/site-packages/twisted and /Scripts. What am I missing here? I installed twisted using the executable windows installer. -Daniel
![](https://secure.gravatar.com/avatar/fcdfff68a2c9b2d1d199e4626998c791.jpg?s=120&d=mm&r=g)
On my current setup (Twisted 12.3), trial is at: C:\Python27\Scripts\trial.py Depending on how your system is set up, this may or may not run from the command line without some changes. Make sure your Scripts directory is on the executable search path, and you may need to add the .PY extension to your PATHEXT environment variable. Alternatively, you can write a batch file to launch trial. Good luck, and let us know how it turns out. On Sun, Dec 29, 2013 at 1:28 PM, Daniel Sank <sank.daniel@gmail.com> wrote:
-- -- Kevin Horn
![](https://secure.gravatar.com/avatar/e93e18f71a5821a54c233690506bdbf7.jpg?s=120&d=mm&r=g)
On my current setup (Twisted 12.3), trial is at:
C:\Python27\Scripts\trial.py
Oh, me too. When I read the howto I thought it was saying that there should be a binary, eg. trial.exe somewhere. I thought that because it said the file would be in a directory called "bin". Now I understand. Btw, I would submit a documentation patch for this but I still can't log into the website.
![](https://secure.gravatar.com/avatar/fcdfff68a2c9b2d1d199e4626998c791.jpg?s=120&d=mm&r=g)
On my current setup (Twisted 12.3), trial is at: C:\Python27\Scripts\trial.py Depending on how your system is set up, this may or may not run from the command line without some changes. Make sure your Scripts directory is on the executable search path, and you may need to add the .PY extension to your PATHEXT environment variable. Alternatively, you can write a batch file to launch trial. Good luck, and let us know how it turns out. On Sun, Dec 29, 2013 at 1:28 PM, Daniel Sank <sank.daniel@gmail.com> wrote:
-- -- Kevin Horn
![](https://secure.gravatar.com/avatar/e93e18f71a5821a54c233690506bdbf7.jpg?s=120&d=mm&r=g)
On my current setup (Twisted 12.3), trial is at:
C:\Python27\Scripts\trial.py
Oh, me too. When I read the howto I thought it was saying that there should be a binary, eg. trial.exe somewhere. I thought that because it said the file would be in a directory called "bin". Now I understand. Btw, I would submit a documentation patch for this but I still can't log into the website.
participants (2)
-
Daniel Sank
-
Kevin Horn