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

+nodejs.org@10 #5588

Closed
wants to merge 2 commits into from
Closed

+nodejs.org@10 #5588

wants to merge 2 commits into from

Conversation

felipecrs
Copy link
Contributor

@felipecrs felipecrs commented Mar 14, 2024

@felipecrs
Copy link
Contributor Author

felipecrs commented Mar 14, 2024

Currently failing at:

Traceback (most recent call last):
  File "tools/compress_json.py", line 6, in <module>
    import zlib
ImportError: No module named zlib
make[1]: *** [node_lib.target.mk:69: /home/felipecrs/repos/pantry/builds/nodejs.org-10.24.1/out/Release/obj/gen/v8_inspector_protocol_json.h] Error 1

Which seems to have something to do with how Python 2 was built:

Homebrew/homebrew-core#29245

Adding zlib.net as build dep does not help btw.

@felipecrs
Copy link
Contributor Author

Now I see, it must be related to this:

    # Check if some other modules import. Then the linked libs are working.
    - run: |
        python -v -c "import _ctypes"
        # python -c "import _decimal" #FIXME
        python -c "import zlib"
      # FIXME: v2, <=3.6.4
      if: ^3.6.4

https://github.com/felipecrs/pantry/blob/2f97a43997543cbd7d44eb57dcc433360e6baddb/projects/python.org/package.yml#L266

@felipecrs
Copy link
Contributor Author

I believe something like this could fix the problem: LDFLAGS: -L{{ deps.zlib.net.prefix }}/lib, but not sure yet. Checking.

@felipecrs
Copy link
Contributor Author

Depends on: #5605

@felipecrs
Copy link
Contributor Author

felipecrs commented Mar 16, 2024

That error is past now. The current error is:

ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/root/.pkgx/python.org/v2.7.18/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/root/.pkgx/python.org/v2.7.18/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/root/.pkgx/python.org/v2.7.18/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/root/.pkgx/python.org/v2.7.18/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/root/.pkgx/python.org/v2.7.18/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/root/.pkgx/python.org/v2.7.18/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/root/.pkgx/python.org/v2.7.18/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/root/.pkgx/python.org/v2.7.18/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
  File "tools/js2c.py", line 365, in <module>
    main()
  File "tools/js2c.py", line 362, in main
    JS2C(source_files, [natives])
  File "tools/js2c.py", line 329, in JS2C
    hash_value = hashlib.sha256(lines).hexdigest()
AttributeError: 'module' object has no attribute 'sha256'

Still something wrong with Python, I believe.

@felipecrs felipecrs closed this May 20, 2024
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.

1 participant