Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The filename, directory name, or volume label syntax is incorrect. #5

Open
cod3mon opened this issue Feb 24, 2018 · 3 comments
Open

Comments

@cod3mon
Copy link

cod3mon commented Feb 24, 2018

Hello,
pint gives the following error when trying to install some packages.


pint install cherrytree
Extracting download link from http://www.giuspen.com/cherrytree/
**** Retrieving (GET): http://www.giuspen.com/cherrytree/ ****
**** Processing: http://www.giuspen.com/cherrytree/ ****
The local file has the same size as the remote one, skipping redownloading.
Installing cherrytree to C:\Users\codemon\work\apps\cmder\pint\apps\cherrytree
Unpacking cherrytree--64--cherrytree_0.38.4_win32_portable.7z
The filename, directory name, or volume label syntax is incorrect.

I've tried cherrytree, megatools, aria2 and curl with no success. 7z installs fine though.
The local instance is running within cmder as you can see, pint dir is added to path, shim dir is pointing towards the /bin directory of cmder, by way of environment variable. I've also defined PINT_USER_AGENT if that helps.

Might this happen because the path is too long or is it because it has apps in the path twice?
Thank you for looking into this.

@vensko
Copy link
Owner

vensko commented Feb 25, 2018

Absolute paths in PowerShell must start with a drive letter, and some of *_DIR variables don't look like this. For instance, /bin won't work. Could you share how exactly *_DIR variables look like?

@cod3mon
Copy link
Author

cod3mon commented Feb 25, 2018

This is the directory I add to the path, where pint is located:


echo %pint_dir%
C:\Users\codemon\work\apps\cmder\pint

and this is the custom directory for the shims:


echo %pint_shim_dir%
C:\Users\codemon\work\apps\cmder\bin

so as you can see they are absolute. I get them as relative paths from %cmder_root% that cmder itself provides, but apparently they are translated to absolute paths.

@cod3mon
Copy link
Author

cod3mon commented Feb 25, 2018

Did some more testing and the problem seems to be having another 'apps' in your path.
So for instance if you have 'somepath\apps\anothersubpath\pint', pint will get confused when figuring out the location of its own 'apps' folder. I moved pint 2 directories up (in the work folder) and it's working fine now.
Idk, it doesn't seem like such a big deal, should have seen it coming. I'd make the modifications myself but I don't know a speck of powershell.
Thank you for this nifty program btw :) .

Edit:
Scratch that, definitely fails when trying to extract with 7z.
I digged around in the code and saw how you unpack.

C:\Windows\system32\cmd.exe /d /c "C:\Users\codemon\work\pint\deps\7z\7z.exe" x -y -bd -bso0 -bsp0 -aoa -o "C:\Users\codemon\AppData\Local\Temp\pint-aria2-1404404847" "C:\Users\codemon\work\pint\dist\aria2--64--aria2-1.33.1-win-64bit-build1.zip"

fails on my system (win7 x64 sp1) even when run by hand (i made the temp directory). Too long arguments from what I see.
& "$(get-dependency '7z')" x $type -y -bd -bso0 -bsp0 -aoa "-o`"$dir`"" `"$file`" works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants