PowerShell PackageManagement not found - windows

I'm trying to avoid having to restore my PC and get it back to where I was. I was recently going to delete a folder using Shift+Del, but without paying too close attention I hit Shift+Del on the modules folder in C:\ProgramFiles\WindowsPowerShell\Modules.
I had re-imported PowerShellGet, PackageManagement, as well as Pester.
I thought I was in the clear but I keep running into issues, I have to always Re-Import PowershellGet. Then I get another error.
Get-PSRepository : The term 'PackageManagement\Get-PackageSource' is not recognized as the name of a cmdlet, function, script file.
Even after doing Import-PackageManagement I still get that error.
If I do (Get-Module -List Available -Name PackageManagement).Exportedcmdlets it shows that Get-PackageSource is there.
I'm really not sure what I need to do to fix this.
I have uninstalled and reintalled WMF 5.1, but the issue persists.
I am running Windows 8.1

PowerShell is an open source project. You can download the modules from github. That link also describes how to get from PowerShell Gallery, which may work for you.
Main PowerShell repo
PackageManagement (aka Oneget)

The issue seems to be with PackageManagement, 1.1.4.0. I deleted that reimported PackageManagement based on what i read here. https://github.com/OneGet/oneget/issues/195
It seems to be working now.

Related

AnyLogic PLE v8.76 quit unexpectedly when launching on mac

I use AnyLogic PLE v8.76 on mac. It worked fine for a week, but today I got problem launching the software. I keep getting this message:
And this is the error shown:
I tried to download Anylogic again, but I still got the same problem...
I did not download any other softwares or change things on my mac.
Can somebody help me?
Thank you!
Best option, as often advised by the AnyLogic support team, is to clear the workspace.
Try the following:
Make hidden files and folders visible on your Mac - cmd+shit+.
Navigate to your user folder (Either from he side bar, or Macintosh HD -> Users->(yourname)
Find the .AnyLogic... folder, on mine it is called .AnyLogicProffesional
Delete the following two folders workspace8.x and configuiration8.x where the 8.x indicates your version number of the currently installed AnyLogic version.
These files keep settings and the currently loaded models on the disk and will remain even if you download a new version of AnyLogic, which is why downloading a new version does not always solve these kinds of problems.
If the issue still persists contact support, they might ask you to send the error report you got from your Mac (so copy and paste it to a document the next time you get it) as well as some error logs that get stored in these hidden files and folders. (Now you at least know where to find them ;-) )
If my solution did not provide the answer, please add an answer if you manage to find it.

I got "the project couldn't be opened:access to the path is denied"

I got This message"The project 'C:\Users\abrar\Documents\Uipath\BlankProcess2\project.json' could not be opened:Access to the path 'C:\Users\abrar.nuget\packages\uipath\10.0.7004.31775\build\UiPath\aahook.dll' is denied" when I open a new project on UIPATH, I have tried to change the permission but it didn't work
This could be a nuget caching issue. Try running Studio with elevated permissions first (Run as Administrator) to see if the issue persists - if not, close it and run it again, this time not in elevated mode.
If that does not work, just remove UiPath's packages entirely (C:\Users\abrar\.nuget\packages\uipath in your case), then run Studio again. Open your project, and UiPath will automatically restore all missing packages (you will need to be connected to the internet though).
I guess you are trying to run it from a different Windows user account.
(Can't comment on question, so i'm writing as answer. Also, you may have solved the problem already, but if not or for someone that could have this issue it may help)
It may be a typo, but seems like you're missing a backslash \ between username and .nuget:
'C:\Users\abrar\.nuget\packages\uipath\10.0.7004.31775\build\UiPath\aahook.dll'
Also make sure that this folder and files exist, seems to be a package published from UiPath Studio.

Why my pycharm can not debug forever?

My computer version is Win7.
And what ever .py I debug, this pycharm will show me en error like this:
ValueError: bad marshal data (string ref out of range)
So what's wrong with pycharm, I tried to user newest version of pycharm but I helpless, the same error will show again.
I used to reinstall my win7 (becauser I have Shadow Mode software) and it work for a period.
Is there body have a good solution?
I don't think the problem is directly related to the pydev debugger in this case... my bet is that for some reason you're having corrupted .pyc files (don't know why thought).
Try cleaning your .pyc files from your pycharm installation and your own files and run it again (you may try running with pydev which has the same debugger backend if you want to see if you reproduce the issue there).

uninstall.dat file cannot be found in xampp

I want to uninstall xampp and reinstall with the latest version. I've recently upgraded from Win7 to Win10 which I think is causing many of my problems.
I have saved all my files and folders, so that I can insert into the new version of xampp.
After I click "uninstall" I get this message "The uninstall.dat file cannot be found and is required to uninstall the application, aborting".
There is an uninstall.dat file in xampp and it is an Adobe file. I've tried changing it to Notepad and Editpad but still get the cannot be found message. And I've tried many times without success.
Can somebody tell me how to overcome this problem?
Maybe I need to uninstall by piecemeal but I don't know how to do that.
18/02/16 - Update.
The only solution I can think of is to move the xampp folder to the recycle bin.
In that event, how could I see if any of the programs are still running, and if they are, how to delete them?
I need to answer my own question, in case another person has the same problem. I deleted the xampp folder to the recycle bin, downloaded Version 7.0.4, installed and uninstalled, then installed once more. Everything appears to be working now. This may have been a fault with Version 7.0.2 which is what I had these problems with.
Actually I used XAMPP nearly four years ago during my college project, now not using it anymore, so I though to uninstall it but unfortunately got this same issue, just did a simple thing to resolve the issue, I had that setup from which I installed it, so using that I reinstalled it and then did the un-installation and it worked for me.
Copy paste required file into xampp folder and uninstall xampp as regular procedure via control panel.

ApiGen Windows Netbeans

I configured ApiGen on Windows and am trying generate documentation from NetBeans. Everything runs well after many errors, however I have a mistake, which is my destination is my desk from my pc. How can I change this? Whenever I try to generate documentation it never asks me for the destination again.
I tried uninstall NetBeans I do all again, but nothing.
My error is the destination of my documentation.
Current NetBeans ApiGen plugin doesn't work with the new ApiGen v4. If you need to generate documentation using ApiGen, you can use command line to get it working, or use other tools like phpDoc which is working fine from the NetBeans IDE.
You need to right click on the project, select Properties and look for documentation setting and change the folder there. Uninstalling NetBeans won't make any difference as this setting is stored in project as such.
To get an idea, have a look at https://blogs.oracle.com/netbeansphp/entry/apigen_support_added, on the 2nd picture. It might look a bit different now, but you should get the idea.

Resources