-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PATH too long #46
Comments
Any news on that? |
Same problem |
Got this issue too |
yes, I installed the latest I think (PothosSDR-2021.01.28-vc16-x64) today and got the same scary error. I will attempt to re-install it with a slightly shorter (but by how much) pathname. Just thought I would record this on Windows 10. I can install all commercial programs ... UPDATE: I de-installed and then re-installed with a C:\Program Files\PSDR directory location, (shorter path name) and so far it hasn't complained and just finished installing. However the de-installation process (UNINSTALL) was not smooth, and I had to restart the computer/use CCleaner/clean registry before I could get the entry removed from the Windows app registry which then would allow me to install once again. Otherwise, I was getting a notice that the App was already installed, thus it couldn't be installed again, even if I chose to install over the current installation (which was empty BTW). Bug? |
I wonder if this will fix it: https://docs.python.org/3/using/windows.html#removing-the-max-path-limitation
|
FWIW, enabling long paths did not change anything. It seems to have something to do with adding user or system's |
Experienced the same issue. Is this being worked on? |
This issue was opened in 2017, now it's 2022, I also have this same issue (2021.07.25-vc16-x64). |
I also got that error during the first install. I've had no issues (re)installing the software without adding the folder to the path automatically and instead adding it manually; I'd count that as a workaround for now. |
how do i add this manually? |
I've had success in using this PowerShell script to pack the PATH environment variable, in order to support more directories, and thought I would share it.
clear
write-host "Reading..."
write-host
$fso = New-Object -ComObject "Scripting.FileSystemObject"
$shortpaths = @();
$originalPaths = [environment]::GetEnvironmentVariable("path", "Machine").Split(";")
foreach ($path in $originalPaths) {
$env:Path = $ ($shortpaths -join ";");
$fpath = [System.IO.Path]::GetFullPath("$path");
$fspath = $fso.GetFolder("$fpath").ShortPath;
$foundIdx = $shortpaths.IndexOf($fspath);
if ($foundIdx -gt -1) { continue; }
write-host $fpath --> $fspath;
$shortpaths += $fspath;
}
write-host
write-host "Packing..."
write-host
write-host $env:Path
write-host
write-host "Done."
write-host
The text was updated successfully, but these errors were encountered: