Comments (7)
Perhaps include the values as you typed them into the open-db-viewer
fields? It feels like it could just be an improper conversion from your args to a lisp structure but near as I can tell that's controlled by some macros that go a little over my head atm.
from emacs-edbi.
Thanks for your reply. I entered:
- Data Source: dbi:Pg:dbname=t0612
- User Name : openerp
- Auth : ******
$ psql -l
shows that database t0612 exists and I'm sure the username and password are correct.
from emacs-edbi.
Darn, I was hoping it would be more obvious ;)
What output do you receive when you run this? (it should be a big ol' struct)
(setq conn1 (edbi:start))
(edbi:connect conn1 '("dbi:Pg:dbname=t0612" "openerp" "openerp"))
Hopefully the info will help @kiwanami :)
from emacs-edbi.
Hi, @RenWenshan and @tdavis
Thank you for your comments.
Well, I have met this problem for the first time. The "Connection Error" is due to failure of connecting.
However, the error message "~ is not a valid place expression" says that the elisp code is broken.
It seems that compiling for some elisp files were failed.
Will you try to re-install the elisp codes and tell me how did you install elisps and the perl package?
I'm sorry for troubling you.
from emacs-edbi.
The first sexp gives:
([cl-struct-epc:manager "perl /home/openerp/.emacs.d/el-get/edbi/edbi-bridge.pl" #<process epc:server:17> ("perl" "/home/openerp/.emacs.d/el-get/edbi/edbi-bridge.pl") 54787 [cl-struct-epc:connection "epc con 18" #<process epc con 18> #<buffer *epc con 18*> ("epc con 18" nil ... ... ... ... ...)] nil nil nil] nil nil nil)
The second sexp gives:
Debugger entered--Lisp error: (error "(epc:manager-title mngr) is not a valid place expression")
signal(error ("(epc:manager-title mngr) is not a valid place expression"))
error("%S is not a valid place expression" (epc:manager-title mngr))
gv-get((epc:manager-title mngr) #[514 "\211\300!\207" [(edbi:data-source-uri data-source)] 4 "\n\n(fn GETTER SETTER)"])
xxxx (couldn't copy this part) vconcat vector [] 4 "\n\n(fn GETTER SETTER)" nil setf progn] 11 ("/usr/local/emacs24/share/emacs/24.3/lisp/emacs-lisp/gv.elc" . 6442)]((epc:manager-title mngr) (edbi:data-source-uri data-source))
(setf (epc:manager-title mngr) (edbi:data-source-uri data-source))
(prog1 (epc:call-sync mngr (quote connect) (list (edbi:data-source-uri data-source) (edbi:data-source-username data-source) (edbi:data-source-auth data-source))) (edbi:connection-ds-set conn data-source) (setf (epc:manager-title mngr) (edbi:data-source-uri data-source)))
(let ((mngr (edbi:connection-mngr conn))) (prog1 (epc:call-sync mngr (quote connect) (list (edbi:data-source-uri data-source) (edbi:data-source-username data-source) (edbi:data-source-auth data-source))) (edbi:connection-ds-set conn data-source) (setf (epc:manager-title mngr) (edbi:data-source-uri data-source))))
edbi:connect(([cl-struct-epc:manager "perl /home/openerp/.emacs.d/el-get/edbi/edbi-bridge.pl" #<process epc:server:10> ("perl" "/home/openerp/.emacs.d/el-get/edbi/edbi-bridge.pl") 38820 [cl-struct-epc:connection "epc con 11" #<process epc con 11> #<buffer *epc con 11*> ("epc con 11" nil (methods . [cl-struct-deferred (lambda (args) (epc:log "SIG METHODS: %S" args) (epc:handler-methods #1 ...)) deferred:default-errorback deferred:default-cancel nil nil nil]) (epc-error . [cl-struct-deferred (lambda (args) (epc:log "SIG EPC-ERROR: %S" args) (apply ... #1 ...)) deferred:default-errorback deferred:default-cancel nil nil nil]) (return-error . [cl-struct-deferred (lambda (args) (epc:log "SIG RET-ERROR: %S" args) (apply ... #1 ...)) deferred:default-errorback deferred:default-cancel nil nil nil]) (return . [cl-struct-deferred (lambda (args) (epc:log "SIG RET: %S" args) (apply ... #1 ...)) deferred:default-errorback deferred:default-cancel nil nil nil]) (call . [cl-struct-deferred (lambda (args) (epc:log "SIG CALL: %S" args) (apply ... #1 ...)) deferred:default-errorback deferred:default-cancel nil nil nil]))] nil nil nil] ("dbi:Pg:dbname=t0612" "openerp" "openerp") nil nil) ("dbi:Pg:dbname=t0612" "openerp" "openerp"))
eval((edbi:connect conn1 (quote ("dbi:Pg:dbname=t0612" "openerp" "openerp"))) nil)
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)
from emacs-edbi.
@kiwanami
Hi, I've re-installed the package using el-get and now it works, thanks. However, edbi-dbviewer gives "No tables" once I entered the database.
from emacs-edbi.
@RenWenshan
Thank you for your work!
The another problem 'No tables' continues #16.
from emacs-edbi.
Related Issues (20)
- Unable to save query editor file content to file. HOT 9
- can you remove auto-complete dependency? HOT 8
- Is it possible to store the connection details? HOT 1
- How configure edbi to stay in the query window? HOT 8
- Change the window-title edbi:query-result without number HOT 1
- Multiple queries possible? HOT 2
- Can't install from melpa-stable HOT 3
- No rows shown in result for SQL Server query with ntext column
- I can't connect mysql database HOT 1
- Query returns nil when value is 0
- A way to connect to other not SQL dbs?
- add two tips HOT 1
- Cannot open a sqlite database that has been created using WAL mode HOT 2
- make emacs-edbi aware of local::lib installations of RPC::EPC::Service and DBI modules HOT 2
- Selected row colors in Emacs dark modes?
- Quoting tables
- Does your library have functions for reading columns directly from the sql results into elisp? HOT 1
- Add connection bookmarks/names
- Export the query results
- Query execute does not return?
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 emacs-edbi.