Skip to content

LookupError: unknown encoding: future_fstrings #12

@AlixAbbasi

Description

@AlixAbbasi

I get the following error when I am trying to install it:

`
ubuntu@ubuntu:~/heap$ sudo pip3 install ./libptmalloc/
Processing ./libptmalloc
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "/usr/lib/python3.10/tokenize.py", line 344, in find_cookie
          codec = lookup(encoding)
      LookupError: unknown encoding: future_fstrings
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 28, in <module>
        File "/usr/lib/python3.10/tokenize.py", line 396, in open
          encoding, lines = detect_encoding(buffer.readline)
        File "/usr/lib/python3.10/tokenize.py", line 373, in detect_encoding
          encoding = find_cookie(first)
        File "/usr/lib/python3.10/tokenize.py", line 352, in find_cookie
          raise SyntaxError(msg)
      SyntaxError: unknown encoding for '/home/ubuntu/heap/libptmalloc/setup.py': future_fstrings
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
ubuntu@ubuntu:~/heap$ python3 --version
Python 3.10.6

`

Installing or uninstalling future_fstrings package does not seem like affecting the outcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions