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

AttributeError: 'PosixPath' object has no attribute 'rstrip' #18

Closed
cschwan opened this issue Feb 16, 2023 · 0 comments · Fixed by #19
Closed

AttributeError: 'PosixPath' object has no attribute 'rstrip' #18

cschwan opened this issue Feb 16, 2023 · 0 comments · Fixed by #19

Comments

@cschwan
Copy link
Contributor

cschwan commented Feb 16, 2023

(env) cschwan@montblanc ~ $ pinefarm run ATLAS_1JET_8TEV_R06 pinefarm/extras/theories/theory_200_1.yaml 
/home/cschwan/runcards/env/lib/python3.8/site-packages/pinefarm/cli/_base.py:24: UserWarning: No configuration file detected.
  warnings.warn("No configuration file detected.")
/home/cschwan/runcards/env/lib/python3.8/site-packages/pinefarm/configs.py:81: UserWarning: Using default minimal configuration ('root = $PWD').
  warnings.warn("Using default minimal configuration ('root = $PWD').")
ATLAS_1JET_8TEV_R06
Computing ATLAS_1JET_8TEV_R06...
✓ Found pineappl
Installing...
Traceback (most recent call last):
  File "/home/cschwan/runcards/env/bin/pinefarm", line 8, in <module>
    sys.exit(command())
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/pinefarm/cli/run.py", line 30, in subcommand
    main(dataset, theory_card, pdf)
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/pinefarm/cli/run.py", line 65, in main
    install_reqs(runner, pdf)
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/pinefarm/cli/run.py", line 84, in install_reqs
    runner.install()
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/pinefarm/external/mg5/__init__.py", line 47, in install
    install.mg5amc()
  File "/home/cschwan/runcards/env/lib/python3.8/site-packages/pinefarm/install.py", line 75, in mg5amc
    shutil.move(el, dest)
  File "/usr/lib/python3.8/shutil.py", line 787, in move
    real_dst = os.path.join(dst, _basename(src))
  File "/usr/lib/python3.8/shutil.py", line 750, in _basename
    return os.path.basename(path.rstrip(sep))
AttributeError: 'PosixPath' object has no attribute 'rstrip'
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

Successfully merging a pull request may close this issue.

1 participant