Comments (5)
it is created/modified by PLY, the library that is used internally for language parsing. This file is updated automatically if you're using a different version of the library than the one with which the file was created originally. However, even if it fails to update it, it should still be working.
Also, this bug dabeaz/ply#31 may be relevant.
from djangoql.
I wonder if it would be possible to configure PLY to store it in different location, such as /var/lib
.
from djangoql.
So, I find the option to store it somewhere else, but is not very ideal.
To change the directory in which the parsetab.py file (and other output files) are written, use:
parser = yacc.yacc(tabmodule="foo",outputdir="somedirectory")
Note: Be aware that unless the directory specified is also on Python's path (sys.path), subsequent imports of the table file will fail. As a general rule, it's better to specify a destination using the tabmodule argument instead of directly specifying a directory using the outputdir argument.
I guess we have to ignore the warning and/or wait for the bug that you've mentioned to be fixed.
I'd can check how other packages/projects deal with ply when their modules are written system-wide.
from djangoql.
yep, yacc()
accepts tabmodule
parameter, and DjangoQLParser()
forwards **kwargs to yacc. However, on the end user level it is not configurable yet. Maybe we could add an optional configuration parameter for it in Django settings - do you think it would solve your use case?
from djangoql.
I've noticed the kwargs, but I am not sure if it would help to solve the issue. The ply idea is to have the file Python-importable. So, if the application, that would use djangoql, also be packaged (in /usr/lib
), then it would have the same warning issued.
I guess this is more of a problem on PLY side. I am thinking of a way for PLY to import the file without it being on python.sys.path. For example by reading and evaluating the file. That way it can be in any directory without meddling with python.sys.path.
I'll try to think up with something. Feel free to close this issue.
Thank you very much for your support.
from djangoql.
Related Issues (20)
- Bug in custom AdminSite HOT 2
- DjangoQLSchemaSerializer in drf Viewsets HOT 1
- Consider vendoring `ply` HOT 2
- Related names
- Logos in `README.rst` are hard to read in Dark Mode
- search triggers AWS WAF because the query looks like a sql injection HOT 2
- Django 4.2 compatibility HOT 1
- Localization of exceptions shown in the UI
- [Feature request] Add regex operator HOT 1
- [BUG] search_mode_toggle_enabled() is not properly working when using get_search_fields()
- Not working with Unfold Admin HOT 2
- Support for Django 5 HOT 1
- Localized error messages HOT 1
- Restrict fields HOT 3
- Support of Django 4.0 HOT 2
- Collectstatic on Django 4 fails due to missing map file HOT 1
- Search on Oracle Backend HOT 1
- Dealing with JSONFields
- Request for dedicated wiki page / tutorial on how to include DjangoQL autocompletion on webpage HOT 3
- Search for `in ("")` raises strptime() error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djangoql.