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

! Problems in running main.py #52

Open
kevinsky-chen opened this issue Aug 8, 2021 · 5 comments
Open

! Problems in running main.py #52

kevinsky-chen opened this issue Aug 8, 2021 · 5 comments

Comments

@kevinsky-chen
Copy link

kevinsky-chen commented Aug 8, 2021

Hi, thank you for sharing this fabulous code!
I've encountered some problems while executing
python main.py --task=train --subtask=desc

The error message is down below:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/flufl/lock/_lockfile.py", line 202, in lock
    os.link(self._claimfile, self._lockfile)
OSError: [Errno 38] Function not implemented: '.locks/setup.lock|39a239ed6eba|972|4773241702466798304' -> '.locks/setup.lock'
Traceback (most recent call last):
  File "main.py", line 98, in <module>
    tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
  File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python3.7/dist-packages/absl/app.py", line 303, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.7/dist-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "main.py", line 59, in main
    task = Trainer(config, rng)
  File "/content/drive/My Drive/ColabNotebooks/stitching/tf-lift/trainer.py", line 71, in __init__
    self.dataset = Dataset(self.config, rng)
  File "/content/drive/My Drive/ColabNotebooks/stitching/tf-lift/datasets/lift.py", line 85, in __init__
    self.data_wrapper = self.data_module.Wrapper(config, rng)
  File "/content/drive/My Drive/ColabNotebooks/stitching/tf-lift/datasets/eccv2016/wrapper.py", line 107, in __init__
    old_data = old_impl.data_obj(param, task)
  File "/content/drive/My Drive/ColabNotebooks/stitching/tf-lift/datasets/eccv2016/eccv.py", line 242, in __init__
    self.load_data(param, mode)
  File "/content/drive/My Drive/ColabNotebooks/stitching/tf-lift/datasets/eccv2016/eccv.py", line 263, in load_data
    pathconf.setupTrain(param, param.dataset.trainSetList[idxSet])
  File "/content/drive/My Drive/ColabNotebooks/stitching/tf-lift/datasets/eccv2016/custom_types.py", line 146, in setupTrain
    lock.lock()
  File "/usr/local/lib/python3.7/dist-packages/flufl/lock/_lockfile.py", line 202, in lock
    os.link(self._claimfile, self._lockfile)
OSError: [Errno 38] Function not implemented: '.locks/setup.lock|39a239ed6eba|972|4773241702466798304' -> '.locks/setup.lock'
Exception ignored in: <function Lock.__del__ at 0x7f2db90e8cb0>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/flufl/lock/_lockfile.py", line 319, in __del__
  File "/usr/local/lib/python3.7/dist-packages/flufl/lock/_lockfile.py", line 314, in finalize
  File "/usr/local/lib/python3.7/dist-packages/flufl/lock/_lockfile.py", line 271, in unlock
  File "/usr/local/lib/python3.7/dist-packages/flufl/lock/_lockfile.py", line 298, in is_locked
  File "/usr/local/lib/python3.7/dist-packages/flufl/lock/_lockfile.py", line 447, in _touch
ImportError: sys.meta_path is None, Python is likely shutting down

  • p.s. Installed modules with python3.7 are:
  • numpy, h5py, tensorflow==1.14, tensorflow-gpu==1.14
  • parse, flufl.lock==3

Can someone help me solve this problem? Thanks a lot!

@kmyi
Copy link
Contributor

kmyi commented Aug 8, 2021

Hi, this codebase is 4 years old, so it'll be quite tricky to solve. It however seems like there's a bit of an issue in flufl? Perhaps you want to use a different version of it? You can also try the docker file at #36

@kevinsky-chen
Copy link
Author

Hi, this codebase is 4 years old, so it'll be quite tricky to solve. It however seems like there's a bit of an issue in flufl? Perhaps you want to use a different version of it? You can also try the docker file at #36

Hi professor, thank you for your instant reply! Do you have something like requirement.txt of this project that includes the dependent module and its edition? It might be more convenient to use. Thanks a lot!!!

@kmyi
Copy link
Contributor

kmyi commented Aug 9, 2021

Unfortunately no. But the docker file should have the exact configurations required.

@ghamsarimah
Copy link

Hi professore thank you for sharing your code
I run your code with this line
python main.py --task=train --subtask=desc
but showing an error
image
can you help me ?

@kmyi
Copy link
Contributor

kmyi commented Nov 8, 2021

Seems like there's an OS related error for flufl.lock. You system seems to not support simlinks.

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

3 participants