Will Dlib support python 3.7?

As python 3.7 has been released for long time, will dlib support python 3.7? I tried several ways to install dlib in my conda environment, but none of the online solutions works. Thank you.
My install commands are:  conda install -c menpo dlib python=3.7
The conflict messages are:
Package certifi conflicts for:
python=3.7 -> pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
dlib -> python[version='>=3.5,<3.6.0a0'] -> pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
Package ca-certificates conflicts for:
python=3.7 -> openssl[version='>=1.1.1b,<1.1.2a'] -> ca-certificates
dlib -> python[version='>=3.5,<3.6.0a0'] -> ca-certificates
Package pip conflicts for:
dlib -> python[version='>=3.5,<3.6.0a0'] -> pip
python=3.7 -> pip
Package python conflicts for:
python=3.7
dlib -> python[version='2.7.|3.5.|>=3.5,<3.6.0a0']
dlib -> numpy -> python[version='>=2.7,<2.8.0a0']
Package setuptools conflicts for:
dlib -> python[version='>=3.5,<3.6.0a0'] -> pip -> setuptools
python=3.7 -> pip -> setuptools
Package wheel conflicts for:
dlib -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel
python=3.7 -> pip -> wheel

Dlib should work fine for python 3.7.  Get the dlib code from github and run python setup.py install

I installed dlib on windows for python 3.7 with pip install dlib and it was installed successfully.

Hi raibove,
Could you please walk me through the installation process of dlib for python 3.7?
I have tried many ways to crack it but I couldn't make it.
Thanks in advance

i don't know what happens, i installed Cmake, and windows smk and i still get this error
ERROR: Command errored out with exit status 1: 'd:\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Gonzalo\\AppData\\Local\\Temp\\pip-install-kch32fsc\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Gonzalo\\AppData\\Local\\Temp\\pip-install-kch32fsc\\dlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Gonzalo\AppData\Local\Temp\pip-record-0w_wtkqo\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:Include\dlib' Check the logs for full command output.

I successfully installed dlib 19.8.1 on Python 3.7 for windows 64bit using
https://www.file-upload.com/qsd69ajuqr2i

Getting below error,
Collecting dlib
  Using cached dlib-19.20.0.tar.gz (3.2 MB)
