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: 'NoneType' object has no attribute 'is_absolute' " occurs when building 3.13.0 beta 1 from source on Windows #118876

Closed
i-shenl opened this issue May 10, 2024 · 1 comment
Labels
3.13 bugs and security fixes OS-windows type-bug An unexpected behavior, bug, or error

Comments

@i-shenl
Copy link
Contributor

i-shenl commented May 10, 2024

Bug report

Bug description:

The above error occurs when building python 3.13 beta 1 from source on Windows. Have determined that ns.temp not being defined before its is_absolute() method is invoked. Below is the full trace of the AttributeError. Will submit a PR with a patch that is working for me.

Traceback (most recent call last):

  File "<frozen runpy>", line 198, in _run_module_as_main

  File "<frozen runpy>", line 88, in _run_code

  File "C:\builds\sources\1\Python-3.13.0b1\PC\layout\__main__.py", line 14, in <module>

    sys.exit(int(main() or 0))

                 ~~~~^^

  File "C:\builds\sources\1\Python-3.13.0b1\PC\layout\main.py", line 606, in main

    if not ns.temp.is_absolute():

           ^^^^^^^^^^^^^^^^^^^

AttributeError: 'NoneType' object has no attribute 'is_absolute'

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Linked PRs

@i-shenl i-shenl added the type-bug An unexpected behavior, bug, or error label May 10, 2024
@aisk aisk added OS-windows 3.13 bugs and security fixes labels May 10, 2024
i-shenl added a commit to i-shenl/cpython that referenced this issue May 10, 2024
Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
i-shenl added a commit to i-shenl/cpython that referenced this issue May 10, 2024
Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
zooba pushed a commit that referenced this issue May 13, 2024
Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 13, 2024
…nGH-118880)

Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
(cherry picked from commit d8a82cc)

Co-authored-by: I-Shen Leong <i-shenl@activestate.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 13, 2024
…nGH-118880)

Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
(cherry picked from commit d8a82cc)

Co-authored-by: I-Shen Leong <i-shenl@activestate.com>
@zooba
Copy link
Member

zooba commented May 13, 2024

Thank you!

@zooba zooba closed this as completed May 13, 2024
zooba pushed a commit that referenced this issue May 13, 2024
Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
(cherry picked from commit d8a82cc)

Co-authored-by: I-Shen Leong <i-shenl@activestate.com>
zooba pushed a commit that referenced this issue May 13, 2024
Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
(cherry picked from commit d8a82cc)

Co-authored-by: I-Shen Leong <i-shenl@activestate.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants