starting trytond in windows from powershell, please help

162 views
Skip to first unread message

Elam Muchira

unread,
May 12, 2017, 1:50:07 PM5/12/17
to tryton
I am setting up the development environment for tryton, and have successfully followed the steps detailed under this tutorial but am stuck at the last one. ( http://pritishc.com/blog/2014/10/21/beginning-tryton/ )

I cannot figure out how to start the server after successful installation. I am running python2.7, and have created a virtualenv where I installed both trytond and tryton using pip.

This is the error I get, when I test with comman trytond --version

(trytonsms)PS C:\Windows\system32> trytond --version
trytond : The term 'trytond' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ trytond --version
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (trytond:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Could someone please point me to the right direction to resolve this.

Sergi Almacellas Abellana

unread,
May 15, 2017, 3:27:55 AM5/15/17
to try...@googlegroups.com
El 12/05/17 a les 19:41, Elam Muchira ha escrit:
AFAIU you should add the trytond binary to the system path.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Elam Muchira

unread,
May 16, 2017, 2:35:07 AM5/16/17
to tryton
thanks for the pointer, but I am still not able to run it.

I installed tryton via pip with the folowing commands (and the install was successful)
pip install trytond
pip install tryton

I therefore do not have the /bin/trytond folder

but the installation copied files to  "C:\Users\xxxmexxx\.virtualenvs\trytonsms\Scripts" where I can see what I assume to be the tryton binaries (no file extension). I have added this folder to system path but get the same error

regards

Axel Braun

unread,
May 16, 2017, 3:01:40 AM5/16/17
to try...@googlegroups.com
Am Dienstag, 16. Mai 2017, 05:46:47 CEST schrieb Elam Muchira:
> thanks for the pointer, but I am still not able to run it.
>
> I installed tryton via pip with the folowing commands (and the install was
> successful)
> pip install trytond
> pip install tryton
>
> I therefore do not have the /bin/trytond folder
>
> but the installation copied files to
> "C:\Users\xxxmexxx\.virtualenvs\trytonsms\Scripts" where I can see what I
> assume to be the tryton binaries (no file extension). I have added this
> folder to system path but get the same error

Is trytond on Windoze an executable or a script?
What if you run 'python trytond'?

HTH
Axel

Dominique Chabord

unread,
May 16, 2017, 5:42:45 AM5/16/17
to tryton
hi,

a "development environment for tryton" is first a develpment
environment for python.
You will probably find more people knowing windows on python list.
As most of us know unix-likes, if you choose an alternative os for
development, you need some knowledge about it.
An other solution is to host a virtual machine with Linux on your PC
and learn a few shell commands.
By the way, once you've set up a convenient solution, probably other
windowsers will be happy to ask you for some advice.

elam muchira

unread,
May 16, 2017, 9:56:48 AM5/16/17
to tryton, dominiqu...@sisalp.org
thank you all for your comments. I just realised that setting the dev environment in windows is turning out to be a real pain.

But I did manage to run the server with the "python trytond" as proposed above, only that I ended up with more errors, a search of this error on google did not yield any results.

Traceback (most recent call last):
  File "trytond", line 15, in <module>
    import trytond.commandline as commandline
  File "C:\Python27\virtualenv\my_project\lib\site-packages\trytond\__init__.py", line 15, in <module>
    warnings.warn('Timezone must be set to UTC instead of %s', time.tzname[0])
TypeError: issubclass() arg 1 must be a class

It is probably a good idea to try other environments as suggested, unless someone can come to the rescue here.

thanks anyway
Reply all
Reply to author
Forward
0 new messages