Issue #6 - support for custom headers

Hi @cp79shark. I have done two small additions to your code to support my use case described in issue #6. First I have added a dictionary for custom headers to the settings class.  Later on, in PdfConvert class, I iterate through the dictionary object to create additional options for WkHtmlToPdf tool. I have used this solution for the authorization header to pass a bearer token together with my request and it works perfectly fine. I have tested it with other headers types as well, and also tested adding multiple headers at the same time.
This is an example of using it:
settings.CustomHeaders.Add("Authorization", $"Bearer {accessToken}");

Hi @bartek4c, this was meant to be available via CustomWkHtmlPageArgs (string) on PdfConversionSettings (however, that is indeed broken for this usage). But I agree it could be better than a string. I really need to just go ahead and wrap up Page, Cover, Header, Footer, Outline, and TOC in their own configuration objects, but this was supposed to be a "simple" wrapper, heh. You're placing this collection of config options as if they are Global options, not a Page, Header, Footer, etc Option. And while that works for custom header, it might not work or have the desired effect for all usage scenarios. For example, having a custom header that is different for two pages instead of forcing that header for all pages (how you have it).
I just did a release for the day job, so please give me a couple days and I'll work up something more complete to map all the options.

Hi @cp79shark,. I think we are talking about two different things here. You mean the html args while I mean the HTTP headers which have nothing to do with html. There is a good collection of custom headers which you might wish to pass with your request, hence the dictionary object (examples here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers). In my case I had to pass the Authorization header to pass a bearer token. Here is another example of use https://stackoverflow.com/questions/20522933/add-a-header-to-wkhtmltoimage. Hope it makes sense

Ah ok. That probably makes more sense and makes the solution more flexible. Thanks for the feedback. My changes seem to be working for me for now, so I'm looking forward to see your implementation whenever it comes.


Brownie installation on macOS failing

I tried to install brownie using pipx but it failed on macOS. Then I installed using using pip install eth-brownie. Installation seems to be successful however when I start brownie I get below error. Please note I am using a M1 mac.
ImportError: dlopen(/Users/sabbir/Solidity/smart_contract_venv/lib/python3.8/site-packages/regex/_regex.cpython-38-darwin.so, 0x0002): tried: '/Users/sabbir/Solidity/smart_contract_venv/lib/python3.8/site-packages/regex/_regex.cpython-38-darwin.so' (code signature in <999D73A8-1E7A-391A-B219-191ECB5B4270> '/Users/sabbir/Solidity/smart_contract_venv/lib/python3.8/site-packages/regex/_regex.cpython-38-darwin.so' not valid for use in process: Trying to load an unsigned library), '/usr/local/lib/_regex.cpython-38-darwin.so' (no such file), '/usr/lib/_regex.cpython-38-darwin.so' (no such file)

pip install regex==2021.10.21  seems to have resolved the issue.  source: https://github.com/psf/black/issues/2524


[BUG] Sign Up page issue

Description
The "Sign Up" page UI is messed up, I want to Fixed this issue properly.
@YadavAkhileshh  please assign me this task.
https://github.com/user-attachments/assets/812554d6-cd83-42e9-9cbc-b7ee2bf9586f
Screenshots
No response
Any additional information?
No response
What browser are you seeing the problem on?
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[X] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

@YadavAkhileshh


BaseInputFilter::populate() calls resetValue() for missing arrayinputs

hasValue returns true for ArrayInputs whether or not a value was provided via InputFilter::setData(). This can't be the expected behavior of this function.
However, i had to refactor the existing test BaseInputFilterTest::testPopulateSupportsArrayInputEvenIfDataMissing. I don't know the implications regarding BC because neither the docblock nor the commit message provided a useful use-case for this test-method.
Feedback is very welcome.
Thank you for considering my pull request.

Merged for next bugfix. I don't consider this need to be backported to LTS
/cc  @weierophinney


NotLoggedInException

After new checkout of dev branch i get this cant login message.
I'm using the lon, lat string..
Please Help me.. Cant developing,

what's your location? It's sometimes due to bad location syntax.

Same problem here, tried both PTC and google auth, the bot was working fine last night

[22:34:43]  PokemonGO Bot v1.0
[22:34:43]  Configuration initialized
2016-07-31 22:34:43,671 [pgoapi.pgoapi] [ INFO] Create new request...
2016-07-31 22:34:43,671 [pgoapi.pgoapi] [ INFO] Adding 'GET_INVENTORY' to RPC request
2016-07-31 22:34:43,671 [pgoapi.pgoapi] [ INFO] Adding 'GET_PLAYER' to RPC request
[22:34:43]  Not logged in!
Traceback (most recent call last):
File "pokecli.py", line 465, in
main()
File "pokecli.py", line 81, in main
report_summary(bot)
File "pokecli.py", line 89, in report_summary
metrics.capture_stats()
File "C:\PokemonGo-Bot\pokemongo_bot\metrics.py", line 75, in capture_stats
response_dict = self.bot.api.call()
File "C:\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 57, in call
if not self._can_call():
File "C:\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 29, in _can_call
raise NotLoggedInException()
pgoapi.exceptions.NotLoggedInException

I have code fix on my fork, but not yet make a Pull Request

i faced with same error msg after bot running 1hr or more
this is my location config
"location": "-33.857783, 151.215069",

Simple fix : https://github.com/showcheap/PokemonGo-Bot/commit/6350379dd10e9a8b23f0a8dd63cde68b2ecb01d5


Use thiserror instead of anyhow

Solves #26

Codecov Report

Merging #30 (4637133) into main (a3a9eb1) will decrease coverage by 0.13%.
The diff coverage is 23.40%.

@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
- Coverage   19.35%   19.21%   -0.14%
==========================================
  Files          11       11
  Lines         868      869       +1
  Branches      466      455      -11
==========================================
- Hits          168      167       -1
- Misses        358      375      +17
+ Partials      342      327      -15

@saschagrunert PTAL

@saschagrunert Done


Unknown setting 'producer_name' specified for plugin 'pulsar'

When using plugins, logstash can only be started without filling in producer_name

It's cause this plugin hasn't had a release since mid 2021. I'd recommend looking at the tag for the release if you want to use that version, otherwise it currently requires building yourself.


"make" problem

hello.
I would appreciate it if you tell me how to solve it.

