Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Error installing model #8

Open
ghost opened this issue May 8, 2017 · 2 comments
Open

Error installing model #8

ghost opened this issue May 8, 2017 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented May 8, 2017

On Windows, the command 'python -m caffe2.python.models.download -i squeezenet' fails with the error "'module' object has no attribute 'symlink'. It is my understanding that symlink is not available on non-Unix OSes.

@ghost
Copy link
Author

ghost commented May 8, 2017

I've got the script to run by replacing the line os.symlink("{folder}/__sym_init__.py".format(folder=dir_path),"{folder}/__init__.py".format(folder=model_folder)) with win32file.CreateSymbolicLink("{folder}/__init__.py".format(folder=model_folder), "{folder}/__sym_init__.py".format(folder=dir_path), 1) in download.py (and adding 'import win32file'), but when I try to import squeezenet from caffe2.python.models it fails.

I think my source and target may be the wrong way round, but if I swap them I get an error about creating a file that already exists.

@ghost
Copy link
Author

ghost commented May 8, 2017

I replaced the 1 flag passed to CreateSymbolicLink with a 0 and that seems to have fixed it.

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

No branches or pull requests

1 participant