Re: [sqlalchemy] Just starting with sqlacodegen: wrong command?

2022-06-15 Thread Javier Garcia
ou *need* > sudo (because your virtualenv is owned by root), you must ensure that you > run the "pip" that is installed in the virtualenv, by using an absolute > path. > > Hope that helps, > > Simon > > On Tue, Jun 14, 2022 at 5:32 PM Javier Garcia wrote: &g

Re: [sqlalchemy] Just starting with sqlacodegen: wrong command?

2022-06-14 Thread Javier Garcia
stalled importlib-metadata-4.11.4 sqlacodegen-3.0.0b3 zipp-3.8.0 (venv) jgarcia@Javier-PC:/var/www$ sqlscodegen --version Command 'sqlscodegen' not found, did you mean: command 'sqlacodegen' from deb sqlacodegen (1.1.6-2build1) Try: sudo apt install (venv) jgarcia@Javier-PC:/var/www$ sqlacodegen

Re: [sqlalchemy] Just starting with sqlacodegen: wrong command?

2022-06-14 Thread Javier Garcia
v3.0.0: > > https://github.com/agronholm/sqlacodegen/blob/master/CHANGES.rst > > Simon > > On Tue, Jun 14, 2022 at 5:06 PM Javier Garcia wrote: > >> Hi, >> >> I have tried to run something like this: >> >> sqlacodegen --generator tables >>

[sqlalchemy] Just starting with sqlacodegen: wrong command?

2022-06-14 Thread Javier Garcia
Hi, I have tried to run something like this: sqlacodegen --generator tables mysql+pymysql://user:password@localhost/dbname but I get: usage: sqlacodegen [-h] [--version] [--schema SCHEMA] [--tables TABLES] [--noviews] [--noindexes] [--noconstraints] [--nojoined] [--noinflect]