BE course: Pumas Installation

Dear, I installed Pumas 2.7.0-prerelease as this was the only 2.7.0 shown. I got the success notification “:white_check_mark: Successfully initialized Pumas@2.7.0-prerelease”. I proceeed for post-installation verification and at the VS Code status bar at the bottom of the window, it does not displays Julia env Pumas@2.7.0. It shows only Julia env: v1.11. I anyways started the Julia terminal and trying “julia using Pumas” and “using Pumas” and both give errors:

julia> julia using Pumas
ERROR: ParseError:

Error @ REPL[1]:1:6

julia using Pumas

└──────────┘ ── extra tokens after end of expression

Stacktrace:
[1] top-level scope
@ none:1

julia> using Pumas
ERROR: ArgumentError: Package Pumas not found in current path.

  • Run `import Pkg; Pkg.add(“Pumas”)` to install the Pumas package.
    Stacktrace:
    [1] macro expansion
    @ ./loading.jl:2296 [inlined]
    [2] macro expansion
    @ ./lock.jl:273 [inlined]
    [3] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
    [4] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
    [5] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
    [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260

hi @camontefusco

it does not displays Julia env Pumas@2.7.0. It shows only Julia env: v1.11.

Can you please show us your settings.json file

you can get this file by

  1. clicking on command pallette
  2. typing user settings json
  3. selecting the user settings json option which should open up the file.

julia> julia using Pumas

this should be just using Pumas and no need to add julia again.

@camontefusco can you try the following

  1. In the command pallette (ctrl + shift + P), do Pumas: Getting Started
  2. Click on Getting Started
  3. In the file that opens below, click the Blue button that says List versions. The ProductManager will start and list the versions at the top of the screen.
  4. Click on Pumas@2.7.0-prerelease (installed) Assuming you already had installed it.
  5. In the drop down menu, you should find Configure VSCode option. Please click on that and there will be a popup asking to install this globally or locally. Please select to install Globally.
  6. Once this installation is complete, you can restart the VSCode
  7. After restart, go to the command pallette and try Julia: Start REPL and let us know what is happening

Best regards,

Vijay

1 Like

{

"security.workspace.trust.untrustedFiles": "open",

“python.defaultInterpreterPath”: “/usr/bin/python3”,

“terminal.integrated.commandsToSkipShell”: [

“language-julia.interrupt”

\],

“julia.symbolCacheDownload”: true,

“julia.enableTelemetry”: true

}

Yep, I tried also the using Pumas, without the julia

I tried that and it says:
Julia extension configured globally to use Pumas@2.7.0-prerelease
then it suggests Restart Language Server
Then Please restart the Julia language server manually if needed.
I restarted VSCod and now it shows: Julia env Pumas@2.7.0-prerelease

I opened Julia terminal and used using Pumas. It took 5 minutes , asked for the license , then the Terminal disappeared and at bottom-left it shows Julia: Evaluating, even so I didn’t input any license.

From the license links I got 2 emails: one for Pumas for Academia Community and another one for PumasCP for Academia Community. I will try one of those, but Julia is stil evaluating for the past halfhour and the terminal didnt allow me to cpy the license key.

This worked for me. The ‘user settings json’ matches what you’ve shared @vijay

{

"terminal.integrated.commandsToSkipShell": \[

    "language-julia.interrupt"

\],

"julia.symbolCacheDownload": true,

"julia.enableTelemetry": true,

"julia.executablePath": "julia.exe +Pumas@2.7.0-prerelease",

"julia.environmentPath": "C:\\\\Users\\\\parth\\\\.julia\\\\environments\\\\Pumas@2.7.0-prerelease"

}

Following this, I did - Julia: Start REPL. Ideally, it should ask to enter the license key now. You can enter and input license key. In my case, it didn’t stop to ask the license key and the terminal disappeared. So needed a workaround using the Windows terminal. @vijay can you please enlist the steps you shared for the process using the Windows terminal. Thanks!

Thank you for the update @camontefusco - the installer missed a key step which we fixed. Here is a work around, assuming you are on windows.

  1. Close down VSCode.
  2. Click on Windows icon and search for Terminal and open the Terminal App.
  3. In the Terminal please type julia +Pumas@2.7.0-prerelease This should open up the Julia where the version is 1.11.5. If the printed version of julia here is NOT 1.11.5, please don’t continue further.
  4. After the > julia prompt, please type using PumasLicenseManager
  5. After the package is loaded, you will get a request to enter license or request license
  6. You should see a small > beside the enter license indicating that is the line where the cursor is pointing. Go ahead and press enter on your keyboard now.
  7. It will prompt you to enter the license. Please paste the Pumas license key that you received and press enter.
  8. There should be a print out of your license details.
  9. In case your julia terminates after step 8, follow steps 3 and 4 above.
  10. This time, instead of requesting your license key, the above step should print out your complete license information.
  11. After the license is printed, go ahead and type using Pumas after the > julia prompt.
  12. This may take anywhere from 1-3 minutes depending on your system configuration.
  13. If all goes well above, close down your Terminal app.
  14. Open VSCode and start your command pallette using ctrl+shift+P and then please type Julia: Start REPL and click on that command.
  15. After the > julia prompt appears in the REPL, type using Pumas there. This time it should not ask you for a license key and Pumas will be loaded in 1-3 minutes.

Note: The steps above are needed as the license entry in the VSCode seems to be buggy and hence we are having to do this in a Terminal app. We are actively fixing this issue and hope to release a new Pumas.vsix extension that will automate even the license entry through a Graphical user Interface.

Hope this should resolve it for your Carlos. Otherwise, please let me know.

Best,

Vijay

Amazing. It all worked out

But when I execute :
julia> using Pumas
Licensed to:Carlos Victor Montefusco Pereira (WBS Coding School)
License Type:…Time Limited
Status:…Active
Trial:…false
Activated offline:…false
Times Activated (out of):…1 (2)
Expiration Date:…2026-01-31
Days Remaining:…176
julia> using Pkg; Pkg.status(“Bioequivalence”)

Status ~/.julia/environments/Pumas@2.7.0-prerelease/Project.toml
[4ece37e6] Bioequivalence v0.4.1 /Users/cmontefusco/.julia/scratchspaces/aef49cb6-75a8-4add-8242-3d3875347889/ppr/data/packages/Bioequivalence#v0.4.1

and thats not the output expected

Why is not the expected output? It is showing the right version.

just do using Bioequivalence

Ah yes, now I noticed that these are libraries and I have it now in the Julia Workshop. Thanks a lot for the help!