# Problem:

  * I do my Nim development in a directory _/Users/DM/work/trunk/nim_.
  * If from that directory, I use nimble to install a module.

>     *  **it does install, but I am not able to import it** :-(.

  * Any pointers/suggestions would be truely appreciated.


    
    
    - Example:
            - pwd
               /Users/DM/work/trunk/nim
            - nimble list -i   # *No previously existing entry*
               Warning: Using project local deps mode
            - nimble install db_connector
               Warning: Using project local deps mode
               Downloading https://github.com/nim-lang/db_connector using git
               Warning: The package has no tagged releases, downloading HEAD 
instead.
               Verifying dependencies for db_connector@0.1.0
               Installing db_connector@0.1.0
               Success:  db_connector installed successfully
            - nimble list -i     # *Yes it is installed*
              Warning: Using project local deps mode
              
              db_connector  [(version: 0.1.0, checksum: 
05c335ec678614b973d8a80651971e0719045d14)]
            
            - inim     # *Now try to import it*
              Nim 0.6.1
              Nim Compiler Version 2.0.0 [MacOSX: amd64] at /usr/local/bin/nim
              nim> import db_connector
              
              
/private/var/folders/8l/vhg5vggj04g77ny91mlgzn680000gn/T/inim_1694301779.nim(8,
                  8) Error: cannot open file: db_connector     # Can't find it 
:-(
            
            - Checking where the files were actually installed:
                    - Macintosh HD
                            - Users
                                    - DM   # My user directory
                                            - work
                                                    - trunk
                                                            - nim
                                                                    - nimbledeps
                                                                            - 
pkgs2
                                                                                
    - db_connector-0.1.0-...
                                                                                
      db_connector.nimble
    
    
    Run

# Background:

  * **nim -v** Nim Compiler Version 2.0.0 [MacOSX: amd64] Compiled at 
2023-08-01 Copyright (c) 2006-2023 by Andreas Rumpf active boot switches: 
-d:release -d:nimUseLinenoise
  * **nimble -v**
    

Warning: Using project local deps mode nimble **v0.14.2** compiled at 
2023-08-01 01:01:02

**git hash: couldn 't determine git hash**

    * I'm not sure what the last part signifies
  * echo $NIMBLE_PATH => empty


Reply via email to