Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vfs::zip not working for Win 64 bit?

75 views
Skip to first unread message

Alexandru

unread,
Oct 9, 2017, 8:36:01 PM10/9/17
to
Hi,

I just tried to run the vfs package
package require vfs
and I get the error
couldn't load library "C:/Tcl/lib/vfs1.0/vfs10.dll": invalid argument
on a Win 7 64bit OS.

I this OS not supported?
What is the alternative?

Thanks
Alexandru

Rich

unread,
Oct 9, 2017, 10:24:18 PM10/9/17
to
Alexandru <alexandr...@meshparts.de> wrote:
> Hi,
>
> I just tried to run the vfs package
> package require vfs
> and I get the error
> couldn't load library "C:/Tcl/lib/vfs1.0/vfs10.dll": invalid argument
> on a Win 7 64bit OS.

First guess, your vfs10.dll is a 32bit dll and your tcl is 64bit (or
the reverse, you have a 32-bit tcl and are trying to load a 64-bit
vfs10.dll).

Alexandru

unread,
Oct 9, 2017, 10:38:42 PM10/9/17
to
Yes, but then the package does not support 64 bit, right?
Do I have to compile myself or is there a 64bit version somewhere?

Rich

unread,
Oct 10, 2017, 6:00:46 AM10/10/17
to
No necessarially. Windows will run both 32 and 64 bit executables (at
least for the windows installs I've seen).

But to load a dll, the dll *has* to match the bit-ness of the executable
(not the bit-ness of the windows os).

Mike Griffiths

unread,
Oct 10, 2017, 4:38:56 PM10/10/17
to
The package supports it, as long as you download a version with a 64-bit binary in it. Try http://teapot.activestate.com/package/name/vfs/ver/1.4.2/arch/win32-x86_64/file.zip (or use teacup to download it directly, if you have an ActiveState install/teacup available).

Alexandru

unread,
Oct 11, 2017, 12:14:41 AM10/11/17
to
Thanks Mike, that works.
I use a self-compiled Tcl using Paul Obermeier's BAWT framework.
I will ask him, if it's possible to include the vfs package per default in BAWT.

Furthermore I think there is a bug in the vfs package since
package require vfs::zip
does not work returning "package not found".

Regards
Alexandru

Alexandru

unread,
Oct 11, 2017, 5:08:11 AM10/11/17
to
Looks like the "package require vfs::zip" is not needed anymore, thow it's stated otherwise in http://wiki.tcl.tk/12832

"package require vfs" is enough to be able to call "vfs::zip".

Cheers
Alexandru

Mike Griffiths

unread,
Oct 11, 2017, 4:34:44 PM10/11/17
to
There is a separate vfs::zip package (see http://teapot.activestate.com/index for the full list of packages in teapot), though I guess the functionality must be bundled into the core vfs package now if it works without needing to download/'package require' the additional vfs::zip package.
0 new messages