mkdir build
==================================================================================
cd build
==================================================================================
cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX17
-- Performing Test COMPILER_SUPPORTS_CXX17 - Success
-- Found OpenCV: /usr/local (found version "4.4.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/codes/cpp/fisheyeStitcher/build
==================================================================================
make
Scanning dependencies of target stitcher
[ 25%] Building CXX object CMakeFiles/stitcher.dir/src/fisheye_stitcher.cpp.o
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp: In member function ‘cv::Mat stitcher::FisheyeStitcher::deform(const cv::Mat&)’:
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:181:51: error: ‘CV_INTER_LINEAR’ was not declared in this scope
cv::remap(src, dst, m_mls_map_x, m_mls_map_y, CV_INTER_LINEAR,
^~~~~~~~~~~~~~~
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:181:51: note: suggested alternative: ‘CV_INLINE’
cv::remap(src, dst, m_mls_map_x, m_mls_map_y, CV_INTER_LINEAR,
^~~~~~~~~~~~~~~
CV_INLINE
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp: In member function ‘void stitcher::FisheyeStitcher::createBlendMask()’:
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:334:64: error: ‘CV_INTER_LINEAR’ was not declared in this scope
cv::remap(ring_mask, ring_mask_unwarped, m_map_x, m_map_y, CV_INTER_LINEAR,
^~~~~~~~~~~~~~~
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:334:64: note: suggested alternative: ‘CV_INLINE’
cv::remap(ring_mask, ring_mask_unwarped, m_map_x, m_map_y, CV_INTER_LINEAR,
^~~~~~~~~~~~~~~
CV_INLINE
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp: In member function ‘cv::Point2f stitcher::FisheyeStitcher::findMatchLoc(const cv::Mat&, const cv::Mat&, const string&, bool)’:
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:480:24: error: ‘CV_TM_CCORR_NORMED’ was not declared in this scope
int match_method = CV_TM_CCORR_NORMED;
^~~~~~~~~~~~~~~~~~
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp: In member function ‘cv::Mat stitcher::FisheyeStitcher::stitch(const cv::Mat&, const cv::Mat&)’:
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:957:29: error: ‘CV_INTER_LINEAR’ was not declared in this scope
CV_INTER_LINEAR);
^~~~~~~~~~~~~~~
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:957:29: note: suggested alternative: ‘CV_INLINE’
CV_INTER_LINEAR);
^~~~~~~~~~~~~~~
CV_INLINE
CMakeFiles/stitcher.dir/build.make:62: recipe for target 'CMakeFiles/stitcher.dir/src/fisheye_stitcher.cpp.o' failed
make[2]: *** [CMakeFiles/stitcher.dir/src/fisheye_stitcher.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/stitcher.dir/all' failed
make[1]: *** [CMakeFiles/stitcher.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

thank you.

hi, which opencv lib version are you using?

I installed 4.2.0 version.

I additionally replaced
CV_CAP_PROP_FPS
CV_CAP_PROP_FRAME_WIDTH
CV_CAP_PROP_FRAME_HEIGHT

by
cv::CAP_PROP_FPS
cv::CAP_PROP_FRAME_WIDTH
cv::CAP_PROP_FRAME_HEIGHT

and finally fixed it.
Thank you so much for your help.

Sorry to comment but shouldn't this be done in the main repo for it to be marked "solved"?


Add app setup guides

Added setup guides for the two existing applications
Load microblogging posts key hash at compile time

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@iduartgomez @netsirius Is this ready to merge?

Just gotta check if the issues with the new unit tests added can be fixed. If it's a big deal we can fix them later.

After a few attempts at reproducing the issues we are disabling the problematic test temporarily since it seems a CI environment config issue we are merging this. We have other broken tests anyways that we need to look into.


TAJO-1846: Write the directory address abide by user's OS

in PythonScriptEngine, Some of variable has no consideration in user's os.


Example not working:  Error: No module named 'pyhams'

I have recently rebooted my PC and reinstalled RAFT. However, the installation seems to be unsuccessful as when I run the example_from_yaml.py i get the following error:

cd RAFT
cd examples
(raft-env) PS C:\Users\hfleh\RAFT\examples> python example_from_yaml.py
Traceback (most recent call last):
File "C:\Users\hfleh\RAFT\examples\example_from_yaml.py", line 6, in
import raft
File "c:\users\hfleh\raft\raft_init_.py", line 3, in
import raft.raft_model as model
File "c:\users\hfleh\raft\raft\raft_model.py", line 15, in
import raft.raft_fowt  as fowt
File "c:\users\hfleh\raft\raft\raft_fowt.py", line 7, in
import pyhams.pyhams     as ph
ModuleNotFoundError: No module named 'pyhams'
(raft-env) PS C:\Users\hfleh\RAFT\examples>`

I have cloned and setup all relevant repositories: WISDEM, MoorPy, PyHAMS, RAFT.
Can you help me?

The pyHAMS installation did not succeed.  There should be a setup.log and a compile.log file in the meson_build directory in your pyHAMS directory.  Can you post those?

Thank you for the very fast response!
I got the pyHAMS installation working, but now WISDEM is failing. Seems to be an installation error again.
When I install WISDEM the output is as follows:
(raft-env) PS C:\Users\hfleh\WISDEM> python setup.py develop
>>
>>
C:\Users\hfleh\WISDEM\setup.py:7: DeprecationWarning:

  `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
  of the deprecation of `distutils` itself. It will be removed for
  Python >= 3.12. For older Python versions it will remain present.
  It is recommended to use `setuptools < 60.0` for those Python versions.
  For more details, see:
    https://numpy.org/devdocs/reference/distutils_status_migration.html

  from numpy.distutils.core import Extension, setup
running develop
C:\Users\hfleh\anaconda3\envs\raft-env\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
C:\Users\hfleh\anaconda3\envs\raft-env\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running build_scripts
running egg_info
running build_src
INFO: build_src
INFO: building extension "wisdem.ccblade._bem" sources
INFO: f2py options: []
INFO:   adding 'build\src.win-amd64-3.9\build\src.win-amd64-3.9\wisdem\ccblade\fortranobject.c' to sources.
INFO:   adding 'build\src.win-amd64-3.9\build\src.win-amd64-3.9\wisdem\ccblade' to include_dirs.
INFO:   adding 'build\src.win-amd64-3.9\wisdem\ccblade\_bem-f2pywrappers.f' to sources.
INFO: building extension "wisdem.pyframe3dd._pyframe3dd" sources
INFO: building extension "wisdem.rotorse._precomp" sources
INFO: f2py options: []
INFO: f2py:> build\src.win-amd64-3.9\wisdem\rotorse\_precompmodule.c
Reading fortran codes...
Traceback (most recent call last):
  File "C:\Users\hfleh\anaconda3\envs\raft-env\lib\site-packages\numpy\f2py\crackfortran.py", line 393, in readfortrancode
    l = fin.readline()
  File "C:\Users\hfleh\anaconda3\envs\raft-env\lib\fileinput.py", line 305, in readline
    line = self._readline()
  File "C:\Users\hfleh\anaconda3\envs\raft-env\lib\fileinput.py", line 369, in _readline
    return self._readline()
  File "C:\Users\hfleh\anaconda3\envs\raft-env\lib\encodings\ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 6993: ordinal not in range(128)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\hfleh\WISDEM\setup.py", line 29, in <module>
    setup(
  File "C:\Users\hfleh\anaconda3\envs\raft-env\lib\site-packages\numpy\distutils\core.py", line 169, in setup
    return old_setup(**new_attr)
[...]
 File "C:\Users\hfleh\anaconda3\envs\raft-env\lib\site-packages\numpy\f2py\crackfortran.py", line 395, in readfortrancode
    raise Exception(
Exception: readfortrancode: reading wisdem\rotorse\PreCompPy.f90#0 failed with
'ascii' codec can't decode byte 0xce in position 6993: ordinal not in range(128).
It is likely that installing chardet package will help f2py determine the input file encoding correctly.

When I run the example_from_yaml I get the following error:
(raft-env) PS C:\Users\hfleh\RAFT\examples> python example_from_yaml.py
Traceback (most recent call last):
  File "C:\Users\hfleh\RAFT\examples\example_from_yaml.py", line 6, in <module>
    import raft
  File "c:\users\hfleh\raft\raft\__init__.py", line 3, in <module>
    import raft.raft_model as model
  File "c:\users\hfleh\raft\raft\raft_model.py", line 15, in <module>
    import raft.raft_fowt  as fowt
  File "c:\users\hfleh\raft\raft\raft_fowt.py", line 11, in <module>
    from raft.raft_rotor import Rotor
  File "c:\users\hfleh\raft\raft\raft_rotor.py", line 19, in <module>
    from wisdem.ccblade.ccblade import CCBlade, CCAirfoil
ModuleNotFoundError: No module named 'wisdem'
(raft-env) PS C:\Users\hfleh\RAFT\examples>

Do you have any recommendations of what to do?

Yes, I just fixed this the past few days.  There were changes in the 3rd party libraries that made them a little less robust.  If you do:
git checkout develop
git pull
python setup.py develop

In your WISDEM directory, things should be working.
If you instead installed WISDEM as a conda package, then I can push an update there, but haven't done so yet.

Thank you! I got WISDEM successfully downloaded, but now errors, when running the example_from_yaml:
(raft-env) PS C:\Users\hfleh> pip install marmot-agents
Requirement already satisfied: marmot-agents in c:\users\hfleh\anaconda3\envs\raft-env\lib\site-packages (0.2.5)
Requirement already satisfied: numpy in c:\users\hfleh\anaconda3\envs\raft-env\lib\site-packages (from marmot-agents) (1.24.0)
(raft-env) PS C:\Users\hfleh\RAFT\examples> pip install simpy
Requirement already satisfied: simpy in c:\users\hfleh\anaconda3\envs\raft-env\lib\site-packages (4.0.1)
(raft-env) PS C:\Users\hfleh\RAFT\examples> python example_from_yaml.py
WARNING: Be sure to pip install simpy and marmot-agents for offshore BOS runs
Traceback (most recent call last):
  File "C:\Users\hfleh\RAFT\examples\example_from_yaml.py", line 17, in <module>
    model.analyzeUnloaded()
  File "c:\users\hfleh\raft\raft\raft_model.py", line 135, in analyzeUnloaded
    fowt.calcStatics()
  File "c:\users\hfleh\raft\raft\raft_fowt.py", line 286, in calcStatics
    if np.float(pballast[j]) == np.float(self.pb[i]):   # but only if the index of the ballast mass (density) matches the value of pb
  File "C:\Users\hfleh\anaconda3\envs\raft-env\lib\site-packages\numpy\__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

I have made sure to install the necessary libraries. Do you have any suggestions?

Since this is a bug in the core RAFT code, I will defer to @mattEhall here before making any code edits.

Hello,
I believe this is due to numpy's latest release 1.24. For now one could use  an older version of numpy, I downgraded it using:
_conda install -c conda-forge numpy=1.23
And now the Raft example from yaml works fine. Hope it helps !

Thank you! It's working.

Thank you all, for the problems and solutions. I've just pushed a small fix for that last bug (now using float() instead of np.float()). There is also has a small update to allow using CCBlade without the full WISDEM installation (as discussed in https://github.com/WISDEM/RAFT/issues/17).

Hi again,
I am struggling with the installation on a new PC. I have tried the above mentioned suggestion, but still get the error message:
ModuleNotFoundError: No module named 'wisdem'
(raft-env) PS C:\Users\s153061> git clone https://github.com/WISDEM/WISDEM.git     # (WISDEM repository)
Cloning into 'WISDEM'...
remote: Enumerating objects: 29240, done.
remote: Counting objects: 100% (1003/1003), done.
remote: Compressing objects: 100% (440/440), done.
remote: Total 29240 (delta 557), reused 965 (delta 547), pack-reused 28237
Receiving objects: 100% (29240/29240), 77.01 MiB | 27.54 MiB/s, done.
Resolving deltas: 100% (20006/20006), done.
(raft-env) PS C:\Users\s153061> cd WISDEM
(raft-env) PS C:\Users\s153061\WISDEM> python setup.py develop
Traceback (most recent call last):
  File "C:\Users\s153061\WISDEM\setup.py", line 86, in <module>
    run_meson_build(staging_dir)
  File "C:\Users\s153061\WISDEM\setup.py", line 38, in run_meson_build
    p1 = subprocess.run(sysargs, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
  File "C:\Users\s153061\.conda\envs\raft-env\lib\subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\s153061\.conda\envs\raft-env\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\s153061\.conda\envs\raft-env\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Do you have any suggestions?

I submitted some robustness improvements in the install of both pyHAMS and WISDEM.  If the primary purpose is to use RAFT, I would suggest simply doing conda install wisdem to satisfy dependencies.  The alternative is to go through the WISDEM installation steps outlined at its Github site.


This project is configured at the repo level Error

Hi!
I try to put all the issue with a certain label from one repository in my organization to a project board in another repository (at the same organization), and I got this error message. I have my token in place with all the needed permissions. I was wondering what might be a problem.
This project is configured at the repo level. Repo Owner:AYATESTREPOS, repo name:company project number#1
columnId is: 16487387, cardId is: null, currentColumn is: null
No card exists for the labeled issue in the project. Attempting to create a card in column 16487387, for an issue with the corresponding id #1031558103
#ERROR# HttpError: Validation Failed

Here is my yml file:
name: Auto Assign to Project(s)
on:
  issues:
    types: [labeled]
jobs:
  Move_Labeled_Issue_On_Project_Board:
    runs-on: ubuntu-latest
    steps:
    - uses<EMAIL_ADDRESS>      with:
        action-token: "${{ secrets.MY_TOKEN }}"
        project-url: "https://github.com/AYATESTREPOS/company/projects/1"
        column-name: "To do"
        label-name: "bi"

@ayakalauova how did you resolve this error?


SAX Parser ignores explicitly set 'UTF-8' encoding and proceeds to reencode the document resulting in double-encoding artifacts

Unlike regular Nokogiri::XML parser which allows you to explicitly set the encoding, Nokogiri::XML::SAX::Parser ignores the explicitly set encoding and uses the one specified in the provided xml(which has already been encoded in UTF-8, but the contents havent changed):

the sax handling code

class MyDocument < Nokogiri::XML::SAX::Document
  def characters(string)
    puts "ENCODING: #{string.encoding} VALUE: #{string}"
  end
  def xmldecl(version, encoding, standalone)
    puts "XMLDECL VERSION: #{version} ENCODING: #{encoding} STANDALONE: #{standalone}"
  end
  def warning(string)
    puts "WARNING: #{string}"
  end
end

console output when encoding IS NOT specified to the parser:

1.9.3p125 :003 > Nokogiri::VERSION
 => "1.5.9"
1.9.3p125 :004 > parser = Nokogiri::XML::SAX::Parser.new(MyDocument.new)
 => #<Nokogiri::XML::SAX::Parser:0x007f9c631898e8>
1.9.3p125 :005 > parser.encoding
 => "UTF-8"
1.9.3p125 :006 > parser.parse("<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>\n<content>Böhnhardt</content>")
XMLDECL VERSION: 1.0 ENCODING:  STANDALONE: yes
ENCODING: UTF-8 VALUE: B
ENCODING: UTF-8 VALUE: Ã¶hnhardt   #<<< borked characters

console output when encoding IS specified to the parser:

1.9.3p125 :029 > parser = Nokogiri::XML::SAX::Parser.new(MyDocument.new, 'UTF-8')
 => #<Nokogiri::XML::SAX::Parser:0x007f9c631fd388>
1.9.3p125 :030 > parser.parse("<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>\n<content>Böhnhardt</content>")
XMLDECL VERSION: 1.0 ENCODING:  STANDALONE: yes
ENCODING: UTF-8 VALUE: B
ENCODING: UTF-8 VALUE: Ã¶hnhardt  #<< still borked characters
 => nil

With a regular parser however, when encoding is explicitly specified (per instructions), its respected and double conversion does not occur:
1.9.3p125 :026 > Nokogiri.XML("<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>\n<content>Böhnhardt</content>").xpath('//content').text
 => "BÃ¶hnhardt"
 1.9.3p125 :027 > Nokogiri.XML("<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>\n<content>Böhnhardt</content>", nil, 'UTF-8').xpath('//content').text
 => "Böhnhardt"

This bug is similar to #671 which seems to be an issue with libxml2. What's different is that this report covers parsing in-memory strings, and #671 covers parsing IO, which are two different libxml2 functions. Regardless, they seem related.

Seems like we can use xmlSwitchEncoding to tell libxml2 what the expected encoding will be. I need to update Nokogiri to make sure that argument is treated as an override to the encoding in XML declaration.

Proposed fix is at https://github.com/sparklemotion/nokogiri/pull/3282
And I have another PR in progress to clean up all of this code and use real encoding names (and not these libxml2-specific encoding IDs).

New proposed fix is at #3288


Documentation for 3.10 release is missing

Added documentation for the new features of 3.10 release.

Linux test PASSed.

Windows test PASSed.

Windows test PASSed.

Linux test FAILed.

Linux test PASSed.

verify-linux

Linux test PASSed.

Windows test FAILed.

verify-windows

Windows test PASSed.


FUNCALLF and APPLYF are not implemented

https://github.com/Hexstream/place-utils/blob/cbfc5e3de274f60a99066cb6768912623f0c3d1e/package.lisp#L9-L10
I have not seen the implementations for those operators anywhere in the codebase, but their names are exported and they seem to be documented.

Thank you. funcallf and applyf have been obsoleted by place-modifiers ages ago.
It effectively provides hundreds of modify macros, including (modify funcall) and (modify apply).


Installed but not performing

Hi.
I just installed the plugin in SublimeText3, no errors (instalation or startup)
the plugin is listed  under Package Settings but not in the command palete also when pressing the key combination nothing happens.
Im Using OSX El Capitan and the last version of ST3

Same issue on Windows, Sublime Text 3, portable.

Same case for me..Not working on ubuntu 16.04LTS

Same for me, Windows, ST3 full

Did any of you guys figure out how to get it to work? I have log commands true in the console, and the plugin isn't even running on the key combination press.

Same for me ... Had anyone solved ?

Check that you have the right file syntax set. The plugin doesn't allow itself to be invoked on files that aren't of one of the types it knows.
In my case, I needed to set the file syntax highlighting to C++ for it to be operable.

Same issue on Windows 10, Sublime Text 3, portable.

@fake-name : how did you do that exactly?

@KjellKod - ctrl + shift + p + set syntax c/set syntax c++.
Alternatively, look in the lower right hand corner where it says the current syntax.

(For Windows) Just try to install:
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
It worked for me :D

@lucasalme1da Thank you very much, bro. You deserve a follow back

(For Windows) Just try to install:
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
It worked for me :D

@lucasalme1da Thank you very much, bro. It actually helped😃✨

lucasalme1da Thank you brother, it worked foor me too.


[docs] Update and harmonize guids for deployment

This updates and harmonizes the guides for the different deployment configurations. Several identical sections are provided as snippets.

Updates docs regarding ROCm support
Adds a subsection on downloading the runtime from a release
Adds instructions on checking for CUDA and ROCm support

This superseds #18173 and #18655.
skip-ci: Doc updates only

Thanks for the review and the suggestions. All addressed.


Broken links on master

running link check on the master branch gives me the following broken urls:

broken    https://github.com/plone/training/pull/ - HTTP Error 404: Not Found
broken      http://2013.pythonbrasil.org.br/program/training/mastering-plone - <urlopen error [Errno 111] Connection refused>
broken    http://docs.plone.org/develop/addons/five-grok/index.html - HTTP Error 404: Not Found
broken    http://docs.plone.org/develop/addons/five-grok/index.html - HTTP Error 404: Not Found
broken    http://aptana.com/products/studio3/ - HTTP Error 404: Not Found

To make that sure, I also tested them from hand, well same result :)

@svx: thanks. I will fix them.

 There are no more dead links. Closing.


Update strongcheck dependency, fix warning

Also uses purescript from npm rather than fetching it with wget.
@cryogenian can you review please? Thanks!

Bump!


Idea for project type selection

I'm experimenting with new ideas for the project type selection. Ideas welcome.
This idea puts more focus on the differences between the project types. It should make this information redundant: https://asreview.readthedocs.io/en/stable/project_create.html#project-modes

Another idea (that needs refinement) is this:

It removes the 9 times "dataset" and add boxes for clarity. We can highlight selected boxes.


🎁 1.0.0 Wishlist

I'd like to start a wishlist for 1.0.0 release. It should include any last breaking changes before moving into proper semver for future releases.
Please comment if you'd like tesla to have (or drop) something in the near future.
Here are mine:

New: Cache middleware - I think we should have a decent HTTP cache middleware (like faraday-http-cache) with pluggable backend (a simple interface of get/put) while handling all of the HTTP cache stuff
Breaking: Drop aliases - it is not widely used nor documented feature, aliases were never kept up to date and with current implementation they add a compile-time link from tesla builder to all adapters and middlewares. And there is no way to make them work for any custom middleware.

Cache middleware would be amazing, this help a lot when developing against APIs that have a cache timer and you don't want to hammer their APIs.

About cache, We're using a simple solution that will evolve to something like this. Feedbacks are wellcome.
https://github.com/emerleite/tesla_cache

For cache,what I'm doing is reading the response headers for when the cache expires, then storing it with Cachex until then. A good API should return the cache timer (if the output is cached).
Otherwise storing on your end is going to be tricky as you might get stale data.

All the breaking changes are now available in 1.0 branch. New features will be moved into 1.1 milestone.

tesla 1.0.0-beta.1 is out! Additional features has been moved into 1.1 milestone.


Rewrite app redis

same as rewrite app but now using vercel/kv redis db instead of sqlite

PR ready for possible merge

Its been a pleasure!
Looking.forward to.next phases.


Error: invalid_client: The OAuth client was not found.

I'm trying to run this example. I've created my CLIENTID and CLIENTSECRET environment variables and verified that they are correct, and do not have any leading or trailing whitespace. I've also run npm install. However when I run the app, I get a 401 error with the description from above. What does this mean?
I've looked all over the place, and it seems like the normal issue that causes this is either whitespace in the environment variables, or a lack of a product name and email in the Google cloud console. I have checked and double checked all of those things. Thanks!

Odd. I fixed the issue by hardcoding the CLIENTID and CLIENTSECRET values right into package.json, instead of using environment variables. It works now though.


IO: on_next_tick

Implement an IO.on_next_tick (or maybe on Storage?).
Use it to fix the call sites where we synchronously invoke an async callback, e.g. https://github.com/tigerbeetledb/tigerbeetle/blob/a563d521674b0030961f4cc8cc5a2c6e16e98fd5/src/lsm/tree.zig#L299

Closed by #319


Exception: Collection is already set to an EntityCollection in object with all properties virtual

Any entity that contains only virtual properties will throw an exception when initializing its collection(s) in the constructor. This issue requires to have at least one entry in the database in order to be reproduced.
This seems to be an issue since the entity should be initialized regardless of the rest of its properties or the logic behind the virtual modifier. I found a similar issue dating back to 2010 in SO (https://stackoverflow.com/a/4069727), more specifically this part:

So it appears that I only have the problem with a full 'change tracking proxy' if all my properties are virtual.

Exception message: The property 'Packages' on type 'Store_87BE7390C3646F421F89B434F1E15F1984BB49603F57243C6D4933AB0309AACD' cannot be set because the collection is already set to an EntityCollection.
Stack trace:    at System.Data.Entity.DynamicProxies.Store_87BE7390C3646F421F89B434F1E15F1984BB49603F57243C6D4933AB0309AACD.set_Packages(ICollection`1 )
   at Test.Store..ctor() in E:\Dev\EntityBase.cs:line 30
   at System.Data.Entity.DynamicProxies.Store_87BE7390C3646F421F89B434F1E15F1984BB49603F57243C6D4933AB0309AACD..ctor()
   at lambda_method(Closure , Shaper )
   at System.Data.Entity.Core.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly[TEntity](Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet)
   at lambda_method(Closure , Shaper )
   at System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)

Steps to reproduce
Note that the below steps require at least one entry for each entity in the database.

Create a class (e.g.: EntityBase) with all its properties set to virtual.
Create 2 classes (e.g.: Store and Package) that inherit from the above class.
Add a collection of Packages to the Store class.

I managed to reproduce this issue with the below code:
public abstract class EntityBase
{
	public virtual int Id { get; set; }
	public virtual string Name { get; set; }
}

public abstract class PackageBase : EntityBase
{
	public virtual int StoreId { get; set; }
}

public class Package : EntityBase
{
	public virtual Store Store { get; set; }
}

public class StoreBase : EntityBase
{
}

public class Store : StoreBase
{
	public Store() => Packages = new HashSet<Package>();
	public virtual ICollection<Package> Packages { get; set; }
}

public class SqlDbContext : DbContext
{
	public SqlDbContext()
		: base("name=ConnectionString")
	{
	}
	public virtual DbSet<Store> Stores { get; set; }
	public virtual DbSet<Package> Packages { get; set; }
}

Further technical details
EF version: 6.2.0
Database Provider: EntityFramework.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2019 16.0.3

EF Team Triage: This is a known limitation of the way change tracking proxies are implemented for classic EF. It is not something that our team is planning to address in the EF6.x code base.  This does not mean that we would not consider a community contribution to address this issue.
Moving forwards, our team will be fixing bugs, implementing small improvements, and accepting community contributions to the EF6.x code base. Larger feature work and innovation will happen in the EF Core code base (https://github.com/aspnet/EntityFramework).
Closing an issue in the EF6.x project does not exclude us addressing it in EF Core. In fact, a number of popular feature requests for EF have already been implemented in EF Core (alternate keys, batching in SaveChanges, etc.).
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.


Remove soft replacement for missing sksparse

In two places there are try-except statements that try to import sksparse and replace it with scipy otherwise. This prints or logs a message but I think we should get rid of this and require sksparse.
Especially after #257 is merged and scikit-sparse becomes an official dependency

I support requiring sksparse and not defaulting to scipy: it's too confusing to support sparse cholesky through different libraries. Please go ahead with a PR if you have the code ready.

@vallis I'll get to this soon. I was off last week, hence the burst of activity but now it may have to wait til the weekend.

Solved by @jellis18 with #260


Restructure workspace

Description
This PR restructures the workspace by removing the root library and encapsulating logic from the root's build.rs into linting crate API. It adds build.rs scripts to run the lints independently for each crate.
Regarding the code-coverage, for all pallets it introduces feature code-coverage, which will run the coverage analyzer from build.rs in case the feature is enabled, for ex.:
cargo check -p pallet-subtensor --features code-coverage

It also changes code-coverage slightly by not trying to suppose the analyzer is running from a workspace, as the build script now doesn't depend on the workspace.
The default crate in workspace is configured to be node-subtensor, so all commands go to this crate, if you don't pass -p <name> argument. It allows cargo run node, without specifying the package name.
Related Issue(s)

Closes #[issue number]

Type of Change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please describe):

Checklist

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have run cargo fmt and cargo clippy to ensure my code is formatted and linted correctly
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Screenshots (if applicable)
Please include any relevant screenshots or GIFs that demonstrate the changes made.
Additional Notes
Please provide any additional information or context that may be helpful for reviewers.

CI failing btw

CI failing btw

yeah, it's not ready yet. I'm toggling it into draft.

Depends on PR #977


Consider changing "find us on github link"

Presently, the link on the UI goes to the original repo. I wonder if it would make sense to link to yours (1337-server), as you've done a lot of work and are many commits ahead of/to the side of the main one. 😊 I can write a quick PR for you changing some of that if you'd like the extra credit. Gotta give it where it's due!

Maybe I should've checked the number of commits - you've pushed a lot of them up to the main repo. 😉

Yeah, I just got write access to the main repo, so this probably isn't necessary now, as the main repo will always be updated.
Great idea though. I'll close this now.
Thanks


Search Teachers

Should I include teachers in search part? Like would it be okay to put options like searching a teacher or a topic? Also something like a topic by x teacher with at least xx rating that has been watched at least  y times with z rating?

i think it is a good idea :+1:

Have you added this already? Should we close this issue?


[stable/*] Proposal: Switch test image to "bats/bats"

Signed-off-by: dduportal<EMAIL_ADDRESS>Is this a new chart
No
What this PR does / why we need it:
This PR changes the image of the "test containers" to the official bats/bats:v1.1.0,
as dduportal/bats:0.4.0 is a liability (see #19155 for explanations).
IMPORTANT: Please note that the base image changed from debian:jessie to alpine:3.8.
Which issue this PR fixes

Use a "schema2" docker image which allows to use digests for identifying the content (no more Image docker.io/dduportal/bats:0.4.0 uses outdated schema1 manifest format. Please upgrade to a schema2 image for better future compatibility. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/ message).
Image size improvement.
No more security alerts from outdated Debian packages.
fixes #19155 .

Special notes for your reviewer:
This PR is a proposal, as it does not completely fixes the root cause of the liability (e.g. depending on someone's else image), but it triggers the discussion.
Happy to help forging an image dedicated for this, owned by the CNCF or Helm project.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
~[ ] Chart Version bumped~ (N.A.)
~[ ] Variables are documented in the README.md~(N.A.)
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

CI will fail because you need to split the changes individually per chart to be tested properly

@carrodher ok, good to know. I would want to check if doing this change if ok, as the time required to open all the PRs should be worth it :)
My goal is to decommission this image as soon as possible as it is a liability, and I want to help as much to avoid breaking stuff. But I'm not really keen on spending hours, given the potential amount of "go / nogo" from the different chart authors here, so I really want to be sure I'm heading forward on the right direction.
Thanks for the feedback!

I was reading the issue right now, thanks for this effort and for taking care of the security in all these charts.
I agree with the changes, but I will ping other core members.
cc @mattfarina @cpanato @unguiculus

I was reading the issue right now, thanks for this effort and for taking care of the security in all these charts.
I agree with the changes, but I will ping other core members.
cc @mattfarina @cpanato @unguiculus

Cool, thanks for the fast answers! I'll wait for a "global" confirmation, before working on subsequent PRs for each then :+1: .

@dduportal agree as well, please open Pr for each one

will close this one


Which library versions do you use?

Your source code does not compile on my Linux machine, and it looks like due to some API changes of your dependencies. Could you tell me, which library version you are using?

Any information? I guess it's the Ceres version problem.  Ceres change the LocalParameterization to Manifold after version 2.

I now use the following versions
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND noninteractive

# Some system dependencies
RUN apt-get update && apt-get install -y mlocate less git cmake-curses-gui cmake-gui jq wget unzip debconf-utils iputils-ping

# Install Sophus
RUN apt-get install -y libfmt-dev
RUN cd ~ && \
    git clone https://github.com/strasdat/Sophus.git && \
    cd Sophus && \
    mkdir build && \
    cd build && \
    cmake .. && \
    make -j && \
    make install && \
    cd ../.. && \
    rm -r Sophus

# Install Pangolin
RUN apt-get install -y libgl1-mesa-dev libwayland-dev libxkbcommon-dev wayland-protocols libegl1-mesa-dev libc++-dev libglew-dev libeigen3-dev cmake g++ ninja-build libjpeg-dev libpng-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev
RUN cd ~ && \
    git clone --recursive https://github.com/stevenlovegrove/Pangolin.git && \
    cd Pangolin && \
    cmake -B build && \
    cmake --build build && \
    cmake --install build && \
    cd .. && \
    rm -r Pangolin

# Install ceres and nanoflann
RUN apt-get install -y libunwind-dev libceres-dev libnanoflann-dev

But I had to do some minor adjustments in the code to make it work

I found that nanoflann-dev (2020 release) and ceres (version < 2.0) worked without a problem.


Activate preview notices

Addresses #31909

Internal previews
Toggle expand/collapse

📄 File
🔗 Preview link

aspnetcore/blazor/components/class-libraries-and-static-server-side-rendering.md
aspnetcore/blazor/components/class-libraries-and-static-server-side-rendering

aspnetcore/blazor/components/integration.md
aspnetcore/blazor/components/integration

aspnetcore/blazor/components/prerender.md
aspnetcore/blazor/components/prerender

aspnetcore/blazor/components/quickgrid.md
aspnetcore/blazor/components/quickgrid

aspnetcore/blazor/components/render-components-outside-of-aspnetcore.md
aspnetcore/blazor/components/render-components-outside-of-aspnetcore

aspnetcore/blazor/components/render-modes.md
aspnetcore/blazor/components/render-modes

aspnetcore/blazor/components/sections.md
aspnetcore/blazor/components/sections

aspnetcore/blazor/hybrid/troubleshoot.md
aspnetcore/blazor/hybrid/troubleshoot

aspnetcore/blazor/hybrid/tutorials/maui-blazor-web-app.md
aspnetcore/blazor/hybrid/tutorials/maui-blazor-web-app

aspnetcore/blazor/javascript-interoperability/static-server-rendering.md
aspnetcore/blazor/javascript-interoperability/static-server-rendering

aspnetcore/blazor/security/blazor-web-app-with-oidc.md
aspnetcore/blazor/security/blazor-web-app-with-oidc

aspnetcore/blazor/security/server/account-confirmation-and-password-recovery.md
aspnetcore/blazor/security/server/account-confirmation-and-password-recovery

aspnetcore/blazor/security/server/qrcodes-for-authenticator-apps.md
aspnetcore/blazor/security/server/qrcodes-for-authenticator-apps

aspnetcore/blazor/security/server/static-server-side-rendering.md
aspnetcore/blazor/security/server/static-server-side-rendering

aspnetcore/blazor/security/webassembly/microsoft-entra-id-groups-and-roles.md
aspnetcore/blazor/security/webassembly/microsoft-entra-id-groups-and-roles

aspnetcore/blazor/security/webassembly/standalone-with-identity.md
aspnetcore/blazor/security/webassembly/standalone-with-identity

aspnetcore/blazor/tutorials/movie-database-app/index.md
aspnetcore/blazor/tutorials/movie-database-app/index

aspnetcore/blazor/tutorials/movie-database-app/part-1.md
aspnetcore/blazor/tutorials/movie-database-app/part-1

aspnetcore/blazor/tutorials/movie-database-app/part-2.md
aspnetcore/blazor/tutorials/movie-database-app/part-2

aspnetcore/blazor/tutorials/movie-database-app/part-3.md
aspnetcore/blazor/tutorials/movie-database-app/part-3

aspnetcore/blazor/tutorials/movie-database-app/part-4.md
aspnetcore/blazor/tutorials/movie-database-app/part-4

aspnetcore/blazor/tutorials/movie-database-app/part-5.md
aspnetcore/blazor/tutorials/movie-database-app/part-5

aspnetcore/blazor/tutorials/movie-database-app/part-6.md
aspnetcore/blazor/tutorials/movie-database-app/part-6

aspnetcore/blazor/tutorials/movie-database-app/part-7.md
aspnetcore/blazor/tutorials/movie-database-app/part-7

aspnetcore/blazor/tutorials/movie-database-app/part-8.md
aspnetcore/blazor/tutorials/movie-database-app/part-8

🎉🍻


python310Packages.angr: 9.2.39 -> 9.2.40

Description of changes
Bump angr stack to 9.2.40

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 218895 run on x86_64-linux 1

16 packages built:

python310Packages.ailment
python310Packages.angr
python310Packages.angrcli
python310Packages.angrop
python310Packages.archinfo
python310Packages.claripy
python310Packages.cle
python310Packages.pyvex
python311Packages.ailment
python311Packages.angr
python311Packages.angrcli
python311Packages.angrop
python311Packages.archinfo
python311Packages.claripy
python311Packages.cle
python311Packages.pyvex


[Bug]:  SWE-Bench Evaluation fails with connection refused error constantly

Is there an existing issue for the same bug?

[X] I have checked the existing issues.

Describe the bug and reproduction steps
When using the latest openhands.evaluation.swebench script, it always bumped into connection issues and exit the process after running a few issues.
Following is the step that I take to setup the openhands today:

Download OpenHands
Install the minimum required python environments

conda create —name openhands python=3.12
conda install -c conda-forge nodejs
conda install -c conda-forge poetry
make build

Configure the LLM Agent config

make setup-config
manually modify the [llm] in config.toml into [llm.qwenCoder]

Run the shell scripts to start the evaluation docker images (do not increase the worker num as there are rate limit of api-keys)

tmux new -s openhands
conda activate openhands
make docker-run (start the runtime before you can interact with it)
tmux new -s swe_eval
conda activate openhands
./evaluation/swe_bench/scripts/run_infer.sh llm.qwenCoder HEAD CodeActAgent 300 30 5 princeton-nlp/SWE-bench_Lite test

OpenHands Installation
Development workflow
OpenHands Version
main
Operating System
Linux
Logs, Errors, Screenshots, and Additional Context
Instance django__django-11583:   2%| | 7/289 [42:21<31:00:00, 395.75s/it, Test Result: {'git_patch': 'diff --git a/testproject/manage.py b/t18:14:45 - openhands:INFO: shared.py:284 - Finished evaluation for instance django__django-11583: {'git_patch': 'diff --git a/testproject/manage.py b/testproject/manage.py\r\nnew file mode 100755\r\nindex<PHONE_NUMBER>..fb52456bdf\r\n--- /dev/null\r\n+++ b/testproject/manage.py\r\n@@ -0,0 +1,21 @@\r\n+#!/usr/bin/env python\r\n+"""Django's command-line utility for administrative tasks."""\r\n+impor...
Instance django__django-11620 - 2024-11-19 18:14:46,665 - ERROR - [runtime a2a1fde5-89f0-4419-b7f3-d7e4c108e98c-84aac80784dce6b7] Unexpected error while running action HTTPConnectionPool(host='localhost', port=36662): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088f1b710>: Failed to establish a new connection: [Errno 111] Connection refused'))
Instance django__django-11620 - 2024-11-19 18:14:46,665 - ERROR - [runtime a2a1fde5-89f0-4419-b7f3-d7e4c108e98c-84aac80784dce6b7] Problematic action: CmdRunAction (source=EventSource.AGENT)
THOUGHT: Great, the server is running correctly on port 8000. Let's test the custom path converter by accessing a URL that should trigger the Http404 exception. We'll use curl to request a URL that does not match the condition in the to_python method of TestConverter.
COMMAND:
curl http://<IP_ADDRESS>:8000/456/
Instance django__django-11620 - 2024-11-19 18:14:46,665 - ERROR - HTTPConnectionPool(host='localhost', port=36662): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088f1b710>: Failed to establish a new connection: [Errno 111] Connection refused'))
================ DOCKER BUILD STARTED ================
Instance django__django-11620 - 2024-11-19 18:14:47,683 - ERROR - ----------
Error in instance [django__django-11620]: HTTPConnectionPool(host='localhost', port=36662): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088e14590>: Failed to establish a new connection: [Errno 111] Connection refused')). Stacktrace:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 199, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 441, in request
self.endheaders()
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1326, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1085, in _send_output
self.send(msg)
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1029, in send
self.connect()
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 279, in connect
self.sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 214, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6088e14590>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36662): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088e14590>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/zhongshen/OpenHands/evaluation/utils/shared.py", line 313, in _process_instance_wrapper
result = process_instance_func(instance, metadata, use_mp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/evaluation/swe_bench/run_infer.py", line 426, in process_instance
return_val = complete_runtime(runtime, instance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/evaluation/swe_bench/run_infer.py", line 322, in complete_runtime
obs = runtime.run_action(action)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/openhands/runtime/impl/eventstream/eventstream_runtime.py", line 500, in run_action
with send_request(
^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/openhands/runtime/utils/request.py", line 60, in send_request
response = session.request(method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=36662): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088e14590>: Failed to establish a new connection: [Errno 111] Connection refused'))
----------[The above error occurred. Retrying... (attempt 1 of 5)]----------

Error in instance [django__django-11620]: HTTPConnectionPool(host='localhost', port=36662): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088e14590>: Failed to establish a new connection: [Errno 111] Connection refused')). Stacktrace:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 199, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 441, in request
self.endheaders()
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1326, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1085, in _send_output
self.send(msg)
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1029, in send
self.connect()
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 279, in connect
self.sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 214, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6088e14590>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36662): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088e14590>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/zhongshen/OpenHands/evaluation/utils/shared.py", line 313, in _process_instance_wrapper
result = process_instance_func(instance, metadata, use_mp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/evaluation/swe_bench/run_infer.py", line 426, in process_instance
return_val = complete_runtime(runtime, instance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/evaluation/swe_bench/run_infer.py", line 322, in complete_runtime
obs = runtime.run_action(action)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/openhands/runtime/impl/eventstream/eventstream_runtime.py", line 500, in run_action
with send_request(
^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/openhands/runtime/utils/request.py", line 60, in send_request
response = session.request(method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=36662): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088e14590>: Failed to establish a new connection: [Errno 111] Connection refused'))
----------[The above error occurred. Retrying... (attempt 1 of 5)]----------
Instance django__django-11620 - 2024-11-19 18:14:52,684 - INFO - Starting evaluation for instance django__django-11620.
Hint: run "tail -f evaluation/evaluation_outputs/outputs/princeton-nlp__SWE-bench_Lite-test/CodeActAgent/qwen2.5-coder-32b-instruct_maxiter_30_N_v2.2-no-hint-run_1/infer_logs/instance_django__django-11620.log" to see live logs in a separate shell
Provider List: https://docs.litellm.ai/docs/providers
Provider List: https://docs.litellm.ai/docs/providers
Provider List: https://docs.litellm.ai/docs/providers
Provider List: https://docs.litellm.ai/docs/providers
Instance django__django-11564 - 2024-11-19 18:14:56,765 - ERROR - [runtime 06bf0682-97b9-4489-9e79-c5c0c226f1e9-54b4d423ee0909db] Unexpected error while running action HTTPConnectionPool(host='localhost', port=30754): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088cdcb30>: Failed to establish a new connection: [Errno 111] Connection refused'))
Instance django__django-11564 - 2024-11-19 18:14:56,765 - ERROR - [runtime 06bf0682-97b9-4489-9e79-c5c0c226f1e9-54b4d423ee0909db] Problematic action: IPythonRunCellAction
THOUGHT: Let's explicitly specify the new_str parameter with the modified url method. Here is the modified url method:
def url(self, name, request=None):
    if self.base_url is None:
        raise ValueError("This file is not accessible via a URL.")
    url = filepath_to_uri(name)
    if url is not None:
        url = url.lstrip('/')
    script_name = request.META.get('SCRIPT_NAME', '') if request else ''
    return urljoin(self.base_url, script_name + url)

Let's insert this method manually at line 328:
CODE:
print(file_editor(**{'command': 'insert', 'path': '/workspace/django__django__3.1/django/core/files/storage.py', 'insert_line': 328}))
Instance django__django-11564 - 2024-11-19 18:14:56,765 - ERROR - HTTPConnectionPool(host='localhost', port=30754): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088cdcb30>: Failed to establish a new connection: [Errno 111] Connection refused'))
Instance django__django-11564 - 2024-11-19 18:14:57,783 - ERROR - HTTPConnectionPool(host='localhost', port=30754): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088cdd9d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 199, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 441, in request
self.endheaders()
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1326, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1085, in _send_output
self.send(msg)
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1029, in send
self.connect()
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 279, in connect
self.sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 214, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6088cdd9d0>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=30754): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088cdd9d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/zhongshen/OpenHands/evaluation/utils/shared.py", line 313, in _process_instance_wrapper
result = process_instance_func(instance, metadata, use_mp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/evaluation/swe_bench/run_infer.py", line 426, in process_instance
return_val = complete_runtime(runtime, instance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/evaluation/swe_bench/run_infer.py", line 322, in complete_runtime
obs = runtime.run_action(action)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/openhands/runtime/impl/eventstream/eventstream_runtime.py", line 500, in run_action
with send_request(
^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/openhands/runtime/utils/request.py", line 60, in send_request
response = session.request(method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=30754): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088cdd9d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Instance django__django-11564 - 2024-11-19 18:14:57,784 - ERROR - HTTPConnectionPool(host='localhost', port=30754): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088cdd9d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 199, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 495, in _make_request
conn.request(
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 441, in request
self.endheaders()
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1326, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1085, in _send_output
self.send(msg)
File "/root/miniconda3/envs/openhands/lib/python3.12/http/client.py", line 1029, in send
self.connect()
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 279, in connect
self.sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connection.py", line 214, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6088cdd9d0>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=30754): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088cdd9d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/zhongshen/OpenHands/evaluation/utils/shared.py", line 313, in _process_instance_wrapper
result = process_instance_func(instance, metadata, use_mp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/evaluation/swe_bench/run_infer.py", line 426, in process_instance
return_val = complete_runtime(runtime, instance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/evaluation/swe_bench/run_infer.py", line 322, in complete_runtime
obs = runtime.run_action(action)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/openhands/runtime/impl/eventstream/eventstream_runtime.py", line 500, in run_action
with send_request(
^^^^^^^^^^^^^
File "/root/zhongshen/OpenHands/openhands/runtime/utils/request.py", line 60, in send_request
response = session.request(method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/openhands-ai-5P0i1HOD-py3.12/lib/python3.12/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=30754): Max retries exceeded with url: /execute_action (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6088cdd9d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Instance django__django-11742 - 2024-11-19 18:14:57,788 - INFO - Starting evaluation for instance django__django-11742.
Hint: run "tail -f evaluation/evaluation_outputs/outputs/princeton-nlp__SWE-bench_Lite-test/CodeActAgent/qwen2.5-coder-32b-instruct_maxiter_30_N_v2.2-no-hint-run_1/infer_logs/instance_django__django-11742.log" to see live logs in a separate shell
ERROR:root:  File "/root/zhongshen/OpenHands/evaluation/swe_bench/run_infer.py", line 536, in
run_evaluation(
File "/root/zhongshen/OpenHands/evaluation/utils/shared.py", line 413, in run_evaluation
for result in results:
File "/root/miniconda3/envs/openhands/lib/python3.12/multiprocessing/pool.py", line 873, in next
raise value
ERROR:root:<class 'RuntimeError'>: Maximum error retries reached for instance django__django-11564
Instance django__django-11583:   2%| | 7/289 [42:34<28:34:53, 364.87s/it, Test Result: {'git_patch': 'diff --git a/testproject/manage.py b/t
(openhands) [root@iZrj9hd2z42esdxzd51ghoZ OpenHands]#

Hi, before I dive in deeper into the bug, is there any insight or pointer that I should look into first ? Thanks!


Unpin Tokio version and fix docs test in CI

Closes #911
Seems like we were using the wrong environment variable in CI: https://github.com/tokio-rs/tokio/issues/3880#issuecomment-866056546

[x] Referenced an issue explaining the need for the change
[ ] Updated all relevant documentation in docs
[ ] Updated all code comments where relevant
[ ] Wrote tests
[ ] Added entry in .changelog/

Codecov Report

Merging #914 (3a5338e) into master (bb828d2) will decrease coverage by 0.0%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master    #914     +/-   ##
========================================
- Coverage    70.7%   70.6%   -0.1%
========================================
  Files         203     203
  Lines       16217   16225      +8
========================================
  Hits        11467   11467
- Misses       4750    4758      +8

Impacted Files
Coverage Δ

tendermint/src/signature.rs
56.4% <0.0%> (-4.2%)
:arrow_down:

light-client/src/types.rs
30.6% <0.0%> (-0.3%)
:arrow_down:

tendermint/src/node.rs
65.7% <0.0%> (-0.3%)
:arrow_down:

tendermint/src/block/commit_sig.rs
79.5% <0.0%> (+2.2%)
:arrow_up:

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 bb828d2...3a5338e. Read the comment docs.


Sever not reaching Internet

Hello,
I set up Rust-server on my unRaid server, and for some reason, I am unable to get my rust server to reach the Internet, however it appears to be running fine on my home network.  I have an Orbi and a Verizon FIOS router, I turned on port forwarding for 28015 and 28016 through both routers, yet it is still not reaching the Internet.  Please let me know what I should do.
Thank you!

I'm having the same problem. Can connect to the server internally but it won't show up in the server list, or be accessible from the internet. Watched the log as it started up and saw this, which may be important:
Starting web server..
nginx: [emerg] bind() to <IP_ADDRESS>:8080 failed (98: Address already in use)
nginx: [emerg] bind() to <IP_ADDRESS>:8080 failed (98: Address already in use)
nginx: [emerg] bind() to <IP_ADDRESS>:8080 failed (98: Address already in use)
nginx: [emerg] bind() to <IP_ADDRESS>:8080 failed (98: Address already in use)
nginx: [emerg] bind() to <IP_ADDRESS>:8080 failed (98: Address already in use)
nginx: [emerg] still could not bind()

Resolved the NGINX thing by changing the HTTP port for UnRaid. Server still won't show in the list, but I'm blaming my own port forwarding at the moment


Map protected by mutex caused panic: concurrent map writes

I've got a simple package to protect map from concurrent read/writes via sync.Mutex. But from time to time I get panic concurrent map writes.
Can you guys see any issue with the below code? What am I doing wrong? Or is this a Go bug?
What did you do?
package stringmap

import "sync"

// concurrentStringMap is a concurrent storage for strings (emails, links etc.)
// that automatically removes duplicates. Very helpful for verifying output
// of Newsletter recipients or URL links in Newsletter HTML/Text.
type concurrentStringMap struct {
	sync.Mutex
	strings map[string]struct{}
}

func NewConcurrentStringMap() concurrentStringMap {
	return concurrentStringMap{
		strings: map[string]struct{}{},
	}
}

func (u concurrentStringMap) Add(str string) bool {
	u.Lock()
	defer u.Unlock()
	if _, ok := u.strings[str]; ok {
		return false
	}
	u.strings[str] = struct{}{} // panic happens here
	return true
}

func (u concurrentStringMap) Slice() []string {
	u.Lock()
	defer u.Unlock()
	slice := make([]string, 0, len(u.strings))
	for str, _ := range u.strings {
		slice = append(slice, str)
	}
	return slice
}

What did you expect to see?
No panic?
What did you see instead?
fatal error: concurrent map writes

goroutine 1194 [running]:
runtime.throw(0x1fe22bf, 0x15)
	/usr/local/go/src/runtime/panic.go:596 +0x95 fp=0xc420ca8dc8 sp=0xc420ca8da8
runtime.mapassign(0x1e03b40, 0xc420bbb890, 0xc420ca8ea0, 0x1b)
	/usr/local/go/src/runtime/hashmap.go:499 +0x667 fp=0xc420ca8e68 sp=0xc420ca8dc8
github.com/pressly/api/lib/stringmap.concurrentStringMap.Add(0x0, 0xc420bbb890, 0xc420ec7560, 0x1b, 0x0)
	***/stringmap/stringmap.go:25 +0x127 fp=0xc420ca8ec0 sp=0xc420ca8e68

Does this issue reproduce with the latest release (go1.8.1)?
System details
go version go1.8 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/vojtechvitek/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hr/5zb8r0yx4sv4_1dc0rlccflm0000gn/T/go-build257984097=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
GOROOT/bin/go version: go version go1.8 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.8 X:framepointer
uname -v: Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.12.3
BuildVersion:	16D32
lldb --version: lldb-370.0.40
  Swift-3.1

You're copying the mutex.  https://golang.org/src/sync/mutex.go, line 25.
You'll need to return a *concurrentStringMap from NewConcurrentStringMap and make all your receivers pointers.

Declare your methods on *concurrentStringMap. Declaring them on
concurrentStringMap will cause the receiver to be copied on each
invocation, copying the lock, making it ineffective.
Vet should also spot this.
On Fri, 21 Apr 2017, 08:31 Vojtech Vitek<EMAIL_ADDRESS>wrote:

I've got a simple package to protect map from concurrent read/writes via
sync.Mutex. But from time to time I get panic concurrent map writes.
Can you guys see any issue with the below code? What am I doing wrong? Or
is this a Go bug?
What did you do?
package stringmap
import "sync"
// concurrentStringMap is a concurrent storage for strings (emails, links etc.)// that automatically removes duplicates. Very helpful for verifying output// of Newsletter recipients or URL links in Newsletter HTML/Text.type concurrentStringMap struct {
sync.Mutex
strings map[string]struct{}
}
func NewConcurrentStringMap() concurrentStringMap {
return concurrentStringMap{
strings: map[string]struct{}{},
}
}
func (u concurrentStringMap) Add(str string) bool {
u.Lock()
defer u.Unlock()
if _, ok := u.strings[str]; ok {
return false
}
u.strings[str] = struct{}{}
return true
}
func (u concurrentStringMap) Slice() []string {
u.Lock()
defer u.Unlock()
slice := make([]string, 0, len(u.strings))
for str, _ := range u.strings {
slice = append(slice, str)
}
return slice
}
What did you expect to see?
No panic?
What did you see instead?
fatal error: concurrent map writes
goroutine 1194 [running]:
runtime.throw(0x1fe22bf, 0x15)
/usr/local/go/src/runtime/panic.go:596 +0x95 fp=0xc420ca8dc8 sp=0xc420ca8da8
runtime.mapassign(0x1e03b40, 0xc420bbb890, 0xc420ca8ea0, 0x1b)
/usr/local/go/src/runtime/hashmap.go:499 +0x667 fp=0xc420ca8e68 sp=0xc420ca8dc8github.com/pressly/api/lib/stringmap.concurrentStringMap.Add(0x0, 0xc420bbb890, 0xc420ec7560, 0x1b, 0x0)
***/stringmap/stringmap.go:25 +0x127 fp=0xc420ca8ec0 sp=0xc420ca8e68
Does this issue reproduce with the latest release (go1.8.1)? System
details
go version go1.8 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/vojtechvitek/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hr/5zb8r0yx4sv4_1dc0rlccflm0000gn/T/go-build257984097=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
GOROOT/bin/go version: go version go1.8 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.8 X:framepointer
uname -v: Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.12.3
BuildVersion:	16D32
lldb --version: lldb-370.0.40
Swift-3.1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/20060, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAcAyQd8myDFshRTyhm7Sydvya0H0x_ks5rx9zcgaJpZM4NDp6-
.

Oh right! Thanks a lot guys!

I have similar problem with mutex on go 1.8 and all work good at 1.7.4
Simplified code:
type Map struct {
	sync.Mutex
	m map[string]int
}

var mymap = Map{
	m: map[string]int{},
}

/// in gorutinas:
mymap.Lock()
mymap.m["ddd"] = 123
mymap.Unlock()

And I have same panic. I'm copying the mutex too? Why all works perfectly on version 1.7.4?
Comment: A Mutex must not be copied after first use. Where it use firs time that I have error?

@night-codes This issue is closed.  For questions about writing Go, please see https://golang.org/wiki/Questions .  Please do not follow up on this issue.  Thanks.
In the code in this issue the mutex is being copied by the method calls, because they use a value receiver.


Update recommended Git client

The empty repository page suggests some git clients. We really should not suggest TortoiseGit and should suggest Fork as a Windows and macOS client.

Done


Git log

I can't understand why VS Code doesn't have include git log?
It's really useful option
I don't say about advanced graphic tree, but something simple for beginning maybe?
Or maybe i can do this in another way ?

Ok i found #68


Fix issue with duplicate points

I recently ran into an issue with a point cloud, where PotreeConvert would become stuck in the indexing phase at 100%. Basically, the symptoms are identical to issue #489.
After some debugging, it got clear that potree detected many duplicate points in the file and was trying to deduplicate them. This calls the contains(map, key) helper for every single point in the current split. This helper takes the map of distinct points by value. Having to copy the map once for every point in the current split takes so long, that it seems like PotreeConvert runs 'forever'.
After changing the signature of contains(map, key) so that it takes its parameters by reference, the problem is gone.

Thanks for the PR!


Added error handling for entity registration

This PR will handle the errors for entity registration

Pull Request Test Coverage Report for Build 322073195

64 of 121 (52.89%)  changed or added relevant lines in 6 files are covered.
8 unchanged lines in 4 files lost coverage.
Overall coverage decreased (-0.02%) to 57.898%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/agent/event_sender_vortex.go
0
2
0.0%

pkg/backend/backoff/backoff.go
17
25
68.0%

pkg/entity/register/worker.go
31
53
58.49%

pkg/backend/identityapi/register_client.go
4
29
13.79%

Files with Coverage Reduction
New Missed Lines
%

pkg/backend/identityapi/register_client.go
1
57.8%

pkg/entity/register/worker.go
1
77.06%

pkg/metrics/sampler/sampler_routine.go
2
94.74%

pkg/integrations/v4/logs/cfg_watcher.go
4
67.5%

Totals

Change from base Build 321747865:
-0.02%

Covered Lines:
10905

Relevant Lines:
18835

💛  - Coveralls


Update toolbar images for octahedral symmetry tool

If you're interested...

LOL.  I've been meaning to get away from the "clever" morphing buttons.  Just waiting to figure out a new iconography, supporting both old and new tools.
I'm OK with this until we have a new scheme, though.

Sorry, I keep sending you pull requests then adding another little tweak
after the fact. This time, I decided the first images were a little
"spindly" compared to the others so I re-did them and just pushed the
clearer pair to github. You can pull them in instead of the original if you
like.
On Fri, Apr 8, 2016 at 1:47 AM, Scott Vorthmann<EMAIL_ADDRESS>wrote:

Merged #28 https://github.com/vorth/vzome-desktop/pull/28.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/vorth/vzome-desktop/pull/28#event-619512047


snmp: adds rule check about snmp.usm keyword

Needs https://github.com/OISF/suricata/pull/7566

Done in https://github.com/OISF/suricata-verify/pull/868


Doesn't respect path argument with mvim

Calling mvim ./some/file/path results in Fern opening to the cwd of the shell, not tho the argument passed (in this case, ./some/file/path).
This is using the default mvim from MacVim 8.2.2164 (169).
Any ideas?

Sorry for late. I haven't watch this repo somehow.
Is ./some/file/path is for file or directory? This plugin simply ignore a file path thus if that's a file path, your configuration might cause such behavior.
Please provides me a minimal vimrc and steps to reproduce if further investigation is required.


Using imported modules in SQL Server Agent causing issues

I have executed powershell within SQL Server Agent for many years using the methods you describe above. However, when I try to use an imported module (ImportExcel.psm1) and use the cmdlet Send-SQLDataToExcel, the cmdlet takes a -Path parameter and passes it to a function Export_Excel. The script that works when run in the powershell ISE fails when run in the SQL Server Agent because it does not recognise the parameter called -Path. Is this something to do with the way SQL Server Agent parses the powershell script looking for specific parameters against the cmdlet rather than any functions that are invoked?

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

ID: db6f2a8a-7b0a-b5b6-7095-b7569d2c23bb
Version Independent ID: 26d6594a-6d7d-7091-0f4b-382bb4a38ebe
Content: Run Windows PowerShell Steps in SQL Server Agent - SQL Server
Content Source: docs/powershell/run-windows-powershell-steps-in-sql-server-agent.md
Product: sql
Technology: scripting
GitHub Login: @markingmyname
Microsoft Alias: maghan

@ChloeWilliams1112 -- thank you for your feedback.  You may find answers here:

DBA Stack Exchange
Stack Overflow

@markingmyname -- please look into this issue #4208.

Hi, @ChloeWilliams1112,
Apologizes for the delayed response.
Thank you for your suggestion and request. We're on it. This will be discussed with the parties involved.
In the meantime, please visit UserVoice to see if this issue was already submitted to the product group.

@ChloeWilliams1112,
Any chance we can request the script you are using?

@ChloeWilliams1112,
Any chance we can request the script you are using?

Yeah, particularity the value of the -Path parameter that you are passing in.

@ChloeWilliams1112
We have not heard back in over a month.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion, and we will reopen the issue. To see what the community is wanting, please visit the UserVoice site.


no tools found after installation

I went thru the git clone and python setup.py install steps. no errors, but there is no apps subdirectory, and mlnquery and mlnlearn are not found any where.
How to get those built or downloaded?

since I don't see the tools, I did python mlnlearn.py like it said in issue 24, but I get
File "/home/bruce/anaconda3/envs/pracmln/lib/python3.6/site-packages/pracmln/mln/learning/bpll.py", line 41, in
from ..util import fsum, temporary_evidence
ImportError: cannot import name 'fsum'
This I don't know how to work around. it's in the bpll.py code. There is a try exception section importing either mpmath or math. what can be wrong there?

you can go to pracmln --> mln --> util.py
then change line 42 "USE_MPMATH = True" to "USE_MPMATH = False"
Note: I have downloaded the whole project and import everything manually
Environment:
Python: 3.6.9
OS: Windows 10
With anaconda

you can go to pracmln --> mln --> util.py
then change line 42 "USE_MPMATH = True" to "USE_MPMATH = False"
Note: I have downloaded the whole project and import everything manually
Environment:
Python: 3.6.9
OS: Windows 10
With anaconda


MRF-9611/Adding support for shadow dom

adding @rubengonzalezmrf so he can start getting familiar with amphtml


Bugfix/1484 unordered map fixes

This changes the return value of erase method of unordered_map from void to iterator

Looks like some tests failed.

Which compiler is being used on the build server?
Looks like it's not C++11 compatible
https://travis-ci.org/cython/cython/jobs/168405515#L7787

Is it ok to update .travis.yml to use GCC 5.X?
http://genbattle.bitbucket.org/blog/2016/01/17/c++-travis-ci/

Moved the tests to broken/libcpp_11_all.pyx, now the build is green.
libcpp_11_all.pyx can be moved to run if it's added into the test suite or not depending on the compiler version.
For example, the tag can be set to cpp11 in here, and runpython.py will only execute this tests if the compiler supports it.

Can we merge this in?

Is there anything I can do to help get this merged?

The test is a) not really testing anything and b) moved to broken/, which disables it completely.
Things to do:

move test file to tests/run/.
move the test code into a function and add a doctest to it that calls and tests it.
enable C++11 for this test, preferably with a new tag like c++11 in runtests.py that sets appropriate compiler flags (and maybe also disables the test on unsupported platforms).

thanks for the patience and the reply. this test does nothing, should i
throw some asserts in there?
at work, we use cython so it would be great if we can help.
I may need help with point 3.  It's a compiler issue vs a compiler flag.
gcc 5, 6, 7 will use c++11 if you add tag --std=c++0x
Thanks again
On Sat, Oct 7, 2017 at 2:49 AM, scoder<EMAIL_ADDRESS>wrote:

The test is a) not really testing anything and b) moved to broken/, which
disables it completely.
Things to do:

move test file to tests/run/.
move the test code into a function and add a doctest to it that
calls and tests it.
enable C++11 for this test, preferably with a new tag like c++11 in
runtests.py that sets appropriate compiler flags (and maybe also
disables the test on unsupported platforms).

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cython/cython/pull/1490#issuecomment-334914877, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABybA5wzeT8eQw1ojeNfEtay3xfQEzYxks5spx8DgaJpZM4KYD14
.


made wren's version number accessable via function

this way its accessible in dll via WREN_API

Not that it should matter some day soon, but I would prefer that it returns an uint64_t instead of a generic int. Otherwise trivially legitimate.

Thanks @Orcolom


Supervised contrastive loss saturation from the beginning on custom data

Hi,
Thank you for the great work.
I am trying to run supervised contrastive loss on my custom dataset of images. It seems that loss is stuck at 6.920 from the beginning and 30 epochs are already done. The batch size is 64 due to GPU memory constraints. Can you tell me why it might be the case?
The data has around 17000 samples and 6 classes (somewhat imbalanced) and I am just on the training stage 1 for now but loss has begun and stuck with 6.920. Any help woule be appreciated.

Hi，I encountered the same problem, did you solve this problem? @zaid478

No, I am still facing this. Infact, I removed minority classes and tried to train on 3 classes (~3000 samples per each class) but the loss just reduced to 5.6 after 800 epochs. The embeddings learned are also very bad.
Any help is appreciated.

Turn on augment "warm" when training seems to solve this problem, at least it works for me.

When training, please turn on the parameter "warm", it seems to solve this problem, at least it works for me.

When training, please turn on the argument"--warm", it seems to solve this problem, at least it works for me

When training, please turn on the argument"--warm" or set a larger learning rate（--learning_rate 0.5）, it seems to solve this problem, at least it works for me

When training, please turn on the argument"--warm" or set a larger learning rate（--learning_rate 0.5）, it seems to solve this problem, at least it works for me

Hi.I use this repo for my project.I need accuracy for each epoch and validation step.Have you ever tried code for get this parameters?


Do Not Merge : Upgrade fmt to 10.1.1 (from 8.0.1) (#7941)

This is a Copy of @assignUser's PR with some changes to get OSS CI Signals. Its not meant for merging.
I will close this PR when the original PR(below) is merged and closed.
Summary:
fmt 8.0.1 is not upwards compatible to 9+ but backwards compatibility should not be an issue from what I could see in the logs and have done during https://github.com/facebookincubator/velox/issues/7700 (newst folly is compatible with fmt 10 but we built it with 8.0.1).
Closes https://github.com/facebookincubator/velox/issues/7896
Differential Revision: D52880145
Pulled By: kgpai

#7941 was merged