www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - vibe.db.postgresql: Example not working in Windows

reply Vino <akashvino79 gmail.com> writes:
Hi All,

  I was just trying the new package vibe.db.postgresql and the 
example provided is not working, can some one provide me an 
working example.

Step performed
```
dub init
dub add vibe-d-postgresql
copy the example program to source/app.d
dub run
```
Error
```
source\app.d(3,8): Error: unable to read module `d`
source\app.d(3,8):        Expected 'vibe\d.d' or 
'vibe\d\package.d' in one of the following import paths:
import path[0] = source
import path[1] = 
C:\Users\vtest\AppData\Local\dub\packages\vibe-d-postgresql-3.1.3\vibe-d-postgresql\source
import path[2] = 
C:\Users\vtest\AppData\Local\dub\packages\dpq2-1.1.5\dpq2\src
import path[3] = 
C:\Users\vtest\AppData\Local\dub\packages\derelict-pq-4.0.0\derelict-pq\source
import path[4] = 
C:\Users\vtest\AppData\Local\dub\packages\money-3.0.2\money\source
import path[5] = 
C:\Users\vtest\AppData\Local\dub\packages\vibe-d-0.9.6\vibe-d\data
import path[6] = 
C:\Users\vtest\AppData\Local\dub\packages\vibe-d-0.9.6\vibe-d\utils
import path[7] = 
C:\Users\vtest\AppData\Local\dub\packages\stdx-allocator-2.77.5\stdx-allocator\source
import path[8] = 
C:\Users\vtest\AppData\Local\dub\packages\vibe-core-2.2.0\vibe-core\source
import path[9] = 
C:\Users\vtest\AppData\Local\dub\packages\eventcore-0.9.25\eventcore\source
import path[10] = 
C:\Users\vtest\AppData\Local\dub\packages\taggedalgebraic-0.11.22\taggedalgebraic\source
import path[11] = C:\D\dmd2\windows\bin64\..\..\src\phobos
import path[12] = 
C:\D\dmd2\windows\bin64\..\..\src\druntime\import
Error C:\D\dmd2\windows\bin64\dmd.exe failed with exit code 1.
```

From,
Vino.B
Apr 14 2023
parent Salih Dincer <salihdb hotmail.com> writes:
On Friday, 14 April 2023 at 17:06:36 UTC, Vino wrote:
  I was just trying the new package vibe.db.postgresql and the 
 example provided is not working, can some one provide me an 
 working example.

 Step performed
 ```
 dub init
 dub add vibe-d-postgresql
 copy the example program to source/app.d
 dub run
 ```
I would like to draw your attention to this point: ```d /+ dub.sdl: dependency "vibe-d" version="~>0.9.0" +/ void main() { import vibe.d; listenHTTP(":8080", (req, res) { res.writeBody("Hello, World: " ~ req.path); }); runApplication(); } ``` Do you have a working vibe app? SDB 79
Apr 14 2023