Coder Social home page Coder Social logo

Comments (4)

bk-cs avatar bk-cs commented on May 22, 2024

The PSFalcon module will not automatically import to PowerShell (I think because the module adds 'Falcon' as a prefix rather than having it in the command names). I'm not sure if that's the cause of the problem, but the error you're getting is acting like PowerShell can't find PSFalcon.

I don't see any code showing that you're importing the module as part of the script. Have you tried a requires statement? Forcing the module to be present should stop that error from showing up...

from psfalcon.

grayfold3d avatar grayfold3d commented on May 22, 2024

Yep I'm importing it in the beginning of the script. I have a ton of other stuff that occurs in the script prior to the part where it's failing that uses PSFalcon so I would think if it was an issue with the module not being available it would have failed prior to that.

from psfalcon.

bk-cs avatar bk-cs commented on May 22, 2024

If you're using Import-Module, try using a requires statement instead and see if that fixes it. The error makes me suspect that somehow PowerShell is creating a separate process at some point which doesn't have the module loaded. There's not really any reason in the code of PSFalcon that this should be happening, so I can't really offer any advice beyond trying a few different methods to make sure the module is imported and see if you can narrow it down...

from psfalcon.

grayfold3d avatar grayfold3d commented on May 22, 2024

alright cool I'll give that a shot.

from psfalcon.

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.