Using legacy setup.py install for dlib, since package 'wheel' is not installed.
Installing collected packages: dlib
    Running setup.py install for dlib ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-install-o6haxzf9/dlib/setup.py'"'"'; __file__='"'"'/private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-install-o6haxzf9/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-record-mgd7jsn1/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/dlib
         cwd: /private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-install-o6haxzf9/dlib/
    Complete output (55 lines):
    running install
    running build
    running build_py
    package init file 'dlib/__init__.py' not found (or not a regular file)
    running build_ext
    Traceback (most recent call last):
      File "/private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-install-o6haxzf9/dlib/setup.py", line 120, in get_cmake_version
        out = subprocess.check_output(['cmake', '--version'])
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 489, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'cmake'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-install-o6haxzf9/dlib/setup.py", line 223, in <module>
        setup(
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-install-o6haxzf9/dlib/setup.py", line 129, in run
        cmake_version = self.get_cmake_version()
      File "/private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-install-o6haxzf9/dlib/setup.py", line 122, in get_cmake_version
        raise RuntimeError("\n*******************************************************************\n" +
    RuntimeError:
    *******************************************************************
     CMake must be installed to build the following extensions: dlib
    *******************************************************************

    ----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-install-o6haxzf9/dlib/setup.py'"'"'; __file__='"'"'/private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-install-o6haxzf9/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/qz/jy_v70tj0792_gq7d947v1pw0000gn/T/pip-record-mgd7jsn1/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/dlib Check the logs for full command output.
Hissains-MacBook-Pro:hello hissain$ sudo pip install dlib
Password:
WARNING: The directory '/Users/hissain/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting dlib
  Downloading dlib-19.20.0.tar.gz (3.2 MB)
     |████████████████████████████████| 3.2 MB 40 kB/s
Using legacy setup.py install for dlib, since package 'wheel' is not installed.
Installing collected packages: dlib
    Running setup.py install for dlib ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-qgvw2vfu/dlib/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-qgvw2vfu/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-8_5bsakx/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/dlib
         cwd: /private/tmp/pip-install-qgvw2vfu/dlib/
    Complete output (55 lines):
    running install
    running build
    running build_py
    package init file 'dlib/__init__.py' not found (or not a regular file)
    running build_ext
    Traceback (most recent call last):
      File "/private/tmp/pip-install-qgvw2vfu/dlib/setup.py", line 120, in get_cmake_version
        out = subprocess.check_output(['cmake', '--version'])
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 489, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'cmake'

    During handling of the above exception, another exception occurred:

How can I resolve it?

Hi hissain,
try installing cmake using pip install cmake, that should help.

Getting below error,

Getting below error, Requirement already satisfied: cmake in d:\program\py\py37\lib\site-packages (3.17.3)     ERROR: Command errored out with exit status 1:
command: 'd:\program\py\py37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py'"'"'; file='"'"'C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\silik\AppData\Local\Temp\pip-record-xmfzpcs4\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\program\py\py37\Include\dlib'
cwd: C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib
Complete output (57 lines):
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=d:\program\py\py37\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\build\lib.win-amd64-3.7 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Generator
    NMake Makefiles

  does not support platform specification, but platform

    x64

  was specified.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/silik/AppData/Local/Temp/pip-install-4arzvqdz/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py", line 261, in <module>
    'Topic :: Software Development',
  File "d:\program\py\py37\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "d:\program\py\py37\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "d:\program\py\py37\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "d:\program\py\py37\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "d:\program\py\py37\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "d:\program\py\py37\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "d:\program\py\py37\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "d:\program\py\py37\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "d:\program\py\py37\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "d:\program\py\py37\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "d:\program\py\py37\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py", line 135, in run
    self.build_extension(ext)
  File "C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py", line 172, in build_extension
    subprocess.check_call(cmake_setup, cwd=build_folder)
  File "d:\program\py\py37\lib\subprocess.py", line 363, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\silik\\AppData\\Local\\Temp\\pip-install-4arzvqdz\\dlib\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\silik\\AppData\\Local\\Temp\\pip-install-4arzvqdz\\dlib\\build\\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=d:\\program\\py\\py37\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\silik\\AppData\\Local\\Temp\\pip-install-4arzvqdz\\dlib\\build\\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
----------------------------------------

ERROR: Command errored out with exit status 1: 'd:\program\py\py37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py'"'"'; file='"'"'C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\silik\AppData\Local\Temp\pip-record-xmfzpcs4\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\program\py\py37\Include\dlib' Check the logs for full command output.

You need to install visual studio so that you can build dlib.
On Wed, Jun 24, 2020 at 11:18 PM Maznikov<EMAIL_ADDRESS>wrote:

Getting below error, Requirement already satisfied: cmake in
d:\program\py\py37\lib\site-packages (3.17.3) ERROR: Command errored out
with exit status 1:
command: 'd:\program\py\py37\python.exe' -u -c 'import sys, setuptools,
tokenize; sys.argv[0] =
'"'"'C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py'"'"';
file='"'"'C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record
'C:\Users\silik\AppData\Local\Temp\pip-record-xmfzpcs4\install-record.txt'
--single-version-externally-managed --compile --install-headers
'd:\program\py\py37\Include\dlib'
cwd: C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib
Complete output (57 lines):
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020,
10:41:24) [MSC v.1900 64 bit (AMD64)]
Invoking CMake setup: 'cmake
C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\tools\python
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\build\lib.win-amd64-3.7
-DPYTHON_EXECUTABLE=d:\program\py\py37\python.exe
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\build\lib.win-amd64-3.7
-A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Generator
NMake Makefiles

does not support platform specification, but platform
x64

was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/silik/AppData/Local/Temp/pip-install-4arzvqdz/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "d:\program\py\py37\lib\site-packages\setuptools_init_.py", line 145, in setup
return distutils.core.setup(**attrs)
File "d:\program\py\py37\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "d:\program\py\py37\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "d:\program\py\py37\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "d:\program\py\py37\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "d:\program\py\py37\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "d:\program\py\py37\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "d:\program\py\py37\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "d:\program\py\py37\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "d:\program\py\py37\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "d:\program\py\py37\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py", line 135, in run
self.build_extension(ext)
File "C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "d:\program\py\py37\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\build\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=d:\program\py\py37\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\build\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
ERROR: Command errored out with exit status 1:
'd:\program\py\py37\python.exe' -u -c 'import sys, setuptools, tokenize;
sys.argv[0] =
'"'"'C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py'"'"';
file='"'"'C:\Users\silik\AppData\Local\Temp\pip-install-4arzvqdz\dlib\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record
'C:\Users\silik\AppData\Local\Temp\pip-record-xmfzpcs4\install-record.txt'
--single-version-externally-managed --compile --install-headers
'd:\program\py\py37\Include\dlib' Check the logs for full command output.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/davisking/dlib/issues/1974#issuecomment-649190200,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPYFR7JUE4UY4AHTSRZIVTRYK6ZJANCNFSM4KFZV7EQ
.

Hi Davisking!
I tried installing dlib in python 3.7 and got this error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\anshi\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"'; file='"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\anshi\AppData\Local\Temp\pip-wheel-2f6wp1cs'
cwd: C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib
Complete output (55 lines):
running bdist_wheel
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=C:\Users\anshi\anaconda3\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Generator
  NMake Makefiles

does not support platform specification, but platform

  x64

was specified.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/anshi/AppData/Local/Temp/pip-install-ml3hq1e3/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "C:\Users\anshi\anaconda3\lib\site-packages\setuptools_init_.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Users\anshi\anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\anshi\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 223, in run
self.run_command('build')
File "C:\Users\anshi\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\anshi\anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\anshi\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 135, in run
self.build_extension(ext)
File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "C:\Users\anshi\anaconda3\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=C:\Users\anshi\anaconda3\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\anshi\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"'; file='"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\anshi\AppData\Local\Temp\pip-record-88girtja\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\anshi\anaconda3\Include\dlib'
cwd: C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib
Complete output (57 lines):
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=C:\Users\anshi\anaconda3\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Generator
    NMake Makefiles

  does not support platform specification, but platform

    x64

  was specified.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/anshi/AppData/Local/Temp/pip-install-ml3hq1e3/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 261, in <module>
    'Topic :: Software Development',
  File "C:\Users\anshi\anaconda3\lib\site-packages\setuptools\__init__.py", line 165, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\anshi\anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\anshi\anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "C:\Users\anshi\anaconda3\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "C:\Users\anshi\anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\anshi\anaconda3\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Users\anshi\anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 135, in run
    self.build_extension(ext)
  File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 172, in build_extension
    subprocess.check_call(cmake_setup, cwd=build_folder)
  File "C:\Users\anshi\anaconda3\lib\subprocess.py", line 363, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\anshi\\AppData\\Local\\Temp\\pip-install-ml3hq1e3\\dlib\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\anshi\\AppData\\Local\\Temp\\pip-install-ml3hq1e3\\dlib\\build\\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=C:\\Users\\anshi\\anaconda3\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\anshi\\AppData\\Local\\Temp\\pip-install-ml3hq1e3\\dlib\\build\\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Users\anshi\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"'; file='"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\anshi\AppData\Local\Temp\pip-record-88girtja\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\anshi\anaconda3\Include\dlib' Check the logs for full command output.
Can you please help me to resolve it?
I have already installed cmake, setuptools and visual studio.
Thanks in advance!

What happens if you use the latest dlib from github?

On Jul 11, 2020, at 12:47 PM, anshikakankane<EMAIL_ADDRESS>wrote:

Hi Davisking!
I tried installing dlib in python 3.7 and got this error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\anshi\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"'; file='"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\anshi\AppData\Local\Temp\pip-wheel-2f6wp1cs'
cwd: C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib
Complete output (55 lines):
running bdist_wheel
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=C:\Users\anshi\anaconda3\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Generator
NMake Makefiles
does not support platform specification, but platform
x64
was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/anshi/AppData/Local/Temp/pip-install-ml3hq1e3/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "C:\Users\anshi\anaconda3\lib\site-packages\setuptools_init_.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Users\anshi\anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\anshi\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 223, in run
self.run_command('build')
File "C:\Users\anshi\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\anshi\anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\anshi\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 135, in run
self.build_extension(ext)
File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "C:\Users\anshi\anaconda3\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=C:\Users\anshi\anaconda3\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\anshi\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"'; file='"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\anshi\AppData\Local\Temp\pip-record-88girtja\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\anshi\anaconda3\Include\dlib'
cwd: C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib
Complete output (57 lines):
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=C:\Users\anshi\anaconda3\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Generator
NMake Makefiles

does not support platform specification, but platform
x64

was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/anshi/AppData/Local/Temp/pip-install-ml3hq1e3/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "C:\Users\anshi\anaconda3\lib\site-packages\setuptools_init_.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Users\anshi\anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\anshi\anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Users\anshi\anaconda3\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\anshi\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\anshi\anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\anshi\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\anshi\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 135, in run
self.build_extension(ext)
File "C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "C:\Users\anshi\anaconda3\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=C:\Users\anshi\anaconda3\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\build\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
ERROR: Command errored out with exit status 1: 'C:\Users\anshi\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"'; file='"'"'C:\Users\anshi\AppData\Local\Temp\pip-install-ml3hq1e3\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\anshi\AppData\Local\Temp\pip-record-88girtja\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\anshi\anaconda3\Include\dlib' Check the logs for full command output.
Can you please help me to resolve it?
I have already installed cmake, setuptools and visual studio.
Thanks in advance!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

It shows error: .whl file is not supported on this platform. Because the latest file I used was cp35.whl type.
My python version is 3.7 and I can't find the dlib-..-cp37-...whl file for this version.

I don’t know what you did. Please get dlib from github. Note there are no whl files on github.

On Jul 11, 2020, at 3:55 PM, anshikakankane<EMAIL_ADDRESS>wrote:

It shows error: .whl file is not supported on this platform. Because the latest file I used was cp35.whl type.
My python version is 3.7 and I can't find the dlib-..-cp37-...whl file for this version.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

I installed dlib on windows for python 3.7 with pip install dlib and it was installed successfully.

What version of Win ?

hi sir, i recently bought an asus laptop with windows 10 and python3.8 version, how can i install dlib because i cant find either any wheel file or i cant install through source. please help me

Try the following whl file for dlib 19.8.1 for Python 3.8 under Windows 64
https://www.file-upload.com/bz98cr81h0lr

@HatFayed
this link is not useful.

Hi hissain, try installing cmake using pip install cmake, that should help.

that doesn't help.


bug fixed in the forward method of LearnedAlibiPositionalBias class

Deleted variables that were not previously removed

@taemincho thanks!


Make it less likely for users to accidentally miss the /WCSim/Construct line in novis.mac/vis.mac

Thanks to @wilking and @cvilelasbu for bringing this issue to our attention. Currently, the /WCSim/Construct line is buried after a bunch of detector configurations, which makes it easy to miss. If a user wishes to change the detector configuration in the macro, but doesn't uncomment out the  /WCSim/Construct line, the new detector configuration will not be properly built. We should either find a way of automatically implementing this line if a new detector configuration is called, or at the very least should find a way to make this line more visible.

Thank you for documenting this! One possible solution would be to always require a user to specify a geometry, rather than have a default geometry (which doesn't behave as intended, anyway, since the PMT charge response is often overwritten later). There was some concern that having the detector geometry be built twice is wasteful, which I agree with, so perhaps the code could be rewritten to never construct a geometry by default, and only construct a single geometry after it is specified in the input macro file.

I would still like a default geometry built.  I want the code to work by default if you don't know how to make changes.  If we can't make this work in one-line (which I think may be the case if I remember correctly) I think there are a few easy things we can do to fix this.  It never used to be a problem and I think the reason it is a problem now is that there is such a separation between the lines.  So, I suggest:

Editing the file so that at the very top where it says to uncomment new geometries below here, it also says the construct line must be uncommented.

At least in vis.mac (but not novis) there are other options before the construct line like the collection efficiency and the QE method. This should be changed.

Probably most importantly.  Every possible option should not be listed here.  Just a few common ones.  People are adding every option to this file when they put code in.  In particular all of the LBNE options should be removed.  If necessary we could make another vis file with possible ones in it for people to look at.

The effect of these changes should be to have a very short section where the first line and the construct line are all visible next to each other.

@eosullivan Can you also add a new issue about including options by including other .mac files like we talked about before?  That is another way to approach this.  If someone wanted another geometry they could do the equivalent of:
#include mygeom.mac

Could someone please clarify - does 'new geometry' mean 'a geometry that isn't SuperK'?

@tdealtry In practice, yes.
But, really what it means is that you have forced WCSim to build a new geometry.  You can always do this (And it could in principle be the same as what you already built).
The main point is that one geometry is built by default when you start.  That is hard coded in the C++ code.  Currently it is set to build SK.  So if you want something else you need to force a new geometry.  After we decide on a a real HK configuration we may set it to that.
Basically we set it to whatever the 'default' or 'most common' configuration is. Aside from the fact that we want there to be a sensible set of defaults you always need some geometry defined when you build a G4 program.
Does that make sense?

Yeah that makes sense. Thanks @cwwalter
Can I recommend adding a line to the .mac file along the lines of:
#/WCSim/Construct # This must be uncommented in order to construct a new detector configuration.
#In practice, this means whenever a /WCSim/WCgeom option is given, this line must follow (uncommented).


Add support for NTLM proxies

Many enterprise customers still use NTLM authentication via proxy.
Could you please consider to add this feature, when you want for enterprise users to assist more?
I can tell me (MSFT employee) the actual name of users...

We've actually considered this a long time ago. Due to certain dependencies we need, there are certain networking limitations we're just stuck with. These limitations are such that working with an NTLM proxy just isn't going to work.

request documentation
Used to request account information from Azure management endpoints. request doesn't support NTLM proxies.

Azure Storage Client Library for Node.js documentation
Used for everything else Azure. Also uses request, so they have the same limitation.

Electron net module
Electron's upgraded alternative to Node's default HTTP/HTTPS modules, which supports NTLM proxies. If we could drop our dependency on Azure Storage Client Library for Node.js, we could switch to this module. But obviously, we can't do that!

Unless some significant improvements have been made in the last few months, it would take some considerable work and time to rework our infrastructure to use modules that can handle NTLM proxies.

In version 1.20 of Storage Explorer, we will be introducing the beginnings of support for NTLM proxies!
This support is coming as part of the addition of a new option for proxy: "Use System Proxy".
The system proxy option will, in short, have Storage Explorer make HTTP requests via the Chromium networking stack. This will enable, among other features, NTLM proxy support. That said, this feature will being in a preview state. Not all of Storage Explorer's features are in a state where they can take advantage of this new feature. We will be continuing to work on that. You can roughly track the progress of that work, with these issues:

https://github.com/microsoft/AzureStorageExplorer/issues/4475
https://github.com/microsoft/AzureStorageExplorer/issues/4474
https://github.com/microsoft/AzureStorageExplorer/issues/4483

Finally, AzCopy does not yet support NTLM proxy. We are working with the AzCopy team to get support there as well. We'll give updates on that effort here: https://github.com/microsoft/AzureStorageExplorer/issues/4553


Delete contacts and grade components

Fixes #268

Codecov Report

Merging #269 into master will increase coverage by 1.40%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #269      +/-   ##
============================================
+ Coverage     25.97%   27.37%   +1.40%
  Complexity      299      299
============================================
  Files           146      135      -11
  Lines          2283     2166     -117
  Branches        226      213      -13
============================================
  Hits            593      593
+ Misses         1643     1526     -117
  Partials         47       47

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/tp/cap5buddy/modules/Module.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...n/java/tp/cap5buddy/storage/JsonAdaptedModule.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05e2e03...24ae646. Read the comment docs.


writing code that cycles infinitely should give TLE on cf test

If i write in my code while(true); it will loop forever and cf test will hang, could you put an option to add time limit on a particular problem(s)?

On Linux, it's possible to change the invocation command to timeout -s9 5s ./a.out. On Windows there's https://stackoverflow.com/questions/30675981/how-to-kill-a-command-after-certain-period-of-time-in-command-prompt-even-if-it .
It isn't a very good idea to set the time limit the same as the problem time limit because the sample test cases are small and the program may run slower in debug mode.

You mean something like this?


coda_read_definitions_fuzzer: Use-of-uninitialized-value in strhash

==234470==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x55c6cc6f38ae in strhash third_party/stcorp_coda/libcoda/hashtable.c:99:5
    #1 0x55c6cc6f1f0b in coda_hashtable_insert_name third_party/stcorp_coda/libcoda/hashtable.c:155:37
    #2 0x55c6cc6f3b70 in coda_hashtable_add_name third_party/stcorp_coda/libcoda/hashtable.c:294:12
    #3 0x55c6cc6f684b in get_entries third_party/stcorp_coda/libcoda/ziparchive.c:287:13
    #4 0x55c6cc6f56a9 in coda_za_open third_party/stcorp_coda/libcoda/ziparchive.c:392:9
    #5 0x55c6cc5b9560 in read_definition_file third_party/stcorp_coda/libcoda/coda-definition-parse.c:4247:10
    #6 0x55c6cc5b9276 in coda_read_definitions third_party/stcorp_coda/libcoda/coda-definition-parse.c:4461:21
    #7 0x55c6cc5744cd in LLVMFuzzerTestOneInput third_party/stcorp_coda/fuzz/coda_read_definitions_fuzzer.cc:19:3

if (read(zf->fd, entry->filename, entry->filename_length) < 0) // <--- allows short read to go forward
{
    zf->handle_error(strerror(errno));
    return -1;
}
entry->filename[entry->filename_length] = '\0';

if (hashtable_add_name(zf->hash_data, entry->filename) != 0)  // <-- msan in here
{
    zf->handle_error("zip file '%s' contains two entries with the same name '%s'", zf->filename,
                     entry->filename);
    return -1;
}

coda_read_definitions_fuzzer.c is currently very limited:
extern "C" {
int coda_read_definitions(const char *definition_path);
}

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  FuzzerTemporaryFile temp_file(data, size);

  coda_init();
  auto done = absl::MakeCleanup([] { coda_done(); });

  coda_read_definitions(temp_file.filename());

  return 0;
}

testcase-5144684351717376.zip

Additional checks implemented in b65b59e314470cc18ce3521f577a243507e172b9

Verified


healthcheck with db status

Couple of changes needed:

The endpoint needs to handle both GET and HEAD methods of HTTP.
There should be a separate HealthcheckService in the application layer, with the implementation in the infrastructure layer.
JSON shouldn't be a part of the service - the endpoint should handle marshalling of the healthcheck's data into JSON.


save_fig is not defined

Hi Aurelien - Great book... I've caught a recurring error that you may be able to help with. In the available code you've provided to supplement the book, you frequently use "save_fig()" after generating a plot. I'd like to use this feature, but it always errors out for me and I've seen quite a few discussion threads on it as well.
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-38-299395e3626e> in <module>()
      1 housing.plot(kind="scatter", x="median_income", y="median_house_value", alpha=0.1)
----> 2 save_fig("income_vs_house_value_scatterplot")

NameError: name 'save_fig' is not defined

Just wondering if we've missed a step somewhere...
As you may be able to surmise, I'm quite new to machine learning, but am thoroughly enjoying this book.

Hi @loewenm,
Thanks for your kind words, I'm glad you are enjoying my book.  :)
The save_fig() function is defined in the first cell of each notebook: just run that cell and the error should go away.  You would typically get the NameError: name 'save_fig' is not defined error if you restart Jupyter (or just the Python kernel) and then go back to the cell you were at without running the previous cells again.  When you want to continue running a notebook after an interruption, you need to run the previous cells again, because the Python kernel has lost all the context.
I hope this helps.  Can you please point me to the discussion threads about this, so I can help them out?  Thanks!
Cheers,
Aurélien

Hi Aurelien,
Thank you for the above. I'm still having this issue though...
I fully realize that I need to restart the kernel and re-run the initial
portion of the section (i.e. all the library imports, etc.) to ensure that
everything is running smoothly as I progress through a chapter... However,
I get this error in every single chapter. Every one!
I am using Spyder instead of Jupyter as I like the interface a little more
and the Variable Explorer window is really helpful. If you would indulge me
for a minute and wouldn't mind running the following code in Spyder please?

import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets
iris = datasets.load_iris()
list(iris.keys())
print(iris.DESCR)
X = iris["data"][:, 3:]  # petal width
y = (iris["target"] == 2).astype(np.int)  # 1 if Iris-Virginica, else 0
from sklearn.linear_model import LogisticRegression
log_reg = LogisticRegression(random_state=42)
log_reg.fit(X, y)
Creates a series that has 1000 datapoints, which sigmoid scale from 0 to 3
X_new = np.linspace(0, 3, 1000).reshape(-1, 1)
Uses log_reg model to predict odds the series is Virginica or not...
y_proba = log_reg.predict_proba(X_new)
plt.plot(X_new, y_proba[:, 1], "g-", linewidth=2, label="Iris-Virginica")
plt.plot(X_new, y_proba[:, 0], "b--", linewidth=2, label="Not
Iris-Virginica")
Prettier chart
decision_boundary = X_new[y_proba[:, 1] >= 0.5][0]
plt.figure(figsize=(8, 3))
plt.plot(X[y==0], y[y==0], "bs")
plt.plot(X[y==1], y[y==1], "g^")
plt.plot([decision_boundary, decision_boundary], [-1, 2], "k:", linewidth=2)
plt.plot(X_new, y_proba[:, 1], "g-", linewidth=2, label="Iris-Virginica")
plt.plot(X_new, y_proba[:, 0], "b--", linewidth=2, label="Not
Iris-Virginica")
plt.text(decision_boundary+0.02, 0.15, "Decision  boundary", fontsize=14,
color="k", ha="center")
plt.arrow(decision_boundary, 0.08, -0.3, 0, head_width=0.05,
head_length=0.1, fc='b', ec='b')
plt.arrow(decision_boundary, 0.92, 0.3, 0, head_width=0.05,
head_length=0.1, fc='g', ec='g')
plt.xlabel("Petal width (cm)", fontsize=14)
plt.ylabel("Probability", fontsize=14)
plt.legend(loc="center left", fontsize=14)
plt.axis([0, 3, -0.02, 1.02])
save_fig("logistic_regression_plot")
plt.show()

Same error as before:

Traceback (most recent call last):
File "", line 16, in
save_fig("logistic_regression_plot")
NameError: name 'save_fig' is not defined

Kind regards,
Michael
On Thu, Jul 6, 2017 at 12:55 PM, Aurélien Geron<EMAIL_ADDRESS>wrote:

Hi @loewenm https://github.com/loewenm,
Thanks for your kind words, I'm glad you are enjoying my book. :)
The save_fig() function is defined in the first cell of each notebook:
just run that cell and the error should go away. You would typically get
the NameError: name 'save_fig' is not defined error if you restart
Jupyter (or just the Python kernel) and then go back to the cell you were
at without running the previous cells again. When you want to continue
running a notebook after an interruption, you need to run the previous
cells again, because the Python kernel has lost all the context.
I hope this helps. Can you please point me to the discussion threads about
this, so I can help them out? Thanks!
Cheers,
Aurélien
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ageron/handson-ml/issues/50#issuecomment-313455693,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASl5NoptZrjsgjhxYlVE-i4msCcdVGE_ks5sLRGZgaJpZM4OOhod
.

--
Signed,
Michael Loewen
<EMAIL_ADDRESS>

Hi @loewenm ,
Sorry for the delay, I missed your message as the issue was closed.  Did you manage to get the code to run in Spyder?  The piece of code you asked me to run does not include the definition of the save_fig() function, so it's normal to get an error saying that the function is undefined.  You need to make sure you have the following function definition at the beginning of your code:
# Where to save the figures
PROJECT_ROOT_DIR = "."
CHAPTER_ID = "fundamentals"

def save_fig(fig_id, tight_layout=True):
    path = os.path.join(PROJECT_ROOT_DIR, "images", CHAPTER_ID, fig_id + ".png")
    print("Saving figure", fig_id)
    if tight_layout:
        plt.tight_layout()
    plt.savefig(path, format='png', dpi=300)

Hi Aurelien - This is super helpful. I haven't tried it out yet, but will
do so shortly.
I didn't realize that save_fig was a procedure that you wrote. Rather I
thought it was part of one of the numpy, pandas, etc libraries; hence the
frustration try to get it to work...
Another thing I wanted to ask you about was your take on Quantum Machine
Learning. I've recently signed up for a startup incubator at the University
of Toronto that is pairing MBA's with compsci/physics PhD's to try and
build a viable QML business. Needless to say, this new tech is blowing my
mind. We're still a few years away from quantum supremacy, but it's
coming... What do you think the most applicable application for QML is?
--
Michael Loewen
<EMAIL_ADDRESS>On Sep 18, 2017 3:42 AM, "Aurélien Geron"<EMAIL_ADDRESS>wrote:

Hi @loewenm https://github.com/loewenm ,
Sorry for the delay, I missed your message as the issue was closed. Did
you manage to get the code to run in Spyder? The piece of code you asked me
to run does not include the definition of the save_fig() function, so
it's normal to get an error saying that the function is undefined. You need
to make sure you have the following function definition at the beginning of
your code:
Where to save the figuresPROJECT_ROOT_DIR = "."CHAPTER_ID = "fundamentals"
def save_fig(fig_id, tight_layout=True):
path = os.path.join(PROJECT_ROOT_DIR, "images", CHAPTER_ID, fig_id + ".png")
print("Saving figure", fig_id)
if tight_layout:
plt.tight_layout()
plt.savefig(path, format='png', dpi=300)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ageron/handson-ml/issues/50#issuecomment-330148412,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASl5NvWEoUmkaz20sSuEbdJSXOYrF73Gks5sjh7YgaJpZM4OOhod
.

I'm glad this helped! Regarding QML, it's definitely fascinating, but I'm afraid I really don't know much about this topic (yet?).  I read an introductory book about Quantum Physics about 10 years ago, and it blew my mind. I was so motivated to learn that I bought an actual university textbook, but I was lost after reading only about 10 pages.  I should try again, perhaps it would be easier now that I've practiced a lot of Linear Algebra.
I'd love to read your thoughts about the topic: what do you think will be the main applications? Is it mostly about faster training time? Exploring huge hyperparameter spaces? Training on quantum data?

Which of these three email addresses goes directly to you? I can send you
an (up-to-date) QML textbook PDF link from researchgate.net by the expert
Peter Wittek.
From what I've read/heard, QML is really good at random number generator
(no root needed), probabilities, vastly superior in computation speed and
power draw (if we can make a room temperature Quantum Machine),
factorization, etc.
Top applications for me would be:

genomics
meteorology
financial markets (prediction and risk analysis)
optimization (portfolios)

There's probably thousands that we don't know of yet because the tech is
too new.
--
Michael Loewen
<EMAIL_ADDRESS>On Sep 18, 2017 3:04 PM, "Aurélien Geron"<EMAIL_ADDRESS>wrote:

I'm glad this helped! Regarding QML, it's definitely fascinating, but I'm
afraid I really don't know much about this topic (yet?). I read an
introductory book about Quantum Physics about 10 years ago, and it blew my
mind. I was so motivated to learn that I bought an actual university
textbook, but I was lost after reading only about 10 pages. I should try
again, perhaps it would be easier now that I've practiced a lot of Linear
Algebra.
I'd love to read your thoughts about the topic: what do you think will be
the main applications? Is it mostly about faster training time? Exploring
huge hyperparameter spaces? Training on quantum data?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ageron/handson-ml/issues/50#issuecomment-330324136,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASl5NnI6zapNLcrJ4kh3NGdzcY5mwGNfks5sjr6rgaJpZM4OOhod
.

I used
plt.savefig("attribute_histogram_plots")
instead of
save_fig("attribute_histogram_plots")
then it works!

Thanks, UlrikeBoehm. It does!

Thanks! save_fig my ...

I used
plt.savefig("attribute_histogram_plots")
instead of
save_fig("attribute_histogram_plots")
then it works!

That was really very help full, it's working rather then what's described above

Hi @Neeraj02a ,
Thanks for your feedback. My save_fig() function is just a thin wrapper for Matplotlib's plt.savefig() function. It just handles the file path (so that each image is saved into the appropriate folder, for example in images/fundamentals if you're running the chapter 1 notebook), and by default it also calls plt.tight_layout() to save some space. Lastly, it ensures the output format is PNG and the resolution is 300 dpi. This is the format expected by O'Reilly: they need print-quality images.
If you get an error when calling save_fig(), it might be because you're missing some of the imports? I added the ones you need in the code example above.
Hope this helps.

Thank you @ageron for such a well explained resolution. I had the same issue but coming here gave me the best insights.


Error : Response has an Error

Hi I wanted to use your node.js version 8 script to connect to Quickbooks using Oauth2 and so far so good except whenever I create the realmID and the AcessToken I keep getting in my terminal (I'm on MAC so unix/bash terminal) Error : Respons has an Error From the json error object.
In details :
Response {
Url: [Object],
rawHeaders: [Array],
body: '{"warnings":null,"intuitObject":null,"fault":{"error":[{"message":"message=AuthorizationFailed; errorCode=003100; statusCode=403","detail":null,"code":"3100","element":null}],"type":"SERVICE"},"report":null,"queryResponse":null,"batchItemResponse":[],"attachableResponse":[],"syncErrorResponse":null,"requestId":null,"time":1543012192555,"status":null,"cdcresponse":[]}',
status: 403,
statusText: 'Forbidden' },
body: '{"warnings":null,"intuitObject":null,"fault":{"error":[{"message":"message=AuthorizationFailed; errorCode=003100; statusCode=403","detail":null,"code":"3100","element":null}],"type":"SERVICE"},"report":null,"queryResponse":null,"batchItemResponse":[],"attachableResponse":[],"syncErrorResponse":null,"requestId":null,"time":1543012192555,"status":null,"cdcresponse":[]}',

I'm getting forbidden 403 errors but my login informations are good.

@Vaatyk ,
Could you check if you are using the correct base url. Looks like using the OAuth-Client you are getting the tokens. And to make any API call, you are getting this error.
For Sandbox companies you need to use sandbox base url :
https://sandbox-quickbooks.api.intuit.com/v3/company/
For Production you need to use production base url : https://quickbooks.api.intuit.com/v3/company/
You can take a look at the sample app here

Hi. Thank you for your reply, I checked my apiCall.php and callback.php and
changed the baseUrl in the DataService object with the sandbox link
you provided and I still get the same error.

On Mon, 26 Nov 2018 at 17:33, abisalehalliprasan<EMAIL_ADDRESS>wrote:

@Vaatyk https://github.com/Vaatyk ,
Could you check if you are using the correct base url. Looks like using
the OAuth-Client you are getting the tokens. And to make any API call, you
are getting this error.
For Sandbox companies you need to use sandbox base url :
https://sandbox-quickbooks.api.intuit.com/v3/company/
For Production you need to use production base url :
https://quickbooks.api.intuit.com/v3/company/
You can take a look at the sample app here
https://github.com/intuit/oauth-jsclient/blob/master/sample/app.js#L120
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/intuit/oauth-jsclient/issues/2#issuecomment-441826386,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AgBO6aklMghcf6JrhWzdg5-y5VGAObqQks5uzGwlgaJpZM4YxK0r
.

Oh I thought this was the php version sorry have a nice day
On Tue, 27 Nov 2018 at 09:31, Vaatik<EMAIL_ADDRESS>wrote:

Hi. Thank you for your reply, I checked my apiCall.php and callback.php
and changed the baseUrl in the DataService object with the sandbox link
you provided and I still get the same error.

On Mon, 26 Nov 2018 at 17:33, abisalehalliprasan<EMAIL_ADDRESS>wrote:

@Vaatyk https://github.com/Vaatyk ,
Could you check if you are using the correct base url. Looks like using
the OAuth-Client you are getting the tokens. And to make any API call, you
are getting this error.
For Sandbox companies you need to use sandbox base url :
https://sandbox-quickbooks.api.intuit.com/v3/company/
For Production you need to use production base url :
https://quickbooks.api.intuit.com/v3/company/
You can take a look at the sample app here
https://github.com/intuit/oauth-jsclient/blob/master/sample/app.js#L120
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/intuit/oauth-jsclient/issues/2#issuecomment-441826386,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AgBO6aklMghcf6JrhWzdg5-y5VGAObqQks5uzGwlgaJpZM4YxK0r
.

Not a problem. Have a good day !

Not a problem . Happy coding !


openjdk tests builds on aix got intermittent error 'Error: Unable to access jarfile jtreg.jar'

openjdk tests builds on aix got intermittent error 'Error: Unable to access jarfile /ramdisk0/build/workspace/openjdk8_hs_openjdktest_ppc64_aix/openjdk-tests/TestConfig/scripts/testKitGen/../../../../jvmtest/openjdk_regression/jtreg/lib/jtreg.jar'
It happened to both hotspot and openj9. And it's not machine-related as same build on same machines may not get the same error.
https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_ppc64_aix/47/console
Suspect is the jtreg jar is not downloaded correctly. However if it's the case ant would give some error information.

Happened again,
https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_ppc64_aix/70/console

We don't have the job history anymore, but the above error seems to be the same as the one that happened internally. The real error in the internal build was the getJtreg  target failed (wget is not installed properly) so that jtreg did not get downloaded.
PR https://github.com/AdoptOpenJDK/openjdk-tests/pull/1512 changes wget to curl.

Close this issue for now as we changed to use curl. Please reopen if the issue still exists.


Documentation: add use case of mentioning a BluSky user from fediverse or respond to one of their posts

I tried guessing and I just @ them like if I was one BluSky (assuming that's how it works). The bridge posted the same thing that I posted on mastodon but somehow the @nicknameFooBar wasn't highlighted and not clickable. So I assume the person wasn't notified of the message.
But the same @nicknameFooBar was highlighted and clickable on another post that I saw on their timeline. So something is missing when I'm using the bridge to be able to mention someone.
Also, how about responding to a post? Like if I have more than 300 chars to say, responses allow to chain posts.

You have to mention their bridged account, which is that same user name but on the @bsky.brid.gy instance.
Mastodon will shorten it to only the first part in the visible post text, but attach the full mention as meta data and deliver it accordingly.

You can just reply with a long post when needed. Bridgy Fed truncates the text and inserts a link to the original post automatically in such cases.
It also inserts the full original (HTML, usually?) representation of the post into the Bluesky record, so alternative Bluesky clients can display the full text immediately.
On that note, @snarfed, iirc, posts can also be plaintext or Markdown internally. Do you have documentation on how that is handled?

On that note, @snarfed, iirc, posts can also be plaintext or Markdown internally. Do you have documentation on how that is handled?

Wait, what? Where? Not in either AS2 or ATProto anywhere that I'm aware of.

On that note, @snarfed, iirc, posts can also be plaintext or Markdown internally. Do you have documentation on how that is handled?

Wait, what? Where? Not in either AS2 or ATProto anywhere that I'm aware of.

I'll have to double-check, maybe it's just for posting through the client API…

Yeah, Peertube actually broadcasts most "content": "…" as "mediaType":"text/markdown" rather than HTML. You can find an example at https://peertube.tv/videos/watch/0b0a87b3-5107-4100-b1c4-ffb65669cca3, but from the source code it seems this doesn't just apply to Videos but also other objects. Notably, it doesn't use contentMap.
Pleroma appears to have a function to render these into HTML when receiving them: https://github.com/pleroma-social/pleroma/blob/f917285b72dbc770be40478e1a55973f29d5db7d/lib/pleroma/web/activity_pub/object_validators/audio_video_validator.ex#L95-L103

mediaType: text/markdown wooowwww. Fun!  I wonder how many other platforms besides Pleroma handle incoming Markdown!

You have to mention their bridged account, which is that same user name but on the @bsky.brid.gy instance.

Nice, thanks :)
Wait, so the other account needs have bridged themselves?
So it's not possible to use bridgy-fed just to mention any BluSky user? Or reply to any post there?

You have to mention their bridged account, which is that same user name but on the @bsky.brid.gy instance.

Nice, thanks :)
Wait, so the other account needs have bridged themselves?
So it's not possible to use bridgy-fed just to mention any BluSky user? Or reply to any post there?

Yes, the system is currently symmetric (and even if a user is opted in, it can be pretty difficult to find their post if you weren't following them when they made it, but that's more a property of ActivityPub).
If they have their Chat open to everyone (which is not the default on Bluesky), you can Mention-only their ATProto handle (as shown on Bluesky) to<EMAIL_ADDRESS>to request that they opt into the bridge on their end. They're only ever sent one such request, though, afaik.
Also note that your replies must be Public to be bridged to ATProto. I think the relevant issue to loosen that a little is #1036.
(I think there's less of a discovery mismatch there now that Bluesky is reducing the visibility of replies in feeds if the viewer doesn't also follow the OP in that conversation.)

Definitely a good idea to mention this in the docs, I've done that. Thanks for the nudge!


Model content should include top-level text nodes

The Inline Content example (and others) are actually wrong at the moment. E.g.
Show

		Inline content goes here...

JS$(".inline").modaal();

This is because this line in create_basic:
content = target.children().clone(true,true);
Should be:
content = target.contents().clone(true,true);
Otherwise we're not grabbing top-level text nodes. Need to review the other modal creation methods for the same issue too.
Until this is fixed, an example like the above will show an empty modal. You can get around that by wrapping "Inline content goes here..." with an element. E.g. div, span, p

A fix has been just been rolled out in the latest release for this issue.


Quick Start example fails with "query.data is undefined"

Describe the bug
Totally new to React Query.
In a fresh React 16 app, created with create-react-app I followed the "Quick Start" - https://react-query.tanstack.com/quick-start
It imports getTodos and postTodo without providing implementations.  Fine - although this could do with some explanation in the docs.  I wrote some dummy query functions, just to get something to play with.
The app fails to render because - I discovered, after reading https://www.neldeles.com/blog/posts/handling-undefined-in-react-query - on first render cycle, the data does not exist yet.
The Quick Start code doesn't handle this.  Instead it throws Uncaught TypeError: query.data is undefined
Your minimal, reproducible example
see "steps to reproduce"
Steps to reproduce
let todos = [{ id: new Date(), title: "foo" }];

const getTodos = function () {
  return todos;
};

const postTodo = async (todo) => {
  todos.push(todo);
  return todos;
};

Expected behavior
As a user I expected to see a working page.  Instead I had to edit the code provided by the quick start example.  The following works (crucially, I have had to handle .isLoading and .isError)
function Todos() {
  // Access the client
  const queryClient = useQueryClient();

  // Queries
  const query = useQuery("todos", getTodos);

  // Mutations
  const mutation = useMutation(postTodo, {
    onSuccess: () => {
      // Invalidate and refetch
      queryClient.invalidateQueries("todos");
    },
  });

  if (query.isLoading) {
    return Loading...;
  }

  if (query.isError) {
    return Error: {query.error.message};
  }

  return (

        {query.data.map((todo) => (

{todo.title}

        ))}

      <button
        onClick={() => {
          mutation.mutate({
            id: Date.now(),
            title: "Do Laundry",
          });
        }}
      >
        Add Todo
      </button>

  );
}

How often does this bug happen?
No response
Screenshots or Videos
No response
Platform
macOS Firefox
react-query version
v3.34.19
TypeScript version
No response
Additional context
No response

would you like to contribute a fix? could also just be:
- query.data.map
+ query.data?.map

we're going into loading / error states a lot in the other parts of the docs

Sure, yes, I'd like to try and submit a pull request.
How about I include:

enough imports for the whole thing to work as index.js in a freshly-created app using create-react-app
basic, inline implementations of getTodos and postTodo, with comments explaining that they should talk to a server, for a real implementation?

Then, newcomers would be able to inspect and use a working example by just copying and pasting into index.js.  I think this would improve the learning curve and would only be a few lines of code different from what's already there

fixed with: c08c0a1cd304a7e42e792d1d91fb3da7a84b4704


Automated end-to-end testing suite

Is your feature request related to a problem? Please describe.
Currently most of the matrix config testing is done manually so this would be good to automate for quality, consistency, and stability.
Describe the solution you would like
AC:

[ ] A helm install and upgrade matrix-style automated tests suite is run on pull requests
[ ] A helm install and upgrade matrix-style automated tests suite is run on master builds

@sgnn7 how does this differ from the KinD actions tests we have now?

KinD is a way to test, this issue is about what we test. More specifically it's about the lack of permutations of settings that we test automatically.


Broad ID to MOA Discrepancy

Hello @gwaygenomics
I noticed that there is a discrepancy on some mappings from Broad ID to MOA.
For instance in repurposing_info_long.tsv, the Broad ID: BRD-K66035042-001-10-1 maps to the MOA: mucolytic agent.
While in repurposing_info_external_moa_map_resolved.tsv, the same Broad ID maps to the MOA: diuretic. Which .tsv file is correct? Thank you!

We curated all CLUE metadata versions and, IIRC (details are in this repo), we used the latest version if there were ID collisions. Can you check if this explains the discrepancy?

I see, in this script line 545: https://github.com/broadinstitute/lincs-cell-painting/blob/f865c796757326dcc377e30dc5b11b5ae392a98b/metadata/moa/scripts/nbconverted/3.align-moa.py#L545 I interpret this as saying that repurposing_info_external_moa_map_resolved.tsv is the most recent and up to date, is this true? Thanks!


All mouse interaction is lagging

Type: Bug
All mouse interaction with visual studio is lagging and delayed. I don't know what's causing it, but it seems to get worse as the project I'm working on gets larger. Highlighting, clicking to move cursor, and even resizing the application window all take several seconds to execute. Keyboard input is normal. I have tried disabling my extensions, but it doesn't make a difference.
VS Code version: Code 1.70.2 (Universal) (e4503b30fc78200f846c62cf8091b76ff5547662, 2022-08-16T05:36:37.829Z)
OS version: Darwin arm64 23.4.0
Modes:

System Info

Item
Value

CPUs
Apple M2 (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
24.00GB (0.14GB free)

Process Argv
--crash-reporter-id 59000ac8-1a31-4c33-a320-a025774d5d95

Screen Reader
no

VM
0%

Extensions (24)

Extension
Author (truncated)
Version

vscode-eslint
dba
2.4.4

prettier-vscode
esb
10.4.0

vscode-graphql
Gra
0.11.0

vscode-graphql-syntax
Gra
1.3.6

vscode-docker
ms-
1.23.3

csharp
ms-
2.0.328

vscode-dotnet-runtime
ms-
1.5.0

python
ms-
2022.16.1

vscode-pylance
ms-
2023.1.10

jupyter
ms-
2022.7.1102252217

jupyter-keymap
ms-
1.1.0

jupyter-renderers
ms-
1.0.9

sqltools
mtx
0.26.0

java
red
1.15.0

LiveServer
rit
5.7.9

polaris-for-vscode
Sho
0.9.8

shopify-liquid
sis
2.3.0

intellicode-api-usage-examples
Vis
0.2.8

vscodeintellicode
Vis
1.2.30

vscode-java-debug
vsc
0.49.0

vscode-java-dependency
vsc
0.21.2

vscode-java-pack
vsc
0.26.0

vscode-java-test
vsc
0.40.1

vscode-maven
vsc
0.40.4

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
bdiig495:31013172
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
legacy_priority:31082724

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.91.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!


Log spamming issue with 1.1.0

I just tried updating to 1.1.0 (while in the process of testing to make sure the deadlock issue was resolved). For some reason on this version (and not on 1.0.8) as soon as I start my server I start getting these same two messages dumped into my development.log and to stdout over and over. Hard to tell how many of these there are, but it's in the order of thousands to tens of thousands of these lines per second:

17:10:52 web.1  | (silenced): "log/development.log"
17:10:52 web.1  | inotify: log/development.log ([:modify])

I'm guessing this might be some issue specific to my project's setup, but I'm not sure what config might be relevant. Any ideas?

Hey @trappar, sorry you are running into more issues.
So by the looks of it I'd guess that what is happening is that the Listen gem is watching the log directory, and also logging changes to the log directory, resulting in an infinite loop.
Quite why this is happening I'm not so sure. There have been some changes to logging in 1.1.0 which could be a factor here but really I don't think your log directory should not be being watched for changes regardless.
While I try to dig a bit deeper to see what is going on you can try the following in your app config:
config.lookbook.log_use_rails_logger = false

This should mean all Lookbook log messages are sent to stdout and not to whatever Rails logger you have configured which might avoid the loop being triggered.
Lookbook should only watch your components directory and your component previews directory for changes (unless you have specified additional paths to watch). If you are using ActiveSupport::EventedFileUpdateChecker as the file watcher in your app then a larger set of directories will be being watched but I haven't been able to find out anywhere if that includes the log directory - I would assume not but it may be the case.
If you have a chance to help validate this, in the top right corner of the Lookbook UI is a little ? icon - if you click on that and then the 'copy debug data' link it should give you a JSON dump of resolved config settings. there should be an array of listen_paths in there somewhere that should look something like this:
{
  "listen_paths": [
      "/Users/username/path/to/my-app/test/components/previews",
      "/Users/username/path/to/my-app/app/components"
  ]
}

If for some reason any of the paths in there are to the root of your app or anywhere unexpected then let me know.
Logging has been a constant pain in Lookbook due to the wide range of possible parent app configurations, but is something I'm going to try to focus on simplifying/improving as soon as I can. And if I can find anything that might be causing your issue in the meantime I'll get a quick fix out as soon as I can.

Turns out it was my fault. I had added a listen path that ended up evaluating to nil, which was somehow being transformed into the root directory of my project.
So this:
config.lookbook.listen_paths += [nil]

Resulted in:
{
    "listen_paths": [
      "/workspaces/project",
      "/workspaces/project/spec/components/previews",
      "/workspaces/project/app/components"
    ],
}

This could probably be prevented by changing the way that normalize_paths works here: https://github.com/allmarkedup/lookbook/blob/e323fc4fd87eb84dacb49bc4d578549ded7cc155/lib/lookbook/config.rb#L258-L264
I think this would do it:
def normalize_paths(paths)
  paths.reject!(&:blank?).map! do |path|
    full_path = absolute_path(path)
    full_path if Dir.exist?(full_path)
  end.compact!
  paths
end

Though that would also prevent the valid relative path "" from being transformed into the root path... (is that something that would even be a good idea to support...?)
Maybe &:nil? would be safer?
Regardless, I've got everything working now on my end. I'll leave it up to you if you want to fix this in the code here.

@trappar thanks for the update and I'm glad you've got it sorted - Lookbook should definitely be guarding against that possibility so I'll add in a check to make sure something similar doesn't catch anyone else out. I'm just refactoring all the config handling anyway so will include it in that bit of work.
FWIW I'm also removing the overriding of the Listen logger - that should be left for the parent application to handle if required as most of the time I don't think it's useful to have logs filling up with file change info. That change will be in v1.1.1 (the config changes will come later).
Thanks again for getting back to me on this, I'll close this issue down now 👍


Manage Team

Hi, We are school have Teachers and Students, i try found permission option to not let the students or teachers to create team . can please assisst.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 20423b44-629b-1bee-280c-fb55680cd33e
Version Independent ID: a60f6a48-89d7-98b6-4245-4be171fd06fd
Content: Assign team owners and members in Microsoft Teams - Microsoft Teams
Content Source: Teams/assign-roles-permissions.md
Service: msteams
GitHub Login: @LolaJacobsen
Microsoft Alias: lolaj

@dailywake thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


How to use LocalStorage in Island component

I'm trying to use localStorage in a island component but I get Deno not found error.
For example:
const TodoIsland = async () => {
  let storedTodos: TodoStore = {data: []};

  const getTodosFromLocalStorage = await localStorage.getItem('todoStore');
  if (getTodosFromLocalStorage) storedTodos =  JSON.parse(getTodosFromLocalStorage);

  todoStore.data = storedTodos.data;

  return (

TODO List

  );
};

Error:

Before I start, I should point a few things out:

You say this is an "island component" but in this code snippet you aren't default exporting anything. Please read the docs on this one: https://fresh.deno.dev/docs/concepts/islands
Your component is inside an async function which is not allowed. Please read the docs on data fetching: https://fresh.deno.dev/docs/getting-started/fetching-data
You don't even need to be using async/await in the first place because localStorage is a synchronous api. Removing await and async should fix a whole load of problems.

To get to the meat of your question, "how do I use local storage in an island". It's rather unclear what you are trying to do here. Are you trying to use Deno's localStorage api or the browser's?
If you want to use the browser's we can use preact's useState and useEffect hooks:
export default function TodoIsland () {
  let [todos, setTodos] = useState<TodoStore>({data: []});

  useEffect(()=>{
    const getTodosFromLocalStorage = localStorage.getItem('todoStore');
    if (getTodosFromLocalStorage) {
      setTodos(JSON.parse(getTodosFromLocalStorage));
    }
  }, [])

  return (

TODO List

  );
};

If for some reason we wanted to use Deno's localStorage, we could instead do the data fetching as demonstrated in the link I posted earlier.
I recommend reading up on hooks in general. React's website is a decent source for this. i.e https://reactjs.org/docs/hooks-effect.html
Hope that answers your question!

@lino-levan  Thanks for the response.

I was exporting the Island component, but did not add that line in the above code.

const TodoIsland () => {
  let [todos, setTodos] = useState<TodoStore>({data: []});

  useEffect(()=>{
    const getTodosFromLocalStorage = localStorage.getItem('todoStore');
    if (getTodosFromLocalStorage) {
      setTodos(JSON.parse(getTodosFromLocalStorage));
    }
  }, [])

  return (

TODO List

  );
};

export default TodoApp;

Thanks for pointing out the async and await, I removed it.

I tried your example it worked. But I think the reason I was getting that  error is not because of localStorage. It's because I was using the class-transformer library and using plainToInstance method.
Below is the  complete Island Component code which is throwing the error. If you are still interested to check the error. But right now I resolved it by removing class-transformer library.
// import 'reflect-metadata';
import { useEffect, useRef } from "preact/hooks";
import { instanceToPlain, plainToInstance } from "class-transformer";
import autoAnimate from "@formkit/auto-animate";
import { match } from "ts-pattern";
import { proxy, subscribe, useSnapshot } from "valtio";
import { Header } from "../components/layout/header.tsx";

type Status = "pending" | "completed";
type Filter = Status | "all";

abstract class BaseStore {
  abstract data: any[];

  create = (description: string) => {
    this.data.push({
      description,
      status: "pending",
      id: Date.now(),
    });
  };

  delete = (index: number) => {
    console.log(this.data);
    this.data.splice(index, 1);
  };
}
class Todo {
  description!: string;
  status!: Status;
  id!: number;
}

class TodoStore extends BaseStore {

  constructor(storedData: BaseStore) {
    super();
    this.data = storedData?.data ?? [];
  }

  filter = "all";
  data: Todo[] = [];
}

let todoStoreData;
const localData = localStorage.getItem('todoStore');
if (localData) todoStoreData = JSON.parse(localData);
// console.log("localData: ", new TodoStore(todoStoreData));

export const todoStore = proxy<TodoStore>(new TodoStore(todoStoreData ?? {}));

const createData = (description: string) => {
  todoStore.data.push({
    description,
    status: "pending",
    id: Date.now(),
  });
};

const deleteData = (index: number) => {
  todoStore.data.splice(index, 1);
};

const toggleDone = (index: number, currentStatus: Status) => {
  const nextStatus = currentStatus === "pending" ? "completed" : "pending";
  todoStore.data[index].status = nextStatus;
};

const setFilter = (filter: Filter) => {
  todoStore.filter = filter;
};

const filterValues: Filter[] = ["all", "pending", "completed"];

const Filters = () => {
  const snap = useSnapshot(todoStore);
  return (

      {filterValues.map((filter) => (
        <>
          <input
            name="filter"
            type="radio"
            value={filter}
            checked={snap.filter === filter}
            onChange={() => setFilter(filter)}
          />
          {filter}
        </>
      ))}

  );
};

const Todos = () => {
  const todoStoreSnapshot = useSnapshot(todoStore);
  const parent = useRef(null);

  useEffect(() => {
    parent.current && autoAnimate(parent.current);
  }, [parent]);

  return (

      {todoStoreSnapshot.data
        .filter(({ status }) =>
          status === todoStoreSnapshot.filter ||
          todoStoreSnapshot.filter === "all"
        )
        .map(({ description, status, id }, index) => {
          return (

               toggleDone(index, status)}
              >
                {description}

              <button className="remove" onClick={() => deleteData(index)}>
                x
              </button>

          );
        })}

  );
};

const CreateTodo = () => {
  const inputRef = useRef<HTMLInputElement>(null);

  const onEnter = (e: KeyboardEvent) => {
    match(e.key)
      .with("Enter", () => {
        createData(inputRef.current?.value ?? "");
      })
      .otherwise(() => null);
  };

  return (

      <input
        style="width: 90vw;"
        name="description"
        type="text"
        minLength={2}
        ref={inputRef}
        onKeyUp={onEnter}
      />
      <button
        style="margin:0 var(--size-2)"
        className="add"
        onClick={() => createData(inputRef.current?.value ?? "")}
      >
        Add new
      </button>

  );
};

const TodoApp = () => {
  const todoStoreSnapshot = useSnapshot(todoStore);

  let storedTodos: TodoStore = plainToInstance(TodoStore, {data: []});

  useEffect(() => {
    const getTodosFromLocalStorage = localStorage.setItem('todoStore', JSON.stringify(todoStoreSnapshot));

  }, [todoStoreSnapshot.data])

  return (

            To-do List{" "}

              ✏

          <Filters />
          <Todos />

          <CreateTodo />

  );
};

export default TodoApp;

Closing this issue as the issue was not related to localStorage.

I had a similar problem but solved it by using useEffect.
Thank you very much.

Before I start, I should point a few things out:
* You say this is an "island component" but in this code snippet you aren't default exporting anything. Please read the docs on this one: https://fresh.deno.dev/docs/concepts/islands

* Your component is inside an async function which is not allowed. Please read the docs on data fetching: https://fresh.deno.dev/docs/getting-started/fetching-data

* You don't even need to be using async/await in the first place because localStorage is a synchronous api. Removing `await` and `async` should fix a whole load of problems.

To get to the meat of your question, "how do I use local storage in an island". It's rather unclear what you are trying to do here. Are you trying to use Deno's localStorage api or the browser's?
If you want to use the browser's we can use preact's useState and useEffect hooks:
export default function TodoIsland () {
  let [todos, setTodos] = useState<TodoStore>({data: []});

  useEffect(()=>{
    const getTodosFromLocalStorage = localStorage.getItem('todoStore');
    if (getTodosFromLocalStorage) {
      setTodos(JSON.parse(getTodosFromLocalStorage));
    }
  }, [])

  return (

TODO List

  );
};

If for some reason we wanted to use Deno's localStorage, we could instead do the data fetching as demonstrated in the link I posted earlier.
I recommend reading up on hooks in general. React's website is a decent source for this. i.e https://reactjs.org/docs/hooks-effect.html
Hope that answers your question!

If I want to get the browser apis how should I do it? I want to get the current pathname but I get an error when calling window.location.pathname but it doesn't work

If I want to get the browser apis how should I do it? I want to get the current pathname but I get an error when calling window.location.pathname but it doesn't work

You have a few options in your case. You don't actually need an island to get the pathname of the request, you could just use the req object in the handler. I would recommend reading up on https://fresh.deno.dev/docs/getting-started/custom-handlers and https://fresh.deno.dev/docs/getting-started/fetching-data.
In the case where you really do want this to run in the browser, you could use useEffect or fresh's IS_BROWSER (in an island). Something like:
import { IS_BROWSER } from "$fresh/runtime.ts";

export default function Island() {
    if(IS_BROWSER) {
        console.log(window.location.pathname)
    }
}

I am getting the same error

is it possible that the island is running in the browser context therefore Deno is not defined?


Refactor samples

Today we have only three samples. We need samples more focused in specific functionalities

For Kafka projects an sample of enterprise style configuration (dev, staging, and production configuration for brokers/bootstrap, not just hard-coded "localhost:5092").
Other possible candidates for config: # workers, batch size, batch wait seconds, etc.  I'm seeing the same things set via most samples and readme code blocks.
P.S. I've noticed lack of config opinions across many Kafka dotnet OSS, including Confluent.  Any reasons why?  Or is it just "separation of duties"?  Most other enterprise offerings for dotnet have out-of-box FooOptions that can be bound and used by app code, any interest in offering that for Kafka dotnet?

Hi @yzorg, thanks for the feedback!
We intend to create a more enterprise sample, getting the values from a config file and having different environments, like a real application.
About the config values. It is more a "separation of duties", as you said. It will depend on the application, what the application does, how many instances the app has, the CPU and RAM resources each instance has, which database is used (or if a database is used) and so on. It is important to understand what each config does, choose some values as a baseline and change them to find the most optimized values for each case.


Issue/9386 fix docs links

Issue
https://github.com/gravitee-io/issues/issues/9386
https://gravitee.atlassian.net/browse/APIM-3370
Description
Doc links updated to new docs site where relevant. Exceptions are when the links point to specific versions of the docs e.g. related to version migrations.

Thanks for this 1st contribution @jmcx! 🎉
In your next PR could you add the Jira issue in addition to the GitHub issue to ensure it will be part of the changelog of the next versions :)

Thanks Gaetan 🙏


To convert the Model to TorchScript and Inferencing in C++

Hi @erikwijmans ,
Have you tried to convert the pointnet2 model you wrote to Torch script for inferencing in C++?
I've met some issues. One of the issues is about the attribute 'npoint' in _PointnetSAModuleBase class.
class _PointnetSAModuleBase(torch.jit.ScriptModule):
    # __constants__ = ['npoint']

    def __init__(self):
        super(_PointnetSAModuleBase, self).__init__()
        # self.register_buffer('npoint', None)
        self.npoint = None
        self.groupers = None
        self.mlps = None

    @torch.jit.script_method
    def forward(self, xyz, features=None):

It throws out a runtime error:
RuntimeError:
attribute 'npoint' of type 'int' is not usable in a script method (did you forget to add it __constants__?):
...
            pointnet2_utils.gather_operation(
                xyz_flipped, pointnet2_utils.furthest_point_sample(xyz, self.npoint)
            )
            .transpose(1, 2)
            .contiguous()
            if self.npoint is not None
               ~~~~~~~~~~~ <--- HERE
            else None
        )
