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

Fix bout-add-mod-path for Python 3.9 #2221

Merged
merged 1 commit into from
Feb 9, 2021
Merged

Fix bout-add-mod-path for Python 3.9 #2221

merged 1 commit into from
Feb 9, 2021

Conversation

dschwoerer
Copy link
Contributor

I got this error - so might be a change in python 3.9

Traceback (most recent call last):
  File "/home/dave/soft/BOUT-dev/bin/bout-add-mod-path", line 147, in <module>
    create_mod(modulepath, name, top)
  File "/home/dave/soft/BOUT-dev/bin/bout-add-mod-path", line 79, in create_mod
    pathlib.Path.mkdir(modulepath+"/bout++", parents=True, exist_ok=True)
  File "/usr/lib64/python3.9/pathlib.py", line 1312, in mkdir
    self._accessor.mkdir(self, mode)
AttributeError: 'str' object has no attribute '_accessor'

@ZedThree ZedThree changed the title Fix add mod script Fix bout-add-mod-path for Python 3.9 Feb 9, 2021
@ZedThree ZedThree merged commit fcb7b90 into next Feb 9, 2021
@ZedThree ZedThree deleted the next-fix-mod branch February 9, 2021 14:21
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 this pull request may close these issues.

None yet

2 participants