GithubHelp home page GithubHelp logo

atrac-api's Introduction

ATRAC Encode/Decode Server

This is a basic FastAPI python application for running a windows executable atrac encoder as an API-driven service. It was originally designed for integration with Web MiniDisc Pro.

Installation

No executables are provided in this repository. The current syntax of the script is designed to work with the ATRAC3 tool included with the Sony PSP SDK. Other executables such as atracdenc can be easily substituted

To build atracapi as a docker container, provide an encoder executable in the root of this repository with the name psp_at3tool.exe and run docker build .

atrac-api's People

Contributors

asivery avatar thinkbrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

atrac-api's Issues

Why not use linux binary?

I like the container approach to this, as it makes it less OS-bound, however I wanted to try it as locally as possible, and when searching for the exe in the PSP SDK, I noticed there is also a linux binary (at3tool + libatrac.so.1.2.0 library) included there. So it made me curious - wouldn't it be more "natural" to build the image around the linux executable, without this whole Wine business?

Freezes at "Starting at3tool..."

I've tried using this with a psp_at3tool.exe that I found in this repository: https://github.com/XyLe-GBP/ATRACTool-Reloaded (I hope it is OK to share the link here.) With this version the service stops with

...
Starting at3tool...

Is it just the wrong version of the tool? Maybe you could improve the README by providing a checksum for the correct version or add more info if possible. You can also contact me directly if you don't want to share this information publicly (see contact info on my website linked in my profile).

Multiple build issues with latest python:slim

I just pulled the latest python:slim and got multiple build errors:

Step 20/25 : RUN pip install -r requirements.txt
 ---> Running in 57919ae83e5f
Collecting anyio==3.6.1
  Downloading anyio-3.6.1-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 kB 2.2 MB/s eta 0:00:00