...

I tried to put __constants__ = ['npoint'] one line before the def __init__(self):. However, that doesn't work. npoint should be a variable and its default value is None and could be assigned to int eventually.
Do you have any idea how to fix this? Thanks in advance!

I haven't tried torchscript for this repo and I have no idea how c++ extensions interact with torchscript.  For npoint, you can try annotating as Optional[int] to see if that makes torchscript happy.

@jb892 Do you convert to torchscript successfully ? I meet the similar questions in this process...

@doublexxking Nope, I failed to do so. But I rewrite the whole network manually by caffe2 and load weights from a trained PyTorch model. It works perfectly for me. I hope it helps!


Correction for raw affiliation Florida International University Miami, FL, USA; Gewerbestrasse; St. Xavier's University Kolkata, India; Switzerland; Texas State University San Marcos, TX, USA

Correction needed for raw affiliation Florida International University Miami, FL, USA; Gewerbestrasse; St. Xavier's University Kolkata, India; Switzerland; Texas State University San Marcos, TX, USA
raw_affiliation_name: Florida International University Miami, FL, USA; Gewerbestrasse; St. Xavier's University Kolkata, India; Switzerland; Texas State University San Marcos, TX, USA
new_rors: 05h9q1g27;008kngs41;02gz6gg07
previous_rors: 05h9q1g27;039543c28;02gz6gg07
works_examples: W4285284887
contact: bc55d4add72e6deac993717e982dedba:abc8621e @ ourresearch.org

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.