Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

orator cli doesn't work on windows #37

Closed
yos-virtus opened this issue Feb 8, 2016 · 12 comments
Closed

orator cli doesn't work on windows #37

yos-virtus opened this issue Feb 8, 2016 · 12 comments

Comments

@yos-virtus
Copy link

I tryed to execute orator make:migration create_example_table on my freshly created virtualenv, but it says that this command can't be executed. I also tryed .\Scripts\orator. The same thing.
Steps that I followed:

  1. Created vitual enviroment
  2. Installed orator
  3. Activated my virtual env
  4. Created orator.xml
  5. Run orator make:migration create_example_table
@sdispater
Copy link
Owner

What's the actual error message?

@yos-virtus
Copy link
Author

this command orator make:migration create_example_table issues following error:
"orator" not recognized as an internal or external command, operable program or batch file.

@yos-virtus
Copy link
Author

Here is what in my orator.yml

orator

even though i think it has nothing to do with the error.

@sdispater
Copy link
Owner

OK. That's what I thought.

Orator is using Cleo for all commands, but Cleo has not been properly tested on Windows yet.

I will see if I can find out where the problem is.

@yos-virtus
Copy link
Author

Ok. That would be nice.
Great ORM/AR by the way. Eloquent is great but eloquent(i mean orator) for python.... Mmmmm, yammy

@sdispater
Copy link
Owner

Thanks for the kind words 😃

So, it appears that there were two issues actually:

  • Cleo was not working well on Windows. I just released a new version compatible with Windows.
  • The way the orator script was installed did not work on Windows. It has been fixed on the develop branch.

So can you test the develop branch (pip install "git+https://github.com/sdispater/orator.git@develop#egg=orator" -U) to see if it's working for you?

@yos-virtus
Copy link
Author

I'll try it.

@yos-virtus
Copy link
Author

Ok. orator command is responding now but when i tryed this orator make:migration create_users_table --table=users --create it gave me following error:
orator_testing

And when I use orator.py instead of orator.xml error is different:

orator_testing_1

I'm using sqlite

@sdispater
Copy link
Owner

The Invalid format string was caused by a typo in the code but only on Windows. I just pushed a fix on the develop branch.

For your second error, I can't reproduce it. What's the content of your orator.py file? 

@yos-virtus
Copy link
Author

Here is what in my orator.py

orator_testing_2

@sdispater
Copy link
Owner

I still can't reproduce the error when using an orator.py configuration file.

For the time being, I advise you to keep using the orator.yml file. 

@yos-virtus
Copy link
Author

Thanks. It works now. As of the orator.py I will try it on a different machine maybe it's related to some settings on my current PC. I installed python 2.7 not so long ago for it's necessary when you pull/install Laravel-Elixir and it's dependencies. Perhaps the issue lays there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants