xnuinside / simple-ddl-parser

Simple DDL Parser to parse SQL (HQL, TSQL, AWS Redshift, BigQuery, Snowflake and other dialects) ddl files to json/python dict with full information about columns: types, defaults, primary keys, etc. & table properties, types, domains, etc.
MIT License
180 stars 40 forks source link

Permission denied warning on global install of the package and the first run in user mode #138

Closed ivbeg closed 2 years ago

ivbeg commented 2 years ago

Describe the bug If you install package globally

To Reproduce Steps to reproduce the behavior:

  1. Run new clean installation "pip install simple-ddl-parser' without an any trace of the package in 'site-packages'
  2. Check the folder and find that 'parsetab.py' file doesn't exist.
  3. Run any script that calles simple_ddl_parser.parse_from_file from non root/non administrative user.
  4. See error warning 'permission denied'

Expected behavior Python packages shouldn't write into their package dir after installation. If this file is required it should be generated during installation.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

xnuinside commented 2 years ago

@ivbeg and again - thanks for reporting the issue, parsetab created by Ply, I tried include it in package, but I'm not sure that it will help, because as I see it is generated each run. Can you try 0.26.5 version?

ivbeg commented 2 years ago

@xnuinside sure, just I will write quite a lot of issues soon. I am parsing quite a big dataset of SQL files. Probably the next version?

xnuinside commented 2 years ago

@ivbeg okay :) 😭

xnuinside commented 2 years ago

I will close this issue, because I tried to fix it in 0.26.5, if it will be still actual - reopen pls