GithubHelp home page GithubHelp logo

PostgreSQL connection about emacs-edbi HOT 7 CLOSED

kiwanami avatar kiwanami commented on July 17, 2024
PostgreSQL connection

from emacs-edbi.

Comments (7)

tdavis avatar tdavis commented on July 17, 2024

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.

RenWenshan avatar RenWenshan commented on July 17, 2024

@tdavis

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.

tdavis avatar tdavis commented on July 17, 2024

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.

kiwanami avatar kiwanami commented on July 17, 2024

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.

RenWenshan avatar RenWenshan commented on July 17, 2024

@tdavis

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.

RenWenshan avatar RenWenshan commented on July 17, 2024

@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.

kiwanami avatar kiwanami commented on July 17, 2024

@RenWenshan
Thank you for your work!

The another problem 'No tables' continues #16.

from emacs-edbi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.