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

How to install a local .egg? #4

Closed
Massimo-B opened this issue Nov 12, 2019 · 3 comments
Closed

How to install a local .egg? #4

Massimo-B opened this issue Nov 12, 2019 · 3 comments
Assignees

Comments

@Massimo-B
Copy link

Doing as a user

python2.7 setup.py install

fails of course with

error: could not create '/usr/lib64/python2.7/site-packages/tracsql': Permission denied

Doing

python2.7 setup.py bdist_egg

as I do with almost every other plugin it fails with

/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'

Why is the installation so different?
How do I create a local .egg of this plugin?

rjollos added a commit that referenced this issue Nov 14, 2019
@rjollos
Copy link
Member

rjollos commented Nov 14, 2019

Doing as a user

python2.7 setup.py install

fails of course with

error: could not create '/usr/lib64/python2.7/site-packages/tracsql': Permission denied

You probably need to run as sudo

Doing

python2.7 setup.py bdist_egg

as I do with almost every other plugin it fails with

/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'

Why is the installation so different?
How do I create a local .egg of this plugin?

Please try again after a4f0edf.

@rjollos rjollos closed this as completed Nov 14, 2019
@rjollos rjollos self-assigned this Nov 14, 2019
@Massimo-B
Copy link
Author

Massimo-B commented Nov 14, 2019

Please try again after a4f0edf.

This works, thanks.

Now I have at least tracsql and WikiTableMacro working for plain SQL commands.
Btw. are all those SQL plugins safe from CREATE, UPDATE and DELETE or do they provide full access to the database? It would be useful for any of those plugins, to grant read-only access only or read-write by configuration option.
On the other hand I could also create a read-only user account for this purpose.

@rjollos
Copy link
Member

rjollos commented Nov 14, 2019

Btw. are all those SQL plugins safe from CREATE, UPDATE and DELETE or do they provide full access to the database? It would be useful for any of those plugins, to grant read-only access only or read-write by configuration option.

Both plugins use a read-only transaction manager (db_query rather than db_transaction), so CREATE, UPDATE and DELETE are not allowed.

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

2 participants