Collecting click==8.1.3
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 3.7 MB/s eta 0:00:00
Collecting fastapi==0.79.0
  Downloading fastapi-0.79.0-py3-none-any.whl (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.6/54.6 kB 5.2 MB/s eta 0:00:00
Collecting h11==0.13.0
  Downloading h11-0.13.0-py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.2/58.2 kB 5.3 MB/s eta 0:00:00
Collecting httptools==0.4.0
  Downloading httptools-0.4.0.tar.gz (174 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 174.6/174.6 kB 6.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting idna==3.3
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 5.5 MB/s eta 0:00:00
Collecting pydantic==1.9.2
  Downloading pydantic-1.9.2-py3-none-any.whl (143 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.3/143.3 kB 6.3 MB/s eta 0:00:00
Collecting python-dotenv==0.20.0
  Downloading python_dotenv-0.20.0-py3-none-any.whl (17 kB)
Collecting python-multipart==0.0.5
  Downloading python-multipart-0.0.5.tar.gz (32 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting PyYAML==6.0
  Downloading PyYAML-6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 757.9/757.9 kB 6.7 MB/s eta 0:00:00
Collecting six==1.16.0
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting sniffio==1.2.0
  Downloading sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting starlette==0.19.1
  Downloading starlette-0.19.1-py3-none-any.whl (63 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.3/63.3 kB 5.2 MB/s eta 0:00:00
Collecting typing_extensions==4.3.0
  Downloading typing_extensions-4.3.0-py3-none-any.whl (25 kB)
Collecting uvicorn==0.18.2
  Downloading uvicorn-0.18.2-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.0/57.0 kB 6.2 MB/s eta 0:00:00
Collecting uvloop==0.16.0
  Downloading uvloop-0.16.0.tar.gz (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 6.8 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting watchfiles==0.16.1
  Downloading watchfiles-0.16.1-cp37-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 6.8 MB/s eta 0:00:00
Collecting websockets==10.3
  Downloading websockets-10.3.tar.gz (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.1/84.1 kB 5.7 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: httptools, python-multipart, uvloop, websockets
  Building wheel for httptools (setup.py): started
  Building wheel for httptools (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/httptools
      copying httptools/_version.py -> build/lib.linux-x86_64-cpython-311/httptools
      copying httptools/__init__.py -> build/lib.linux-x86_64-cpython-311/httptools
      creating build/lib.linux-x86_64-cpython-311/httptools/parser
      copying httptools/parser/errors.py -> build/lib.linux-x86_64-cpython-311/httptools/parser
      copying httptools/parser/__init__.py -> build/lib.linux-x86_64-cpython-311/httptools/parser
      running egg_info
      writing httptools.egg-info/PKG-INFO
      writing dependency_links to httptools.egg-info/dependency_links.txt
      writing requirements to httptools.egg-info/requires.txt
      writing top-level names to httptools.egg-info/top_level.txt
      reading manifest file 'httptools.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file 'httptools.egg-info/SOURCES.txt'
      copying httptools/parser/parser.c -> build/lib.linux-x86_64-cpython-311/httptools/parser
      copying httptools/parser/url_parser.c -> build/lib.linux-x86_64-cpython-311/httptools/parser
      running build_ext
      building 'httptools.parser.parser' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/httptools
      creating build/temp.linux-x86_64-cpython-311/httptools/parser
      creating build/temp.linux-x86_64-cpython-311/vendor
      creating build/temp.linux-x86_64-cpython-311/vendor/llhttp
      creating build/temp.linux-x86_64-cpython-311/vendor/llhttp/src
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-install-56v8y6ss/httptools_e2480e2815f54076b0e35a2ee1dc6791/vendor/llhttp/include -I/tmp/pip-install-56v8y6ss/httptools_e2480e2815f54076b0e35a2ee1dc6791/vendor/llhttp/src -I/usr/local/include/python3.11 -c httptools/parser/parser.c -o build/temp.linux-x86_64-cpython-311/httptools/parser/parser.o -O2
      error: command 'gcc' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for httptools
  Running setup.py clean for httptools
  Building wheel for python-multipart (setup.py): started
  Building wheel for python-multipart (setup.py): finished with status 'done'
  Created wheel for python-multipart: filename=python_multipart-0.0.5-py3-none-any.whl size=31670 sha256=03926cc2e8ffea4ee142d89c025c8fc1a7af4b13ab1e2dd6c7fff2153077fb28
  Stored in directory: /root/.cache/pip/wheels/e9/28/d8/e65e8531b6c4d4bcacfc388f668c97d927bc7cdb3719808c13
  Building wheel for uvloop (setup.py): started
  Building wheel for uvloop (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [194 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/_testbase.py -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/_noop.py -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/_version.py -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/__init__.py -> build/lib.linux-x86_64-cpython-311/uvloop
      running egg_info
      writing uvloop.egg-info/PKG-INFO
      writing dependency_links to uvloop.egg-info/dependency_links.txt
      writing requirements to uvloop.egg-info/requires.txt
      writing top-level names to uvloop.egg-info/top_level.txt
      reading manifest file 'uvloop.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/.git'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/docs'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/img'
      adding license file 'LICENSE-APACHE'
      adding license file 'LICENSE-MIT'
      writing manifest file 'uvloop.egg-info/SOURCES.txt'
      /usr/local/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'uvloop.handles' as data is deprecated, please list it in `packages`.
          !!
      
      
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'uvloop.handles' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          'uvloop.handles' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'uvloop.handles' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      
      
      !!
      
        check.warn(importable)
      /usr/local/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'uvloop.includes' as data is deprecated, please list it in `packages`.
          !!
      
      
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'uvloop.includes' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          'uvloop.includes' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'uvloop.includes' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      
      
      !!
      
        check.warn(importable)
      copying uvloop/cbhandles.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/cbhandles.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/dns.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/errors.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/loop.c -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/loop.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/loop.pyi -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/loop.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/lru.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/pseudosock.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/py.typed -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/request.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/request.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/server.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/server.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/sslproto.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/sslproto.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      creating build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/async_.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/async_.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/basetransport.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/basetransport.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/check.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/check.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/handle.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/handle.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/idle.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/idle.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/pipe.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/pipe.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/poll.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/poll.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/process.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/process.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/stream.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/stream.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/streamserver.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/streamserver.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/tcp.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/tcp.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/timer.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/timer.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/udp.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/udp.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      creating build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/__init__.py -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/compat.h -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/consts.pxi -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/debug.h -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/debug.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/flowcontrol.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/fork_handler.h -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/python.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/stdlib.pxi -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/system.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/uv.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      running build_ext
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for a thread-safe mkdir -p... /bin/mkdir -p
      checking for gawk... no
      checking for mawk... mawk
      checking whether make sets $(MAKE)... no
      checking whether make supports nested variables... no
      checking build system type... ./config.guess: line 1049: objdump: command not found
      x86_64-pc-linux-gnu
      checking host system type... x86_64-pc-linux-gnu
      checking for gcc... no
      checking for cc... no
      checking for cl.exe... no
      configure: error: in `/tmp/pip-install-56v8y6ss/uvloop_89a56424d8934310a3629fc24d23f6d0/build/libuv-x86_64':
      configure: error: no acceptable C compiler found in $PATH
      See `config.log' for more details
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-56v8y6ss/uvloop_89a56424d8934310a3629fc24d23f6d0/setup.py", line 283, in <module>
          setup(
        File "/usr/local/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
          self.run_command(cmd)
        File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 325, in run
          self.run_command("build")
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 132, in run
          self.run_command(cmd_name)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
          self.build_extensions()
        File "/tmp/pip-install-56v8y6ss/uvloop_89a56424d8934310a3629fc24d23f6d0/setup.py", line 242, in build_extensions
          self.build_libuv()
        File "/tmp/pip-install-56v8y6ss/uvloop_89a56424d8934310a3629fc24d23f6d0/setup.py", line 221, in build_libuv
          subprocess.run(
        File "/usr/local/lib/python3.11/subprocess.py", line 571, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['./configure']' returned non-zero exit status 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for uvloop
  Running setup.py clean for uvloop
  Building wheel for websockets (setup.py): started
  Building wheel for websockets (setup.py): finished with status 'done'
  Created wheel for websockets: filename=websockets-10.3-cp311-cp311-linux_x86_64.whl size=94360 sha256=7a2751b558e856e29ca58c6131e1adc58a1e047b5f720a02d4605f7f48f0afbc
  Stored in directory: /root/.cache/pip/wheels/08/63/ab/79f04b7208539552fcde8b3e00828930a2705c38ef38276125
Successfully built python-multipart websockets
Failed to build httptools uvloop
Installing collected packages: websockets, uvloop, typing_extensions, sniffio, six, PyYAML, python-dotenv, idna, httptools, h11, click, uvicorn, python-multipart, pydantic, anyio, watchfiles, starlette, fastapi
  Running setup.py install for uvloop: started
  Running setup.py install for uvloop: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Running setup.py install for uvloop did not run successfully.
  │ exit code: 1
  ╰─> [198 lines of output]
      running install
      /usr/local/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/_testbase.py -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/_noop.py -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/_version.py -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/__init__.py -> build/lib.linux-x86_64-cpython-311/uvloop
      running egg_info
      writing uvloop.egg-info/PKG-INFO
      writing dependency_links to uvloop.egg-info/dependency_links.txt
      writing requirements to uvloop.egg-info/requires.txt
      writing top-level names to uvloop.egg-info/top_level.txt
      reading manifest file 'uvloop.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/.git'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/docs'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/img'
      adding license file 'LICENSE-APACHE'
      adding license file 'LICENSE-MIT'
      writing manifest file 'uvloop.egg-info/SOURCES.txt'
      /usr/local/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'uvloop.handles' as data is deprecated, please list it in `packages`.
          !!
      
      
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'uvloop.handles' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          'uvloop.handles' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'uvloop.handles' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      
      
      !!
      
        check.warn(importable)
      /usr/local/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'uvloop.includes' as data is deprecated, please list it in `packages`.
          !!
      
      
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'uvloop.includes' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          'uvloop.includes' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'uvloop.includes' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      
      
      !!
      
        check.warn(importable)
      copying uvloop/cbhandles.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/cbhandles.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/dns.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/errors.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/loop.c -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/loop.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/loop.pyi -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/loop.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/lru.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/pseudosock.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/py.typed -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/request.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/request.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/server.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/server.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/sslproto.pxd -> build/lib.linux-x86_64-cpython-311/uvloop
      copying uvloop/sslproto.pyx -> build/lib.linux-x86_64-cpython-311/uvloop
      creating build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/async_.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/async_.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/basetransport.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/basetransport.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/check.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/check.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/handle.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/handle.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/idle.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/idle.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/pipe.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/pipe.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/poll.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/poll.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/process.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/process.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/stream.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/stream.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/streamserver.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/streamserver.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/tcp.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/tcp.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/timer.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/timer.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/udp.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      copying uvloop/handles/udp.pyx -> build/lib.linux-x86_64-cpython-311/uvloop/handles
      creating build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/__init__.py -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/compat.h -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/consts.pxi -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/debug.h -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/debug.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/flowcontrol.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/fork_handler.h -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/python.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/stdlib.pxi -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/system.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      copying uvloop/includes/uv.pxd -> build/lib.linux-x86_64-cpython-311/uvloop/includes
      running build_ext
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for a thread-safe mkdir -p... /bin/mkdir -p
      checking for gawk... no
      checking for mawk... mawk
      checking whether make sets $(MAKE)... no
      checking whether make supports nested variables... no
      checking build system type... ./config.guess: line 1049: objdump: command not found
      x86_64-pc-linux-gnu
      checking host system type... x86_64-pc-linux-gnu
      checking for gcc... no
      checking for cc... no
      checking for cl.exe... no
      configure: error: in `/tmp/pip-install-56v8y6ss/uvloop_89a56424d8934310a3629fc24d23f6d0/build/libuv-x86_64':
      configure: error: no acceptable C compiler found in $PATH
      See `config.log' for more details
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-56v8y6ss/uvloop_89a56424d8934310a3629fc24d23f6d0/setup.py", line 283, in <module>
          setup(
        File "/usr/local/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
          self.run_command(cmd)
        File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.11/site-packages/setuptools/command/install.py", line 68, in run
          return orig.install.run(self)
                 ^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 698, in run
          self.run_command('build')
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 132, in run
          self.run_command(cmd_name)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
          self.build_extensions()
        File "/tmp/pip-install-56v8y6ss/uvloop_89a56424d8934310a3629fc24d23f6d0/setup.py", line 242, in build_extensions
          self.build_libuv()
        File "/tmp/pip-install-56v8y6ss/uvloop_89a56424d8934310a3629fc24d23f6d0/setup.py", line 221, in build_libuv
          subprocess.run(
        File "/usr/local/lib/python3.11/subprocess.py", line 571, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['./configure']' returned non-zero exit status 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> uvloop

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1

Unable to use in electron-md

I get the following error when using this in electron-md. If I use the one hosted online by the wiki, it works fine.

TypeError: Failed to fetch
    at create.encodeATRAC3 (sandbox://static/js/main.2ecbff07.chunk.js:1:89871)
    at async create.export (sandbox://static/js/main.2ecbff07.chunk.js:1:85915)
    at async sandbox://static/js/main.2ecbff07.chunk.js:1:104899

Docker build fails with "cannot move 'ffmpeg-build/.../ffmpeg' to a subdirectory of itself"

Just tried to build the Docker image and got:

$ docker build -t atrac-api .
...

 => ERROR [builder 7/7] RUN mv ffmpeg-build/artifacts/ffmpeg-*-linux-gnu/bin/ffmpeg .                               5.8s
------
 > [builder 7/7] RUN mv ffmpeg-build/artifacts/ffmpeg-*-linux-gnu/bin/ffmpeg .:
#0 0.627 mv: cannot move 'ffmpeg-build/artifacts/ffmpeg-5.1.2-audio-x86_64-linux-gnu/bin/ffmpeg' to a subdirectory of itself, './ffmpeg'
------
Dockerfile:8
--------------------
   6 |     RUN echo "FFMPEG_CONFIGURE_FLAGS+=(--enable-encoder=pcm_s16le --enable-muxer=wav --enable-filter=loudnorm --enable-filter=aresample --enable-filter=replaygain --enable-filter=volume)" >> ffmpeg-build/common.sh
   7 |     RUN ffmpeg-build/build-linux.sh
   8 | >>> RUN mv ffmpeg-build/artifacts/ffmpeg-*-linux-gnu/bin/ffmpeg .
   9 |
  10 |     FROM python:3.11-slim
--------------------
ERROR: failed to solve: process "/bin/sh -c mv ffmpeg-build/artifacts/ffmpeg-*-linux-gnu/bin/ffmpeg ." did not complete successfully: exit code: 1

Add baseurl to environment variables?

Would it be possible to add baseurl as a variable for docker-compose envs? This would allow for path routing in nginx/traefik/etc.

Basically:
https://{FQDN}/{$baseurl}/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.