Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sure how to start with. #34

Closed
emprit1988 opened this issue Jul 12, 2017 · 2 comments
Closed

Not sure how to start with. #34

emprit1988 opened this issue Jul 12, 2017 · 2 comments

Comments

@emprit1988
Copy link

Hi,
I've installed fake2db successfully in ubuntu 14.04 and still, i'm unable to run cli commands as shown in readme.

Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

fake2db --rows 100 --db postgresql --name testdb
File "", line 1
fake2db --rows 100 --db postgresql --name testdb
^
SyntaxError: invalid syntax

@bhrgu
Copy link
Contributor

bhrgu commented Aug 29, 2017

Looks like you are trying to run the command via Python interpreter instead of your system shell, e.g. bash

Python 2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> fake2db --rows 10 --db sqlite 
  File "<stdin>", line 1
    fake2db --rows 10 --db sqlite 
                    ^
SyntaxError: invalid syntax

You just need to run fake2db as regular command if you have installed it system wide (sudo pip install fake2db):

user@host:~$ fake2db --rows 10 --db sqlite 
2017-08-29 15:28:27,894 bhrigu   Rows argument : 10
2017-08-29 15:28:27,925 bhrigu   Database created and opened succesfully: sqlite_MDAUFXKR.db
2017-08-29 15:28:27,973 bhrigu   simple_registration Commits are successful after write job!
2017-08-29 15:28:28,017 bhrigu   detailed_registration Commits are successful after write job!
2017-08-29 15:28:28,082 bhrigu   companies Commits are successful after write job!
2017-08-29 15:28:28,142 bhrigu   user_agent Commits are successful after write job!
2017-08-29 15:28:28,195 bhrigu   customer Commits are successful after write job!
user@host:~$ ls *sqlite*
sqlite_MDAUFXKR.db

@emprit1988
Copy link
Author

emprit1988 commented Aug 29, 2017

@bhrgu
Thanks for your support. I have solved this by uninstalling and reinstalling fake2db as suggested in this post. [https://github.com//issues/33]

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

No branches or pull requests

3 participants