Connecting iPhone with WSL 2 (Ubuntu)

Hello,
Following this method: https://github.com/jovton/USB-Storage-on-WSL2  I have enabled USB storage support in WSL 2 which is running on Ubuntu 20.04.
Also I have found that there is way to connect Android devices too: https://github.com/microsoft/WSL/issues/4692
But I'm using an iPhone and looking for a proper way to connect it with WSL. it can't get connected with WSL like traditional storage devices (i.e. Pendrive).
is there any way to connect my iPhone with WSL 2?

This is how you would do it in real Ubuntu
https://www.maketecheasier.com/easily-mount-your-iphone-as-an-external-drive-in-ubuntu/
Maybe you can do something similar like adb. It seems installing iTunes in Windows makes your device available through TCP localhost:27015 so you could try using
export USBMUXD_SOCKET_ADDRESS=<IP_ADDRESS>:27015 before calling idevicepair pair in WSL2.

@onomatopellan so you are saying i don’t need iSCSI method to connect iPhone with WSL?  Just connecting the phone with Windows and giving following command will work?
export USBMUXD_SOCKET_ADDRESS=<IP_ADDRESS>:27015

I didn't try it because I don't have an iPhone. You should try first in a real Ubuntu or in a Virtual Machine and if you succeed the try in WSL2.

That's what Libsusmuxd developer thinks.
I didn't try it because I don't have an iPhone. You should try first in a real Ubuntu or in a Virtual Machine and if you succeed then try in WSL2.

Real Ubuntu will get iPhone as usual, but connecting it with WSL is the hardest part. It seems usbmuxd didn’t help that guy in given link.

Because that was WSL1. Maybe it works in WSL2.
What I'm sure is if you succeed it will be with a TCP method like adb/xserver/Pulseaudio.
This explains the iTunes thing:
https://www.secureauth.com/sites/default/files/project/attachment/2018-10/iPhone-TCP-connection-through-USB.pdf

@onomatopellan
The method of https://www.maketecheasier.com/easily-mount-your-iphone-as-an-external-drive-in-ubuntu/ is working in Real ubuntu machine, but not in WSL 2.
I have iTuens installed and I tried with usbmuxd command. But device is not being detected.

I also tested with <IP_ADDRESS> and <IP_ADDRESS> IP. But same result. Although the command of usbmuxd didn't produce any error. What to do now?

In Resource Monitor -> Network tab- > Listening ports can you see if there is an exe listening on port 27015?

@onomatopellan
yes, a process is running on port 27015

Also tried with PC's IP (<IP_ADDRESS>) but result is same. No iphone is detected.

AppleMobiceDeviceService is actually using USBMUXD so you already have it in the Windows side waiting for connections.
Now the problem is connecting from WSL2. Try idevicepair --debug pair to see if it shows more info.

AppleMobiceDeviceService is actually using USBMUXD so you already have it in the Windows side waiting for connections.
Now the problem is connecting from WSL2. Try idevicepair --debug pair to see if it shows more info.
BTW, its your iPhone jailbroken?

@aseering
yes, iPhone is jailbroken. is it an issue?
--debug command not showing anything new. Just the same output like before that device not found.

@thedozo No problem. If it's jailbroken you can always try things like ssh to access to the iPhone if it's connected to your network.
https://www.reddit.com/r/jailbreak/comments/au20zn/tiptutorial_ssh_into_your_ios_device_on_windows/

@onomatopellan
Yes, i can ssh Into it but it’s not serving my purpose. I need to connect it somehow with WSL to run some CLI tools to work with the device.

I see. And normally those tools what are using to connect to the device? libusb?

I see. And normally those tools what are using to connect to the device? libusb?

Yes, usb. iPhone need to be connected with USB port to those tools detect it correctly.

No, I mean the library used to access those usb ports. Libusb is most common library in Linux but I don't know on Mac world.

No, I mean the library used to access those usb ports. Libusb is most common library in Linux but I don't know on Mac world.

Yes, libusb. Now I actually need to ‘fool’ the WSL system to believe that iPhone is connected with it via USB post.

Did you see the sudo dmesg output? Any error usb related?

Did you see the sudo dmesg output? Any error usb related?

@onomatopellan
no, nothing related to usb in dmesg output :(

SO no solution for me yet?
:sigh:

SO no solution for me yet?

Yes, there is and will be always a solution -- install a GNU/Linux distribution and dual-boot it. 🤓

@thedozo Any example/source code of linux tools you want to use with the iPhone?

@thedozo Any example/source code of linux tools you want to use with the iPhone?

@onomatopellan
Yes, here is one- https://checkra.in/releases/

SO no solution for me yet?

Yes, there is and will be always a solution -- install a GNU/Linux distribution and dual-boot it. 🤓

Ha Ha funny...but no way, thanks

checkra1n is released in binary form only at this stage. We plan to open-source later in 2020.

Thanks. And any tool with source available?

checkra1n is released in binary form only at this stage. We plan to open-source later in 2020.

Thanks. And any tool with source available?

Here’s another- https://sourceforge.net/p/iphoneanalyzer/code/HEAD/tree/

Not really source code since uses jar files. Tell me if you find another tool with open sources preferably hosted on github.

For checkra1n, as last resort, how about trying running this ISO in a Hyper-v machine? https://github.com/foxlet/bootra1n
About USBIP, this is what I was looking for: https://github.com/axi0mX/ipwndfu
This one uses a Python library that calls libusb library and thus it should work with a working USBIP. If I have time I'd try to see if USB are really available via USBIP in WSL2.

For checkra1n, as last resort, how about trying running this ISO in a Hyper-v/VMWare virtual machine? https://github.com/foxlet/bootra1n
About USBIP, this is what I was looking for: https://github.com/axi0mX/ipwndfu
This one uses a Python library that calls libusb library and thus it should work with a working USBIP. If I have time I'd try to see if USB are really available via USBIP using this library in WSL2.

Ok. pls let me know of you find anything. I already tested USB/IP though. It can attach iPhone but can't be detected by tools: https://github.com/cezanne/usbip-win/issues/149 and https://github.com/cezanne/usbip-win/issues/150

Ok, this is what I found. Whatever the method you use to access the USB ports (USBIP, iSCSI, VirtualHere) if your device appears in lsusb half the job is done. The other half is the kernel and the distro packages. Recompiling the kernel was not enough until I installed mtp-tools and gmtp. You also will need an Xserver like Vcxsvr and install the gtk2.0 package. I finally managed to connect my Galaxy Tab A through ADB and MTP connections but sure it's slow.

So if the iPhone appears in lsusb and you still can't access the device then something is missing, could be the USB cable,  the usb port connection (USB2.0, 3.0 , 3.1, type-c) incompatible for USBIP or the kernel needs to be recompiled with some weird parameter. The best would be connect the iPhone on a real Linux do sudo lsmod and notate the modules needed to use the device.

Ok, this is what I found. Whatever the method you use to access the USB ports (USBIP, iSCSI, VirtualHere) if your device appears in lsusb half the job is done. The other half is the kernel and the distro packages. Recompiling the kernel was not enough until I installed mtp-tools and gmtp. You also will need an Xserver like Vcxsvr and install the gtk2.0 package. I finally managed to connect my Galaxy Tab A through ADB and MTP connections but sure it's slow.

So if the iPhone appears in lsusb and you still can't access the device then something is missing, could be the USB cable, the usb port connection (USB2.0, 3.0 , 3.1, type-c) maybe incompatible for USBIP or the kernel needs to be recompiled with some weird option. The best would be connect the iPhone on a real Linux do sudo lsmod and notate the modules needed to use the device.

Ok i will check it from Real Linux machine. Btw can you pls tell me about virtual here? Seems you are using it, easier than iSCI or USB/IP method?

I found it very easy to use. It's free if you connect 1 device and you use the gui linux version as client.
For the server, just download and run it:
https://www.virtualhere.com/sites/default/files/usbserver/vhusbdwin64.exe
For the client (you need an XServer and gtk2):
wget https://www.virtualhere.com/sites/default/files/usbclient/vhuit64
chmod 777 vhuit64
sudo ./vhuit64

After that you can right click -> "Specify the hub" and add YOUR_PC_IP:7575
right click on a device -> Use this device
And that's it. You should see the device with lsusb.
BTW which model of iPhone and which Real Linux Distro are you running?

I found it very easy to use. It's free if you connect 1 device and you use the gui linux version as client.
For the server, just download and run it:
https://www.virtualhere.com/sites/default/files/usbserver/vhusbdwin64.exe
For the client (you need an XServer and gtk2):
wget https://www.virtualhere.com/sites/default/files/usbclient/vhuit64
chmod 777 vhuit64
sudo ./vhuit64

After that you can right click -> "Specify the hub" and add YOUR_PC_IP:7575
right click on a device -> Use this device
And that's it. You should see the device with lsusb.
BTW which model of iPhone and which Real Linux Distro are you running?

Ok. thanks.
I’m using iPhone 7 plus and Debian as Real Linux.

Also please post here the /proc/config.gz file from Real Linux. That file contains the config of the Debian kernel.

@onomatopellan
Here's the lsmod output after connecting the iphone with Real Linux machine:
lsmod.txt

@onomatopellan
Here's an issue. I have installed virtualhere as you described and everything goes fine. I can attach normal USB devices (pendrive, memory card etc.) with this tool fine. but I can't attach my iPhone with WSL in this method.

what to do now pls?

For the config file you can create a text file with zcat /proc/config.gz > file.txt
Before continue with VirtualHere you need to update the kernel. Looking at your lsmod.txt the module lacking is ipheth. Without that most tools won't work. Try this kernel
bzImage.txt
Use wsl.exe --shutdown and update the .wslconfig file to load the kernel. It should include everything needed so you don't have to load more usb modules via script.
After that use the method you can until you see the device listed in lsusb. Now tools like ´idevicepair´ or ´ifuse´ shoud work.

@onomatopellan
BIG THANKS MAN!
After booting from your given kernel, Now I can connect my iPhone and also run CLI tool as well.

iPhone is connected and lsusb

CLI Tool is running and phone is detected

VirtualHere is a life saver for me.

@onomatopellan
btw what is special about this kernel? does it have all USB modules installed? Can you pls share the config file for this kernel?
So that I can compile later if i ever need to install newer kernel version.

Nothing extraordinary. Just configure with make nmenuconfig and enable things with "*" instead of "M" so everything will be in the kernel.
config-wsl.txt

@thedozo Just for security, you should hide you ECID in that last screenshot

@thedozo Just for security, you should hide you ECID in that last screenshot

Ohhh....ok

@Marietto2008
Hello, finally i have succeed in achieving my goal with VirtualHere, it seesms easier than USB/IP. You can give it a try for your Kinect device if you want to.

Hi, I'm still having this problem, I'm using Virtual Here to connect my iPhone 5S to Ubuntu running the kernel @onomatopellan provided and it shows in lsusb but not when running idevicepair pair, or any other CLI tool. When running checkra1n the device is not detected, but running in CLI mode with sudo checkra1n -c with the device already manually placed in DFU mode the tool is able to detect the device, albeit failing to execute successfully but that is to be expected. I understand why checkra1n will not work, but how can I get it to detect the device when not in DFU mode?


Redesigning Blog page

Redesigning the Blog page with exciting new features
Features

Student can add new blogs using backend
Response
Read the previous blog

I have prior experience of creating a blog website.
Please assign it to me under GSSoC

This is an hashnode website therefore , cannot make changes to it .


Persistent cobweb slimeballs

Slimeball entities with cobweb texture and projectile trail animation are being generated in the sky without explanation.  These are persistent and in some cases have been generated in large numbers.

Issue should no longer happen in latest betas.


Github Action tests for GraalVM native-image

This adds CI tests for GraalVM native-image. It uses the official plugin, and builds upon #649 as Junit5 is required to run tests automatically inside the native-image.
Some tests are failing, but since Maven Surefire plugin can only exclude tests by class, I had to split some classes, so most of the tests would still run. I tried adding as much information as I could in pom.xml about the test exclusions. Note that the exclusions are only done when running with the native profile.
I also had to disable native tests on Java 8 under ubuntu, it fails with some unknown symbol: cos, while it works fine on Java 11, and on other platforms.
@ericdallo your feedback would be appreciated, as I had to change a few things around configuration for JNI reflection.

#649 is merged. We need to resolve conflicts.

#649 is merged. We need to resolve conflicts.

I will take care of this.

Merged. Thanks for the test code cleanup too.


Implement contact us feature

Description
store the details from contact us page to database only for now and give a msg of success or failure
Screenshots
No response

Hi @arpit456jain, I wish u are fine
Can you please assign me to this issue

i want to contribute please assign it to me under GSSoc'22.

I'm the first person who asked to solve  the issue
please choose another issue @vickyrules
please assign it to me @arpit456jain

@Muhammad-Galhoum make PR within 2 days otherwise i have to assign it to @vickyrules

Ok, thanks @arpit456jain

hello, I wants to work on this issue


change import of pyshorteners to directly import submodules to fix #144

fixes #144
The following code
from pyshorteners import Shortener
# ...
short = Shortener().tinyurl.short(url).removeprefix("https://")

seems to be problematic in production, as Shortener initializes by reading all shortener python-modules from a subdirectory. This seems to work in development, but pyinstaller probably leaves out the subdirectory. Only if directly importing the submodule, the issue vanishes in production too
from pyshorteners import shorteners
# ...
short = shorteners.Shortener().tinyurl.short(url).removeprefix("https://")

meta_tags_dialog.py is the only python module using pyshorteners and we only use tinyurl shortener.

I thought the required change might one day look like something that can be simplified which in turn will reintroduce the error. In order to prevent this, I thought it is best tonprovide a note right there to point out that this line is on purpose the way it is.

I think that's unlikely as the new code is perfectly fine. But if you want to keep the comment, maybe you could reduce it to a line or so?
Another solution would be to pass the missing module explicitly to Pyinstaller (hidden-import).


noValidate attribute is tested against the wrong element

noValidate attribute seems to be tested on the input element but it should be tested on the form element.
For the input element, there is formNoValidate attribute (which is already tested).
As a result, no browser passes this test (as far as tested, which means Chromium, Opera Next and Firefox).
Unfortunately, I can't provide a patch given that the github repository isn't up to date.

Fixed


Translated comments for PR #245

This PR contains translated comments for the merged PR #245

后面注释也都要翻译嘛，还是都会自动翻译？感觉如果是手动写双份注释比较麻烦，不如用个 ide 翻译插件啥的

Do the comments in the back also need to be translated, or will they be automatically translated? It feels like manually writing dual versions of comments is more trouble, it's better to use an IDE translation plugin or something.

后面注释也都要翻译嘛，还是都会自动翻译？感觉如果是手动写双份注释比较麻烦，不如用个 ide 翻译插件啥的

不需要手动写注释, 就像这个一样AI 会自动翻译, 然后自己提交pr

https://github.com/ZLMediaKit/Github-AI-Assistant/tree/main
提交patch后会自动对patch进行语义分割和向量化, 然后利用之前建立的向量数据库和索引作为上下文, AI自动生成review.
当patch被合并后, 会自动的针对patch中的中文注释生成一个翻译的pr并提交.所以不需要手动的翻译.

Do the comments in the back also need to be translated, or will they be automatically translated? It feels like manually writing dual versions of comments is more trouble, it's better to use an IDE translation plugin or something.

后面注释也都要翻译嘛，还是都会自动翻译？感觉如果是手动写双份注释比较麻烦，不如用个 ide 翻译插件啥的

TRANS_BY_GITHUB_AI_ASSISTANT


Paging with joinEager fails on first fetch

I found a bug with paging and eager joins. The first query to do a paged load of a joined relationship will fail if the RelationJoinBuilder.columnInfo isn't yet populated. ColumnInfo gets populated by the main query in JoinEagerOperation.onBefore2, but the count(*) operation runs in parallel and gets an error when it tries to access the columnInfo.
Ex:
class Foo extends Model {

  static get relationMappings() {
    const Bar = require('./Bar');
    return {
      bar: {
        relation: Model.HasOneRelation,
        modelClass: Bar,
        join: {
          from: 'Foo.id',
          to: 'Bar.fooId'
} } } } }

Foo.query().joinEager('[bar]').page(0, 5);

The first time this runs, you will get the following error. After that, the RelationJoinBuilder.columnInfo cache will be populated and queries will succeed.
TypeError: Cannot read property 'length' of undefined
at RelationJoinBuilder.buildSelects (node_modules/objection/lib/queryBuilder/operations/eager/RelationJoinBuilder.js:357:33)
at RelationJoinBuilder.doBuild (node_modules/objection/lib/queryBuilder/operations/eager/RelationJoinBuilder.js:256:12)
at RelationJoinBuilder.build (node_modules/objection/lib/queryBuilder/operations/eager/RelationJoinBuilder.js:113:10)
at JoinEagerOperation.onBuild (node_modules/objection/lib/queryBuilder/operations/eager/JoinEagerOperation.js:50:22)
at QueryBuilder.buildInto (node_modules/objection/lib/queryBuilder/QueryBuilderOperationSupport.js:190:10)
at buildInto (node_modules/objection/lib/queryBuilder/QueryBuilder.js:1199:25)
at QueryBuilder.build (node_modules/objection/lib/queryBuilder/QueryBuilder.js:524:19)
at Builder.knex.count.from.knexBuilder (node_modules/objection/lib/queryBuilder/QueryBuilder.js:496:15)
at Formatter.compileCallback (node_modules/knex/lib/formatter.js:181:14)
at Formatter.wrap (node_modules/knex/lib/formatter.js:135:38)
at QueryCompiler_PG.get (node_modules/knex/lib/query/compiler.js:669:52)
at QueryCompiler_PG.columns (node_modules/knex/lib/query/compiler.js:242:79)
at node_modules/knex/lib/query/compiler.js:157:31
at Array.map ()
at QueryCompiler_PG.select (node_modules/knex/lib/query/compiler.js:156:33)
at QueryCompiler_PG.toSQL (node_modules/knex/lib/query/compiler.js:110:27) } }

@koskimas  heads up - I have the same issue here in 1.0.0 caused by .resultSize()


Fatal error: concurrent map read and map write

I have encountered this panic one time. Below the complete stack trace.
After this panic, the terminal is not usable anymore (cannot type in it).
fatal error: concurrent map read and map write

goroutine 27 [running]:
runtime.throw(0x73bc06, 0x21)
	/usr/lib/go/src/runtime/panic.go:596 +0x95 fp=0xc420162ec8 sp=0xc420162ea8
runtime.mapaccess2_faststr(0x6ce980, 0xc42015c0c0, 0xc420156300, 0x40, 0xc420162f80, 0x4063f5)
	/usr/lib/go/src/runtime/hashmap_fast.go:326 +0x50a fp=0xc420162f28 sp=0xc420162ec8
main.(*DockerContainerSource).MustGet(0xc420168180, 0xc420156300, 0x40, 0x1)
	/home/bradley/repos/bcicen/ctop/dockersource.go:109 +0x53 fp=0xc420162f90 sp=0xc420162f28
main.(*DockerContainerSource).Loop(0xc420168180)
	/home/bradley/repos/bcicen/ctop/dockersource.go:102 +0x9d fp=0xc420162fd8 sp=0xc420162f90
runtime.goexit()
	/usr/lib/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420162fe0 sp=0xc420162fd8
created by main.NewDockerContainerSource
	/home/bradley/repos/bcicen/ctop/dockersource.go:34 +0x148

ctop_stack_trace.txt

Thanks @florenthemmi. read/write locks have been added in the latest release, so this should now be resolved.


Add note to point devs at @most/core for new projects

Summary
@most/core is the future of mostjs, and most 2.0 is close.  Most 2.0 will be based on @most/core, will be directly compatible with it, and will be a trivial upgrade for folks who prefer a single dependency in their package.json.
The goal of this addition is to help devs make a more forward-compatible choice for new projects and let them know there will be a guide to help them upgrade existing projects.  It encourages devs to pick @most/core now for new projects, and points existing most 1.x-based projects to the upgrade guide (still a WIP as of this writing).

I added the same note to the top of the API docs in 934638


ETags/Retry support for "pmtiles serve"

Requires using https://gocloud.dev/concepts/as/

I played around with this, looks like it's fairly straightforward to make it work for s3 at least:
-func (ba BucketAdapter) NewRangeReader(ctx context.Context, key string, offset, length int64) (io.ReadCloser, error) {
-       reader, err := ba.Bucket.NewRangeReader(ctx, key, offset, length, nil)
+func (ba BucketAdapter) NewRangeReader(ctx context.Context, key string, offset, length int64, etag string) (io.ReadCloser, string, error) {
+       reader, err := ba.Bucket.NewRangeReader(ctx, key, offset, length, &blob.ReaderOptions{
+               BeforeRead: func(asFunc func(interface{}) bool) error {
+                       var req *s3.GetObjectInput
+                       if len(etag) > 0 && asFunc(req) {
+                               req.IfMatch = &etag
+                       }
+                       return nil
+               },
+       })
        if err != nil {
-               return nil, err
+               return nil, "", err
+       }
+       resultEtag := ""
+       var resp *s3.GetObjectOutput
+       if len(etag) > 0 && reader.As(resp) {
+               resultEtag = *resp.ETag
        }
-       return reader, nil
+       return reader, resultEtag, nil
 }

How do you think it should handle when it detects the etag has changed? Clear the cache for every entry associated with this file and retry from the root?

How do you think it should handle when it detects the etag has changed? Clear the cache for every entry associated with this file and retry from the root?

Yeah, with at most 1 retry allowed, otherwise a badly behaved storage system or http server could put it into a loop

Or it could just return the etag and the caller handles the if-match logic

I would prefer to use If-Match on the request side if possible across all implementations, because checking ETags only on the response side doesn't work with intermediate caches (like the browser), and if archives shrink making a range request past the end of the new archive returns 416 Range not Satisfiable instead of 200 + new etag


Re-enable communities

With patches added to Launcher since disabling communities we should now no longer be susceptible to attacks currently targeted at the default Network in-game.
As such we could re-enable community functionality. Whether we should is up for debate. Hence I marked this PR as draft.
Please use :+1: and :-1: to vote on whether we should re-enable communities and/or leave feedback as comments <3
Reverts

5d51cdaabb4e88bf61414f5c2c7fba278aef7c6b
893db637d5471dc3eb43a8d0ba77cb5d49cd5008

Just sorta bumping this, provided we have patched the issues I see no issues with this

there's no issues with this but unsure if we should reenable because we don't interact with communities in the same way vanilla does, might be nicer to reimplement to some degree first?

The space used up by communities could also be replaced by party ui to list players when invites are implemented

Is this still relevant? If someone doesn't want communities setting the convar in startupargs is no issue

Is this still relevant? If someone doesn't want communities setting the convar in startupargs is no issue

Not really, no.


Fix: Added the missing avatar in the chatbot section (#192)

Issue Title:
Resolve issue: #192
Type of change ☑
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[ ] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

How Has This Been Tested? ⚙
I have tested it on my local server.
Screenshots :

Hey @Shubham-1068,
Could you kindly share a screenshot of the changes you've made? It's often beneficial to attach a screenshot along with the PR for better clarity.

As per your request i have added a screenshot to my PR, kindly review it.

LGTM
ready to be merged! @singodiyashubham87 🚀

@Shubham-1068 Are you working on the issue?
Do reply asap o/w I have to close the PR & assign the issue to next person who asked to resolve the issue.


Reactive autoconfiguration should be enabled only if binding configuration is active

This is a slightly odd issue though - as org.springframework.cloud.stream.reactive.ReactiveSupportAutoConfiguration is in fact only enabled if a org.springframework.cloud.stream.binding.BindingService bean is present.

The original issue seems to have been caused by an outdated library. Closing.


New version: Bisq.Bisq version 1.9.14

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: Open in CodeFlow

@wingetbot waivers Add Validation-Executable-Error


Launching docker container in interactive mode

I was expecting repo2docker https://github.com/binder-examples/conda-freeze /bin/bash to give me a shell inside the container. Instead it builds the image and then exits straight away.
I think this is because we would have to do the equivalent of docker run -it <image> /bin/bash but don't. Should we add a --interactive CLI flag that turns on this behaviour?

so you're thinking that it'd send you to shell after the jupyter server starts?

No. If I specify a command repo2docker ..stuff.. /bin/bash I expect it to not run the jupyter server but only the command I specified. This works except it doesn't connect me to the "end" of the bash session.
"Interactive mode" is the difference between docker run --rm ubuntu:latest /bin/bash vs docker run -it --rm ubuntu:latest /bin/bash.

I think implementing the equivalent of '--interactive' to docker run without using the docker binary directly is not easy. See https://github.com/docker/docker-py/issues/247.

Maybe a quick win is to have repo2docker --interactive ... (or some such) print out the docker run command to use as a form of syntactic sugar. Have you tried https://github.com/d11wtq/dockerpty?

@betatim I like the idea of us printing the command.


ci: Get rid of unused pip cache

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (cf3d3f0) to head (f55bcd0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #60   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines           89        89
  Branches         2         2
=========================================
  Hits            89        89

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


metric-proxy pod metrics unable to fetch from prometheus in cf-for-k8s v0.6.0

Describe the bug
metrics exposed from metric-proxy at port 9090 are reachable in localhost(0:9090 ---> inside the pod). But not able to reach from outside. Whereas the metrics from instio-proxy container within the pod(http://:15090/stats/prometheus) am able to fetch from outside(from prometheus pod).
To Reproduce*
Steps to reproduce the behavior:

ssh into metric-proxy container within cf-system namespace and curl for 0:9090/metrics. We will be able get it.
Now ssh into other pod either within same namespace(cf-api-server pod) or into prometheus pod and try scraping the metrics, when doing it via prometheus pod running in different namespace we get -

Get http://<IP_ADDRESS>:9090/metrics: context deadline exceeded

scraping via cf-api-server container within same namespace(cf-system), we get -
curl: (56) Recv failure: Connection reset by peer

Expected behavior
Metrics should have been scraped from 9090 port as it was able to from 15090.
Additional context
cf-for-k8s SHA
_https://github.com/cloudfoundry/cf-for-k8s/commit/7c65597af7a4de935994813658a5db182fbecac9_
Deploy instructions
Deploying the release with default configurations with incluster persistence
Cluster information
Using Gardener for creation of K8s cluster
CLI versions
paste output of the following commands

ytt --version: 0.30.0
kapp --version:0.33.0
kubectl version:

lient Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.0", GitCommit:"e19964183377d0ec2052d1f1fa930c4d7575bd50", GitTreeState:"clean", BuildDate:"2020-08-26T21:54:15Z", GoVersion:"go1.15", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.8", GitCommit:"35dc4cdc26cfcb6614059c4c6e836e5f0dc61dee", GitTreeState:"clean", BuildDate:"2020-06-26T03:36:03Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

cf version:6.52.0+b086fe522.2020-08-26

@PavanVasist Can you give us more clarity on how you deployed prometheus? Were you using the instructions in cf-for-k8s-metrics-examples, cf-k8s-prometheus or by another means?

Hi @kkburr - We had the below setup for prometheus.

Deployed prometheus in another(monitoring) namespace using helm chart

Created respective NetworkPolicy to allow prometheus to scrape from cf-system namespace.

---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-prometheus-scrape
  namespace: cf-system
spec:
  podSelector: {}
  policyTypes:
  - Ingress
  ingress:
  - from:
    - namespaceSelector:
        matchLabels:
          purpose=monitoring
      podSelector:
        matchLabels:
          app=prometheus

Prometheus image version - prom/prometheus:v2.16.0

Regarding your prometheus deployed into another namespace, you'd have to update the existing network policy on metric-proxy to include ingress from your prometheus.
The NetworkPolicy shared above doesn't appear to be a valid manifest when I try to deploy it. The labels should use colons instead of equals.
I was able to to partially reproduce your error, however when exec'd onto the cf-api-server pod, I got the following error instead:
curl: (52) Empty reply from server

To fix this, I added an extra istio annotation traffic.sidecar.istio.io/excludeInboundPorts: "<metrics-port>" to exclude the metric-proxy from istio mTLS and was able to curl the metric-proxy metrics endpoint via the cf-api-server pod. However, please note, that we've working on making Prometheus completely compatible with Istio.
We recently committed this change: https://github.com/cloudfoundry/cf-k8s-prometheus/commit/bf9d5dfa4a526c3b7b7fa098795f91df30c96f75 which would allow you to see metric-proxy and uaa metrics. Be aware that because the cf-api-server is currently using the traffic.sidecar.istio.io/excludeInboundPorts: "<metrics-port>" annotation, you won't be able to reach CAPI's metrics until you remove that.
We do intend to include Prometheus in cf-for-k8s but this is still a work in process.

It's good to hear that prometheus support is coming by default with cf-for-k8s:)...
I added the annotation  traffic.sidecar.istio.io/excludeInboundPorts: "9090"  to metrics-proxy pod and then did a curl from cf-ap-server pod. Still no luck. We are using cf-for-k8s v0.6.0 Anything else am i missing.

Can you share the entire updated deployment manifest for metric-proxy?

PFB the same -
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "4"
    kapp.k14s.io/change-rule.istio-sidecar-injector: upsert after upserting cf-for-k8s.cloudfoundry.org/istio-sidecar-injector
    kapp.k14s.io/identity: v1;cf-system/apps/Deployment/metric-proxy;apps/v1
    kapp.k14s.io/original: '{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{"kapp.k14s.io/change-rule.istio-sidecar-injector":"upsert
      after upserting cf-for-k8s.cloudfoundry.org/istio-sidecar-injector"},"labels":{"app":"metric-proxy","kapp.k14s.io/app":"1598428386871241000","kapp.k14s.io/association":"v1.19fde1e94b7fc26272a00c0d1d0decbc"},"name":"metric-proxy","namespace":"cf-system"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"metric-proxy","kapp.k14s.io/app":"1598428386871241000"}},"template":{"metadata":{"annotations":{"prometheus.io/path":"/metrics","prometheus.io/port":"9090","prometheus.io/scrape":"true"},"labels":{"app":"metric-proxy","kapp.k14s.io/app":"1598428386871241000","kapp.k14s.io/association":"v1.19fde1e94b7fc26272a00c0d1d0decbc"}},"spec":{"containers":[{"env":[{"name":"ADDR","value":":8080"},{"name":"APP_SELECTOR","value":"cloudfoundry.org/guid"},{"name":"NAMESPACE","value":"cf-workloads"},{"name":"QUERY_TIMEOUT","value":"5"},{"name":"CA_PATH","value":"/ca/tls.crt"},{"name":"CERT_PATH","value":"/metric-proxy-certs/tls.crt"},{"name":"KEY_PATH","value":"/metric-proxy-certs/tls.key"}],"image":"oratos/metric-proxy@sha256:938ac36f0f1ede38b1ed7b2451b918345709848fc807a11500fd9b1b05fd239d","imagePullPolicy":"Always","name":"metric-proxy","ports":[{"containerPort":8080},{"containerPort":9090}],"volumeMounts":[{"mountPath":"/ca","name":"ca","readOnly":true},{"mountPath":"/metric-proxy-certs","name":"metric-proxy-certs","readOnly":true}]}],"serviceAccountName":"metric-proxy","volumes":[{"name":"ca","secret":{"secretName":"metric-proxy-ca-ver-1"}},{"name":"metric-proxy-certs","secret":{"secretName":"metric-proxy-cert-ver-1"}}]}}}}'
    kapp.k14s.io/original-diff-md5: 6dbe83dfe9afc45a899f3a89e4d0297d
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"metric-proxy"},"name":"metric-proxy","namespace":"cf-system"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"metric-proxy"}},"template":{"metadata":{"annotations":{"prometheus.io/path":"/metrics","prometheus.io/port":"9090","prometheus.io/scrape":"true"},"labels":{"app":"metric-proxy"}},"spec":{"containers":[{"env":[{"name":"ADDR","value":":8080"},{"name":"APP_SELECTOR","value":"cloudfoundry.org/guid"},{"name":"NAMESPACE","value":"cf-workloads"},{"name":"QUERY_TIMEOUT","value":"5"}],"image":"oratos/metrics-server:v1.0.0@sha256:266be9306a2cb1aa862b382bdc5b029e000efd25aa8c0ceab3fffa66cf6ab512","imagePullPolicy":"Always","name":"metric-proxy","ports":[{"containerPort":8080},{"containerPort":9090}]}],"serviceAccountName":"metric-proxy"}}}}
    traffic.sidecar.istio.io/excludeInboundPorts: 15090,9090
  creationTimestamp: "2020-08-26T07:56:07Z"
  generation: 7
  labels:
    app: metric-proxy
    kapp.k14s.io/app: "1598428386871241000"
    kapp.k14s.io/association: v1.19fde1e94b7fc26272a00c0d1d0decbc
  name: metric-proxy
  namespace: cf-system
  resourceVersion: "6620012"
  selfLink: /apis/apps/v1/namespaces/cf-system/deployments/metric-proxy
  uid: 5b55af00-c469-48a0-8f27-e509c36c4993
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: metric-proxy
      kapp.k14s.io/app: "1598428386871241000"
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      annotations:
        prometheus.io/path: /metrics
        prometheus.io/port: "9090"
        prometheus.io/scrape: "true"
      creationTimestamp: null
      labels:
        app: metric-proxy
        kapp.k14s.io/app: "1598428386871241000"
        kapp.k14s.io/association: v1.19fde1e94b7fc26272a00c0d1d0decbc
    spec:
      containers:
      - env:
        - name: ADDR
          value: :8080
        - name: APP_SELECTOR
          value: cloudfoundry.org/guid
        - name: NAMESPACE
          value: cf-workloads
        - name: QUERY_TIMEOUT
          value: "5"
        - name: CA_PATH
          value: /ca/tls.crt
        - name: CERT_PATH
          value: /metric-proxy-certs/tls.crt
        - name: KEY_PATH
          value: /metric-proxy-certs/tls.key
        image: oratos/metric-proxy@sha256:266be9306a2cb1aa862b382bdc5b029e000efd25aa8c0ceab3fffa66cf6ab512
        imagePullPolicy: Always
        name: metric-proxy
        ports:
        - containerPort: 8080
          protocol: TCP
        - containerPort: 9090
          protocol: TCP
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /ca
          name: ca
          readOnly: true
        - mountPath: /metric-proxy-certs
          name: metric-proxy-certs
          readOnly: true
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: metric-proxy
      serviceAccountName: metric-proxy
      terminationGracePeriodSeconds: 30
      volumes:
      - name: ca
        secret:
          defaultMode: 420
          secretName: metric-proxy-ca-ver-1
      - name: metric-proxy-certs
        secret:
          defaultMode: 420
          secretName: metric-proxy-cert-ver-1

Ahh ok the annotation actually needs to be in the pod spec section next to the prometheus annotations.

@PavanVasist , we recently fixed this, it should be in the latest cf-for-k8s. If you are deploying Prometheus via cf-k8s-prometheus, you should be able to see metric-proxy metrics in prometheus.


Update workflows to package and release standalone binaries

Opening as a draft so it isn't accidentally merged before #343.
This PR is a follow-up to #343 that updates the GHA workflows to build, test, and release the standalone binaries created by @vercel/pkg.
Modifications to dev-containers.yml:

Fails fast (can remove this)
Only run Test job when relevant files are modified
Cache node_modules dirs between jobs/across CI runs
Update CLI job to build the standalone binaries on ubuntu-20.04, macos-11, and windows-2019
Update Test job to run a subset of the tests on the standalone binaries (though can expand this to all tests if preferred!)

See here for an example of a successful run.
Modifications to publish-dev-containers.yml:

Doesn't publish the npm package if run from a repo other than @devcontainers/cli
Allow running workflow manually

Uses the most recent tag to the current commit if releasing manually
Allows maintainers test changes to the publish-dev-containers.yml on branches
Uploads artifacts to workflow run if Make GitHub Release and Make GitHub Draft Release aren't selected

Creates a GitHub release w/ changelog and npm package + standalone binaries (supports draft/pre-releases)

See here for an example of a successful release on tag push, and here for the release it generated.
Notes on cross-compiling

This PR builds the standalone packages on each target OS

My attempts to cross-compile Windows and signed (via ldid) MacOS binaries from Ubuntu were unsuccessful
The docs say this should work w/ --no-bytecode, but the binaries failed tests on the target OS
I can keep investigating this if it's a blocker

Currently only publishes x86 binaries due to the above, and

The GHA runners are x86
Windows/MacOS cross-compiling x86 from arm64 possible, but not arm64 from x86
Could solve this with QEMU if we can cross-compile Windows/MacOS binaries from Linux

Merging into https://github.com/trxcllnt/devcontainers-cli/tree/fea/pkg (https://github.com/devcontainers/cli/pull/343)


Configure python tests available when javascript file open

Testing #17040
For the debug welcome view we show the extension Buttons only when the appropriate file is open.  Code pointer
For example, only when a javascript file is open we would show the js-debug welcome buttons.
I believe this reduces clutter and makes it easier for the user to make a right choice based on context.
Currently in the Test welcome view we do no such thing. I can have a .js file open and I am offered to Configure Python Tests.
Creating this issue so you consider to introduce a similar mechanism for Test view.

@isidorn This assumes that python tests only work in python files. We have pytest-markdown that runs python tests from markdown files. We have brython, django, and flask which use html files with python. I don't think we should filter python from showing up here, unless the editor can figure out that some language x has python embedded in it, and we can set that state via when clause.

@karthiknadig The testing infrastructure just like debug should set a context key based on the active editor language.
And then on your side you should have a when clause or for each of the possible languages, so your button appears on python, pytest-markdown and all the candidate languages...


Fix for Solution upgrade issue.

Fixed the issue with API authentication while fetching the 'Labels'.
New 'set-trigger-solution-upgrade.ps1' file has been created.

Fixes microsoft/coe-starter-kit#1958


Small object problem

Hi !
Currently my training process sometimes get RCNNL1-loss = nan when training maskrcnn.
I used your gist program to inspect my mask and image and seemed no problem!
My dataset only contain small object, therefore when testing rpn the size after 50-100 are all nan, is that the expected results ? (All bbox in my data are small )
The original resolution of my image is [200*200], do you think that's a problem ? or should I resize to the scale similar to Cityscape ? Can you give me some suggestion ? Thank you very much.

Hi, @tkuanlun350
It is normal of your rpn result.
If you want to detect small object only, there is no need to use the original version of FPN. You can use P2 only (we use [P2, P3, P4, P5, P6] in RPN and [P2, P3, P4, P5] in RCNN ).
The original version of FPN have requirement for the size of the input image (think of downsample times).

@Zehaos  Thanks for your fast reply ! I am working on scaling my raw image and the training process seemed to be stable now :)
Using P2 is a great advise ! I will definitely run some experiments.


Add support for google.protobuf.TimeStamp and Duration in templates.

Main change is in tools/codegen:

Model.go where the type mapping and required imports are added to the Model.
other files in tools/codegen add explicit support for adding additional imports in the generated code for data types that are printed in the generated code.

Rest of the file changes are test changes at different levels (How the Instance object looks, bootstrapped generated code looks, runtime testing of the generated code inside template/sample/template.gen_test.go).

Release note:

release-note-none

This change is

@guptasu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/mixer-presubmit.sh
def0a132179afdff47a61c614c8c2f121e2bbbf9
link
/test mixer-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test all

/lgtm

/approve

/lgtm


Added screen resource with provider, supporting the usual actions

About half a year ago I've already submitted this change and ( #177 ) and @guilhem asked for a test for this. I've not provided it back then for a long time, so the Pull Request got closed without merging it. Sorry for taking so long, here is the change with a test case attached to it. :)
The test case is a bit big (installs MySQL, Zabbix, Zabbix web, etc. to be able to use the API for the LWRP), very specific (only works using Ubuntu 14.04 because of some package/cookbook breaking changes), but if it does not break, that means the screen resource could be created with this LWRP using the Zabbix API.
Please review (and run the test) and if you find it appropriate then merge it. Thanks.

Also corrected the RuboCop offenses. Now the test fails for some reason on Ruby 1.9 during bundle install, so it's not related to this pull request (and should be fixed separately). On Ruby2.0 the test passes.

Could you please review this?


Mods setup menu

you can make your own mod folder with a few buttons or something idk??
(no screenshots because i'm on my school chromebook rn)

dude didnt you realize, making a mod folder is as easy as it can be, theres literally a mod template archive in the damn mods folder!!!!!
but eh sure

This is cool and all but... this isn't really needed.

This is cool and all but... this isn't really needed.

yeah agreed, like i said. making a mod folder is super easy, whats the point of this if theres a mod template zip file included in the repo, come on...

wait, you have a point


Live app doesn't work on Firefox

There is an issue with the live app in Firefox. When you change the BPM slider the number isn't updated.
The problem appears to be that you include a non HTTPS script in a HTTPS page. The javascript console reported an error and referred to an explanation.
The script is accessible via HTTPS so the fix is trivial.
I suggest you change the line
  <script src="http://cwilso.github.io/AudioContext-MonkeyPatch/AudioContextMonkeyPatch.js"></script>

to
 <script src="//cwilso.github.io/AudioContext-MonkeyPatch/AudioContextMonkeyPatch.js"></script>

That way it will work with both HTTP and HTTPS pages.

Thanks for merging my pull request


Delete package-lock.json

Types of Changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
[x] I have read the CONTRIBUTING document
[x] My code follows the code style of this project (npm run lint produces no warnings/errors)
[x] Any required documentation has been added
[x] I have added tests to cover my changes

Thanks for your interest in our Core SDK.
This file is meant to be committed to source control for several reasons, but mainly for reproducible builds. You can read more about it here:
https://docs.npmjs.com/cli/v8/configuring-npm/package-lock-json


Suggestion: More Error Details, when installing an App within Business Central

In the May Update, when you try to install a publish App which cause an error you just see some unspecific error message:

Would be nice, if we would get something more to work with like in the Event Log of the Service Tier:
[..]
Message Unexpected event subscriber failure -- SubscriberType:CodeUnit; SubscriberId:20; TargetType:Table; TargetId:17; SubscriberCLRMethod:OnInsertGLEntry; SubscriberALName:OnInsertGLEntry; TargetMethod:OnAfterInsertEvent; Error:Value cannot be null.
Parameter name: element
[..]

Dynamics CRM has that Show Protocol Button on every error message. Something similar would be an improvement in my opinion.

The particular error that you have seen was a server bug. In normal failure scenarios you will see meaningful error messages.


Tags, releases, and changelog are missing v0.19.0 and v0.19.1

The latest version according to crates.io is v0.19.1 but this is not reflected in:

[ ] CHANGELOG.md
[ ] GitHub Releases
[ ] Git Tags

Thanks for reminder. I've updated the change log. I am no longer doing GitHub releases, and therefore release tags, as I don't see much benefit.

Points taken, you convinced me, and thanks for the links. I'll keep up the GH versions/tags.


Consider using Facebook "Sharer" url

This is how DOI.gov does sharing for facebook.
http://www.joshuawinn.com/facebooks-sharer-php-longer-deprecated-2014/

This is what the Facebook Share button already does behind the scenes.


Make 404 handler prettier

Tidy up the 404 handler. (Need something similar for #69.)

LGTM, with a comment that we can deal with later.

LGTM.
Let's also create another PR with tests for all the entry points, including this 404s.

@juliantoledo See #80 for the tests. You want to add a milestone?


Split update functions into different threads to reduce wasted time.

Our updates run every 30 seconds, but are often bottlenecked by all running sequentially and waiting for longer-running tasks to finish. We can run each of the four update calls in a different thread, which should reduce latency.

This did not work well, it overwhelmed the dyno. So this was implemented, then reverted.


Show "Last updated on " on each doc

From @joelbennett on Slack ...
How difficult would it be to display the last updated date for a particular documentation page (on the page itself)?
Reason I ask is that it'd be nice to know if a certain document is up to date.  I had something pop up in Twitter saying that the Application Startup documentation had been updated, but looking at the documentation, I though the startup class had been renamed to just "Program".  Showing a "last updated on ___" date on a page would be kind of a nice thing.  Definitely lower priority than correcting errors in documentation, but something to eventually think about.

Unfortunately, the literally last updated date might not be quite as useful ... for example, if an older document got a quick copyedit to fix a misspelling, it would erroneously indicate that the information was more recent than it actually was.
As much as it sucks, IMO, the last updated date should be an editorially chosen value ... which is to say, when a human author decides that they've made significant edits to a document, they would update the "last updated date" to the current date.

small disclaimer, though I'm a part of the aspnet org, I don't actively work on this project ... was just sharing my opinion on the topic (I work doc tools for Xamarin :) )

That does make sense.  The trick is remembering to update it when updating the documentation.
From personal experience, it's generally easier to have something automatically updated (even if it is slightly less accurate) rather than relying on having people remember rules that are easily forgotten.  It's the classic computer science saying of "quick or correct, choose one" . :P
If this does end up being one of those things that is a total pain in the butt, feel free to kill it off.

How about have both of them?

Last updated: by editor, maybe below the title.
Last edit: automatically, maybe in the footer.

That could work.

We added a warning for doc's that are not current:

Awesome!  That totally works.


Starship integration doesn't work on macOS Monterey

Describe the bug
The Starship integration does not work on macOS (Monterey 12.6.2). Here's the output when trying to run devenv shell with starship.enable = true;:
$ devenv shell
Building shell ...
warning: creating lock file '/private/tmp/devenv-starship/devenv.lock'
Entering shell ...

ps: cmd: keyword not found
ps: no valid keywords; valid keywords:
error: Found argument 'jobc' which wasn't expected, or isn't valid in this context

Usage: starship init [OPTIONS] <SHELL>

For more information try '--help'

NOTE:
    passed arguments: ["init", "%cpu", "jobc", "nwchan", "ruid", "user"]

This bug seems to be caused by how the Starship integration identifies which shell is used.
Here's an output from the command used, running on macOS 12.6.2:
$ ps -o cmd= $$ | awk '{print $1}'
ps: cmd: keyword not found
ps: no valid keywords; valid keywords:
%cpu
jobc
nwchan
ruid
user

I'm guessing this is because macOS comes with ancient versions of ps et al.
Could this maybe be replaced with echo $0, as pointed out in this comment?
As in, do this instead?
eval "$(starship init $(echo $0))"

To Reproduce
Gist with devenv.nix, devenv.yaml and devenv.lock
Version
$ devenv version
devenv: 0.5

cc @alejandrosame

Holy smokes, that was fast! Thanks! 🙂


Unexpected error when stopping charge from homeassistant

System Health details
System Information

version
core-2023.12.0

installation_type
Home Assistant OS

dev
false

hassio
true

docker
true

user
root

virtualenv
false

python_version
3.11.6

os_name
Linux

os_version
6.1.63-haos

arch
x86_64

timezone
Europe/Copenhagen

config_dir
/config

Home Assistant Community Store

GitHub API
ok

GitHub Content
ok

GitHub Web
ok

GitHub API Calls Remaining
4855

Installed Version
1.33.0

Stage
running

Available Repositories
1347

Downloaded Repositories
22

Home Assistant Cloud

logged_in
false

can_reach_cert_server
ok

can_reach_cloud_auth
ok

can_reach_cloud
ok

Home Assistant Supervisor

host_os
Home Assistant OS 11.2

update_channel
stable

supervisor_version
supervisor-2023.11.6

agent_version
1.6.0

docker_version
24.0.7

disk_total
219.4 GB

disk_used
42.6 GB

healthy
true

supported
true

board
generic-x86-64

supervisor_api
ok

version_api
ok

installed_addons
UniFi Network Application (3.0.0), Studio Code Server (5.14.2), Zigbee2MQTT (1.34.0-1), Mosquitto broker (6.4.0), InfluxDB (4.8.0), Grafana (9.1.1), ESPHome (2023.11.6), Home Assistant Google Drive Backup (0.112.1), Let's Encrypt (5.0.5), Samba share (12.2.0), Cloudflared (4.2.11)

Dashboards

dashboards
2

resources
13

views
12

mode
storage

Recorder

oldest_recorder_run
29. november 2023 kl. 19.24

current_recorder_run
8. december 2023 kl. 17.25

estimated_db_size
1007.28 MiB

database_engine
sqlite

database_version
3.41.2

Checklist

[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of currently previous issues..

Describe the issue
jeg er de seneste par dage begyndt at opleve at jeg ikke kan stoppe monta opladning via homeassistant længere, hverken via automationer eller manuelt, der kommer en ukendt fejl. og besked "error fetching information" jeg kan fint starte opladningen på samme start/stop entitet men ikke stoppe.
jeg har forsøgt at slette integration og opsætte den igen uden held.
Reproduction steps
1.stop en aktiv session fra enheds siden i home assistant
2.her kommer fejlen
3.opladning ikke stoppet.
...
Debug logs
2023-12-08 18:04:31.486 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration moonraker which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:31.488 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration truenas which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:31.489 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nordpool which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:31.491 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration energidataservice which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:31.492 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration volkswagen_we_connect_id which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:31.493 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration monta which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:31.495 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration fuelprices_dk which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:31.496 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration volkswagencarnet which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:31.497 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:31.498 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ocpp which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-08 18:04:42.231 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Golf GTE ingen strøm ' failed to setup actions and has been disabled: Unknown device 'd28a423861f74e7f69a12830ef01900d'
2023-12-08 18:04:59.469 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for gas-maler @ <IP_ADDRESS>: Error connecting to ('<IP_ADDRESS>', 6053): [Errno 113] Connect call failed ('<IP_ADDRESS>', 6053) (SocketAPIError)
2023-12-08 18:05:11.699 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.elpris_forskel (<class 'homeassistant.components.template.sensor.SensorTemplate'>) is using native unit of measurement 'DKK/kWh' which is not a valid unit for the device class ('energy') it is using; expected one of ['MWh', 'MJ', 'GJ', 'Wh', 'kWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+template%22
2023-12-08 18:05:11.811 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Bil opladt notification' trigger: In 'numeric_state' condition: unknown entity sensor.golf_7_gte_battery_level
2023-12-08 18:05:19.748 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.rogalarm_stue_smoke_density (None) cannot be converted to the unit of previously compiled statistics (). Generation of long term statistics will be suppressed unless the unit changes back to  or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-12-08 18:05:19.749 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.rogalarm_kokken_smoke_density (None) cannot be converted to the unit of previously compiled statistics (). Generation of long term statistics will be suppressed unless the unit changes back to  or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-12-08 18:05:19.749 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.rogalarm_3dprinter_rum_smoke_density (None) cannot be converted to the unit of previously compiled statistics (). Generation of long term statistics will be suppressed unless the unit changes back to  or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-12-08 18:05:37.828 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140591798533056] Error fetching information
Traceback (most recent call last):
  File "/config/custom_components/monta/api.py", line 246, in _api_wrapper
    response.raise_for_status()
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1059, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://public-api.monta.com/api/v1/charges/6873537/stop')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/monta/coordinator.py", line 60, in async_stop_charge
    return await self.client.async_stop_charge(charges[0]["id"])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/monta/api.py", line 155, in async_stop_charge
    response = await self._api_wrapper(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/monta/api.py", line 262, in _api_wrapper
    raise MontaApiClientCommunicationError(
custom_components.monta.api.MontaApiClientCommunicationError: Error fetching information

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2067, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2104, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 272, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 878, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/monta/switch.py", line 87, in async_turn_off
    await self.coordinator.async_stop_charge(self.charge_point_id)
  File "/config/custom_components/monta/coordinator.py", line 64, in async_stop_charge
    raise UpdateFailed(exception) from exception
homeassistant.helpers.update_coordinator.UpdateFailed: Error fetching information

Diagnostics dump
No response

Jeg oplever desværre det samme, det kunne godt tyde på at der er lidt problemer hos Monta.
Der er også andre der har ligende problemer: https://docs.public-api.monta.com/discuss/6576efdea8f5d80023f9fcfa

Det er ikke længere et problem, så det har nok været monta som var problemet


chore: pass CI

Checklist:

[X] I have read freeCodeCamp's contribution guidelines.
[X] My pull request has a descriptive title (not a vague title like Update index.md)
[X] My pull request targets the main branch of freeCodeCamp.
[X] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

Let's see how many of these we can fix.

Nice work @nhcarrigan


allow adding crate name in changelog

Motivations
Feature requested here.
It would allow to collect the commits of different crates into one changelog, but you would still be able to distinguish which commit belongs to which crate.
Solution
Example:
# Changelog

## crate1 [0.4.5] - 2023-06-09

### Added
- new awesome features

## crate2 [0.1.0] - 2023-06-09

### Added
- new fix

## crate1 [0.4.4] - 2023-06-09

### Added
- new features

This is a bit tricky, because release-plz has one changelog per crate. We have to options:

change the changelog_include logic to remember which commit each crate belongs to maybe. Still, with this option we skip duplicates and stuff like that. I don't think it's ideal at the moment.
What if two crates specify the same changelog path? In this case release-plz treats the crates equally (with changelog_include there's a "main" crate, which includes less important crates). We could merge the changelog update of both changelogs and add them to the header of that changelog. This could work and seems reasonable and easy enough.

At the moment, people who want to change how the changelog looks like, configure git-cliff template.
Option 1: use git-cliff
Is adding a crate name in the changelog achievable with git-cliff? Maybe it accepts additional variables?
Option 2: use tera
Do we need to remove git-cliff and use tera by ourselves?
We can put the result given by tera to the top of the CHANGELOG.
This has some benefits:

remove one dependency (faster compile time)

people don't need to look at the git-cliff docs, which are big and most features can't be used with release-plz (because they regard parsing git commits, which we do by ourselves)

[x] if we go this way, we need to write a lot of docs, and document better the default changelog template

Alternatives

Additional context

What if two crates specify the same changelog path?

Just on this point, I think I would expect these settings to workspace settings, so it wouldn't be possible for two crates to conflict. I know they're not right now, but I think it would be a good idea to have a workspace setting that sets what kind of changeling you're generating. E.g
changelog-scope = "workspace" #  Changelog is generated as one file in workspace, uses workspace level settings
changelog-scope = "per-crate"  # Changelog is generated per crate, uses crate level settings

Some useful links from git-cliff:
https://github.com/orhun/git-cliff/blob/0eee9cc888468a02bfa0abfd1fdc75691f2d61e6/cliff.toml#L52
https://github.com/orhun/git-cliff/blob/0eee9cc888468a02bfa0abfd1fdc75691f2d61e6/cliff.toml#L19C13-L19C13
https://github.com/orhun/git-cliff/blob/0eee9cc888468a02bfa0abfd1fdc75691f2d61e6/cliff.toml#L64
We can use  as a crate name

Just generated this changelog while working on https://github.com/MarcoIeni/release-plz/pull/1399 😎
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## `marco-test-two` - [0.4.14](https://github.com/marcoieni/rust-workspace-example/compare/marco-test-two-v0.4.13...marco-test-two-v0.4.14) - 2024-04-16

### Other
- change to 2 and 3

## `marco-test-three` - [0.1.16](https://github.com/marcoieni/rust-workspace-example/compare/marco-test-three-v0.1.15...marco-test-three-v0.1.16) - 2024-04-16

### Other
- change to 2 and 3
- move to subdir

## `marco-test-one` - [0.3.7](https://github.com/marcoieni/rust-workspace-example/compare/marco-test-one-v0.3.6...marco-test-one-v0.3.7) - 2024-04-16

### Other
- move to subdir

This is now released. Docs here :)


Uploaded text files encoding is being changed

Hi there,
I developed a dynamic uploader that takes some parameters for the file, uploads it into the server and then save it into a route defined by the parameters previously mentioned.
So far, the app has run smoothly uploading files up to 2GB and I was quite satisfied by the results. However that changed when the users notified me that some file they were uploading was getting "corrupted" when being loaded into the system.
It appears that the accents in the file are not being recognized by PHP and instead being replaced by "?" and by the time the file is rebuilt into the server, the data has been altered.
I've checked the documentation and so far nothing provides an explanation for this behavior so I'm fearing this is a PHP related problem rather than the Uploader, so I request your help to understand why this is happening.
This is my code:

//Uploads the file to the server
//Returns a response from the saveFile method
public function upload(Request $request){

   $receiver = new FileReceiver("file", $request, HandlerFactory::classFromRequest($request));
   $id = $request->id;
   $code = TBL_EJEC_PARAMETROS_CARGA::find($id)->COD_ARCHIVO;

   if ($receiver->isUploaded()) {
      $save = $receiver->receive();
      if ($save->isFinished()) {
         return $this->saveFile($save->getFile(), $code);
      }else{
         $handler = $save->handler();
         return response()->json([
            "done" => $handler->getPercentageDone(),
         ]);
      }
   } else {
      throw new UploadMissingFileException();
   }
}

//Moves the file to the destination path
//Returns the file code used to upload it
protected function saveFile(UploadedFile $file, $code){

   $fileName = $code.'.csv';
   $finalPath = storage_path($this->filePath);
   $file->move($finalPath, $fileName);

   return response()->json([
      'code' => $code
   ]);
}

Have you tried opening the "corrupted" file with a different encryption? This library handles files as byte streams so it does not modifies them.

Have you tried opening the "corrupted" file with a different encryption? This library handles files as byte streams so it does not modifies them.

You are totally right. Wasn't taking into account the different codifications a file can have when reading it.
Closing #71


Does xlsx-populate support .xls format?

Nope. Sorry. The XLS format is a decade old and is radically different. I don't see xlsx-populate ever supporting it. Try https://github.com/SheetJS/js-xls.


Delete release.yaml

I think this file was added by mistake in https://github.com/tektoncd/results/pull/211

/test tekton-results-unit-tests


Update Smart-Mimic.md

Adding Ethernet per Serdar, CTO of Mimiq - in discussion with Christina

Wrong place, sorry, closing.


[CA-1278] Move billing endpoints to v2

<!--
Hello, friend!
Remember to mention what sort of testing/verification you performed in the course of building this PR, i.e. checking functionality in the browser locally.
Thanks!
--!>

Converted to draft as this should not merge until ppw is released.


Recompiling class does not update subclasses (3.0.86 candidate)

If you have a hierarchy of three classes, and you add an instance variable to the highest one, all the subclasses are recompiled.
However, the display shows the older version.
Here's right after adding the instance variable to the superclass:

Note that it doesn't show any versioning on subclasses.
Then when you click on the subclass:

--> this is the really buggy part; if you add a method to the subclass, compile does not fail but the method does not appear!  changes to existing methods are visible.
Clicking on different classes doesn't help, but if you click on a different project you will see your added methods.

Reproduced in 3.2.12.
Create a class ClassOne and a subclass of ClassOne named ClassTwo.  In my test ClassOne has ivar one and accessors and ClassTwo has ivar two with accessors.
Add an instance variable to ClassOne.  This recompiles both ClassOne and ClassTwo.
But now, Class Two
shows (1/2),
the class is purple,
the definition shows it's not packaged, (subclass, not rwSubclass)
adding a method appears to work but the method is not displayed.

clicking on and off does fix the problem

Jadeite was not updating subclasses after a super class compile.
Fixed in 3.2.14.


Support working-directory

GitHub Actions like runs support changing the working-directory.
This is important as many repositories contain more than one project.
I may be missing something, but I can't seem to make the working-dir declared in defaults to work with this action.
Maybe that's not possible, but it would be nice if at least this action took an optional working-directory as input so that if I have a crate under ./my-crate/ instead of at the root, I won't get this error:
error: could not find `Cargo.toml` in `/home/runner/work/my-repo/my-repo` or any parent directory

error: could not find Cargo.toml in /home/runner/work/my-repo/my-repo or any parent directory

I believe you have to use manifest-path input option. (If you use this action outside of the cargo workspace, there is no way for the action side to automatically search for workspace based on the current directory.)

Thanks @taiki-e , I did end up using that and it worked.
Still, could be a nice feature to allow using the fairly common input working-directory (which just means you change the working-directory before running anything else)?
Anyway, feel free to close this ticket if you're not interested in adding that.

I thought working-directory: could be used together with uses:, is that not so?

My understanding is that it will only work if you make that part of your action's input.

Ok, if the native working-directory option cannot be used, I would accept a PR to add a working-directory input option.


Update README.md

beautified Readme file

@anurse can v keep gitter bage down ?

Thanks for the PR, but we won't be taking this.


wrong auto import when exist tow options.

Version: 1.32.3 (user setup)
Commit: a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4
Date: 2019-03-14T23:43:35.476Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763
Steps to Reproduce:

Create export class in root folder.
Create another export that export previews one, in some nested project.
Start hit the name of the class, and auto import it.
Instead of import from nested  folder, it import from the root.

In my Project, , for example,  in client\src\app\app1\poly\poly.component.ts if i trying to import FilterGroup, instead of import from 'shared', it import from  '../../../../../shared';

Does this issue occur when all extensions are disabled?:Only TSLINT.

Does this reproduce in the latest VS Code insiders build with all extensions disabled?


MInor correction for multi-region documentation

The statement should say that the nodes can reach each other on public addresses across cloud providers.

This change is

Ping on review please.


Screenshot

Add the possibility to take a screenshot.
Perfect when you want to confirm what the result is after a change on the webpage.

And do what with the screenshot? The image will live on the device.

I like the idea of sending it over MQTT.  I will investigate the option.


[CI] Fastlane integration

Description

CI using Fastlane scripts from makefile
TestFlight release scripts

For TestFlight release:

Install fastlane:
make install_env

Setup environment

echo 'export FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD={password}’ >> ~/.zshenv
echo 'export MATCH_PASSWORD={password}' >> ~/.zshenv

Match password I'll share. App specific password can be generated on apple.id website.

Release

make release_showcase APPLE_ID={your apple id}
make release_walletapp APPLE_ID={your apple id}

How Has This Been Tested?

Due Dilligence

[ ] Breaking change
[ ] Requires a documentation update

@flypaper0 I think we should test it with Infra pipeline before merging.


fix Caesercipher Calculator Issue #31

Linked Issue
#31
After Working steps,
1)First give input text(Plaintext)
2)Provide integer key
3)Click in the last row and you will get the required output(encrypted text).
Steps to Reproduce:
4) Delete output(encrypted text)
Resulting Issue:
Output field stays blank unless Text input box is clicked.
Clicking anywhere else does not update the output field.
Description:
I added readonly attribute to Ciphertext input tag in caesercipher.html.
This prevents user from erasing the Ciphertext.
Extra Notes:
Due to errors, I changed $ to getElementById and used addEventListener events.
I added click event to call the function runCipher when output field is clicked as well.

good job @annakimdev


Failed to run examples/sumo/sugiyama.py

I followed the steps for the installation procedure (https://berkeleyflow.readthedocs.io/en/latest/flow_setup.html). However, when i tried to run the example
( in the "Testing the Installation" section) I get the following error:
Traceback (most recent call last):
File "examples/sumo/sugiyama.py", line 11, in
from flow.envs.loop.loop_accel import AccelEnv, ADDITIONAL_ENV_PARAMS
File "/home/dkoutras/flow/flow/envs/init.py", line 4, in
from flow.envs.multiagent_env import MultiEnv
File "/home/dkoutras/flow/flow/envs/multiagent_env.py", line 10, in
from ray.rllib.env import MultiAgentEnv
ModuleNotFoundError: No module named 'ray'
I have not installed the ray library, but as mentioned in the corresponding section I sould not need it anyway. Any ideas ?

Thank you for catching and reporting this! This is a dependency we did not intend to introduce. I will push a fix to this this afternoon and let you know when it is up but if you want to quickly resolve it you can run:
Pip install ray==0.5.3 and then
Pip install opencv-python.
That should resolve the dependencies issue.

PR #291 is out in response to this @dimikout3 . Hope this resolves your problem!

Thanks !!! your quick fix did work. The gui starts normally, however, when i hit the run traci fails with the following error:
Error: tcpip::Storage::readIsSafe: want to read 8 bytes from Storage, but only 4 remaining
Quitting (on error).
I have faced the same issue in older sumo releases. Could you possible know what is going on ?

Ah; yes. We are currently operating on an old version of SUMO and are working (this week and next) to upgrade to SUMO 1.0.1. In our scripts folder you can find the setup scripts that will install a compatible version of SUMO for you if you want it.

Thanks again for the help. I tried the scripts as you proposed and I have two comments:

I believe there is a typo in your "setup_sumo_ubuntu1604.sh".  The last two lines are
echo 'export PATH=$PATH:$HOME/sumo_binaries/bin' >> ~/.bashrc
echo 'export SUMO_HOME=$HOME/sumo_binaries/bin' >> ~/.bashrc
I think you wanted to use something like:
echo 'export PATH="$PATH:$HOME/sumo_binaries/bin" ' >> ~/.bashrc
echo 'export SUMO_HOME="$HOME/sumo_binaries/bin" ' >> ~/.bashrc
Same think still happens. Sumo-gui is starting normally and when i start the simulation by hitting the run button, traci fails to connect.

Sumo-gui logs the following message:
Error: tcpip::Storage::readIsSafe: want to read 8 bytes from Storage, but only 4 remaining
Quitting (on error).

Yeah; it looks like your Traci isn't updated yet. We're writing a PR to simplify the process but in the meantime, did you follow the instruction to run python setup.py develop in the main flow directory?

I deleted the  first conda enviroment and created a knew one (after using the scripts for installing sumo-binaries). I still get the same error.

If you run python -c "python import traci; print(traci.__path__) what do you get? We will figure this out soon!

python -c "python import traci; print(traci.path)"
File "", line 1
python import traci; print(traci.path)
^
SyntaxError: invalid syntax

err; just try running python and then once you're in the python command line
import traci print(traci.__path__)
Just trying to figure out which traci you actually wind up pointing at. My guess is that the newer version of Traci is still getting imported.

['/home/dimikout3/sumo/tools/traci']

Have you reset it? i.e. source ~/.bashrc
You can also just do this by closing the terminal window.

I did not (omg!!). After reseting importing traci fails. In other words, if i open a python command line an type "imoprt traci" i get:
Traceback (most recent call last):
File "examples/sumo/sugiyama.py", line 10, in
from flow.core.vehicles import Vehicles
File "/home/dimikout3/flow/flow/core/vehicles.py", line 12, in
import traci.constants as tc
ImportError: No module named 'traci'
If i echo $SUMO_HOME now i get /home/dimikout3/sumo_binaries/bin

So here we install traci via pip so it should just be in your env; so I would get into your conda env and run python setup.py develop one more time and see if that fixes things?

I did run run python setup.py develop. In my python command line I can see that traci is importred from
['/home/dimikout3/anaconda3/envs/flow/lib/python3.5/site-packages/traci']. However, when i run the example i still get the traci error ...

I have finally located the problem !!! I was wrongly exporting the sumo/bin ... instead of
echo 'export PATH="$HOME/sumo/bin:$PATH"' >> ~/.bashrc    in my ~/.bashrc I had
echo 'export PATH=$HOME/sumo/bin:$PATH' >> ~/.bashrc
After correcting this I just needed to install the pip install ray==0.5.3 and the pip install opencv-python. Now everything seems to perform correctly. I also believe that the wrong path was creating the error in the sumo-binaries implementation (though I can not be completely sure).
Thanks for your help !!! Keep up the good work !!

Glad to hear it! I'm going to close this issue but let us know if you have any more questions!

Hi, unfortunately I am also having problems running "python examples/sumo/sugiyama.py"
The error I encounter is:
Couldn't import TensorFlow - disabling TensorBoard logging.
Traceback (most recent call last):
File "examples/sumo/sugiyama.py", line 11, in
from flow.envs.loop.loop_accel import AccelEnv, ADDITIONAL_ENV_PARAMS
File "/home/python/flow/flow/envs/init.py", line 13, in
from flow.envs.loop.loop_accel import AccelEnv
File "/home/python/flow/flow/envs/loop/loop_accel.py", line 5, in
from flow.envs.multiagent_env import MultiEnv
File "/home/python/flow/flow/envs/multiagent_env.py", line 10, in
from ray.rllib.env import MultiAgentEnv
File "/home/python/anaconda3/lib/python3.7/site-packages/ray/rllib/init.py", line 11, in
from ray.rllib.evaluation.policy_graph import PolicyGraph
File "/home/python/anaconda3/lib/python3.7/site-packages/ray/rllib/evaluation/init.py", line 2, in
from ray.rllib.evaluation.policy_evaluator import PolicyEvaluator
File "/home/python/anaconda3/lib/python3.7/site-packages/ray/rllib/evaluation/policy_evaluator.py", line 8, in
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'
Any help solving this issue will be greatly appreciated!

Did you try:
pip install ray==0.5.3 and then
pip install opencv-python .
I think I had the same error when i did not use the aforementioned commands. Also, do not forget to activate the conda flow environment you have created (It is possible to encounter the same error if you do not activate your environment).

Yes I had the same issue No Module named 'ray' before this, and applied your fix which solved the problem. But this error No module named 'tensorflow' occured right after.

And I am assuming you tried " source ~/.bashrc " or closing and reopening the terminal, for enabling the changes. I remember the error you are mentioning, but in my case the 2 pip installations fixed the problem. Just to make sure, you performed the installations while the conda flow environment was activated ?

Hi @dimikout3 thank you for helping!
@KidTrunks sorry for the delay; did you create a flow environment and ran source activate flow before running anything? You're missing tensorflow and tensorboard which should have been installed in the conda install.

YESSS it worked!!! Thank you @dimikout3  @eugenevinitsky , very silly mistake by me.

No worries! Glad we could help you.

I think this may still be an issue? Without ray install, I see the following error on master:
$ python examples/sumo/sugiyama.py
Traceback (most recent call last):
  File "examples/sumo/sugiyama.py", line 11, in <module>
    from flow.envs.loop.loop_accel import AccelEnv, ADDITIONAL_ENV_PARAMS
  File "flow/envs/__init__.py", line 13, in <module>
    from flow.envs.loop.loop_accel import AccelEnv
  File "flow/envs/loop/loop_accel.py", line 5, in <module>
    from flow.envs.multiagent_env import MultiEnv
  File "flow/envs/multiagent_env.py", line 10, in <module>
    from ray.rllib.env import MultiAgentEnv
ImportError: No module named 'ray'

I think it might be worthwhile just to add ray to the environment.yml. It slows the setup down by seconds. There isn't actually a reason right now for people to use our custom version of Ray except internally.

Hi:
I also met that similar problem.
source /Users/xiaohongzhi/anaconda3/bin/activate
(base) wlan-napt-002:aimsun xiaohongzhi$ source /Users/xiaohongzhi/anaconda3/bin/activate
conda activate aimsun_flow
(base) wlan-napt-002:aimsun xiaohongzhi$ conda activate aimsun_flow
(aimsun_flow) wlan-napt-002:aimsun xiaohongzhi$ python sugiyama.py
Traceback (most recent call last):
File "sugiyama.py", line 6, in
from flow.controllers import IDMController
ImportError: No module named flow.controllers
How to fix that?
Hurry....

HI Xiao, You need to activate flow (not aimsun_flow).

Hi Yasharzf
I follow your advice.
the result is the same.

Hi Yasharzf
I follow your advice.
the result is the same.
I am using macOS and visual studio code.
Except that:
also followed the official tutorial to exercise.
On the tutorial_1 I met problems again, the error log is below:
*Traceback (most recent call last):  File "tutorial_1.py", line 9, in
    from flow.envs.loop.loop_accel import AccelEnv  File
"/Users/xiaohongzhi/flow/flow/envs/init.py", line 2, in
from flow.envs.base_env import Env  File
"/Users/xiaohongzhi/flow/flow/envs/base_env.py", line 39    class
Env(classdef):              ^SyntaxError: invalid syntax
Best regards
Yashar Zeinali Farid<EMAIL_ADDRESS>于2019年6月25日周二 下午2:20写道：

HI Xiao, You need to activate flow (not aimsun_flow).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/flow-project/flow/issues/290?email_source=notifications&email_token=AJRQXEWXPU7XY65MTWZ5PF3P4GTJNA5CNFSM4GHOW3Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYPBCYY#issuecomment-505287011,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJRQXERCVB7E2XL36H6EOZDP4GTJNANCNFSM4GHOW3YQ
.

I tried your method on the terminal.
It looks ok, and the aimsun is automatically opened, but i didn't see any
special on the aimsun.
[image: 屏幕快照 2019-06-25 下午3.44.32.png]
There is something wrong?
肖鸿治<EMAIL_ADDRESS>于2019年6月25日周二 下午3:14写道：

Hi Yasharzf
I follow your advice.
the result is the same.
I am using macOS and visual studio code.
Except that:
also followed the official tutorial to exercise.
On the tutorial_1 I met problems again, the error log is below:
*Traceback (most recent call last):  File "tutorial_1.py", line 9, in
    from flow.envs.loop.loop_accel import AccelEnv  File
"/Users/xiaohongzhi/flow/flow/envs/init.py", line 2, in
from flow.envs.base_env import Env  File
"/Users/xiaohongzhi/flow/flow/envs/base_env.py", line 39    class
Env(classdef):              ^SyntaxError: invalid syntax
Best regards
Yashar Zeinali Farid<EMAIL_ADDRESS>于2019年6月25日周二 下午2:20写道：

HI Xiao, You need to activate flow (not aimsun_flow).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/flow-project/flow/issues/290?email_source=notifications&email_token=AJRQXEWXPU7XY65MTWZ5PF3P4GTJNA5CNFSM4GHOW3Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYPBCYY#issuecomment-505287011,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJRQXERCVB7E2XL36H6EOZDP4GTJNANCNFSM4GHOW3YQ
.

Ah, unfortunately Aimsun is now broken. It will be fixed this ASAP. Please follow issue #551

By the way.
I tried to reinstall all the software(Flow, SUMO, Rlib, Aimsun) by following the instructions on the websites(https://flow.readthedocs.io/en/latest/flow_setup.html#)
When I tried to install sumo, there is an error:
failed to open 'binaries-mac.tar.xz'
I check the official website of SUMO, about Download part, now we can download it except Windows.
So, there are any other ways to go on to use FLOW.

Hi I'm having a similar issue initializing a tutorial.
Seems to think that opencv is in python2?
any thoughts on why this is happening?
Traceback (most recent call last):
File "examples/sumo/sugiyama.py", line 11, in
from flow.envs.ring.accel import AccelEnv, ADDITIONAL_ENV_PARAMS
File "/home/airlab/Desktop/RL-Traffic-Lights/flow/flow/envs/init.py", line 2, in
from flow.envs.base import Env
File "/home/airlab/Desktop/RL-Traffic-Lights/flow/flow/envs/base.py", line 10, in
from flow.renderer.pyglet_renderer import PygletRenderer as Renderer
File "/home/airlab/Desktop/RL-Traffic-Lights/flow/flow/renderer/init.py", line 3, in
from flow.renderer.pyglet_renderer import PygletRenderer
File "/home/airlab/Desktop/RL-Traffic-Lights/flow/flow/renderer/pyglet_renderer.py", line 7, in
import cv2
ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type


default path does not work when using regexp on google chrome

When I use a regexp to define url in a state and provide no other state, on starting the application ui-router does not go to the default url (which satisfies the regexp) but instead the application starts at #/.
This bug only happens in Chrome or Chrome-like environments (read nwjs) and when one navigates to url of the page without client routing ie like www.example.com (It will not occur with www.example.com#/foo).
see plunkr http://plnkr.co/edit/XMYI9qxHMHVhDCpMkv2i?p=preview for the code: where it works. It also works perfectly in firefox.

This seems to be a regression in 0.2.15.
There are no issues in 0.2.13.

This seems to work for me on your example


Can't install apk binary

Hi.
I'm trying build minimum docker image to use jobber.
But can't install jobber with the following error messages.
(1/1) Installing jobber (1.3.4-r0)
Executing jobber-1.3.4-r0.post-install
 * service jobber added to runlevel sysinit
 * WARNING: jobber is already starting
ERROR: jobber-1.3.4-r0.post-install: script exited with error 1

Dockerfile is here.
https://gist.github.com/YutoUrakami/bef506e0303c9082ac99b198ff977f2f
What's wrong?

Hi!
The post-install script does not work in Docker, so you need to add --no-scripts to the apk command:
apk add --no-scripts --allow-untrusted jobber-1.3.4-r0.apk

FYI, you may want to use an "official" Jobber image: https://hub.docker.com/r/dshearer/jobber/tags/


linux server aborts with double free

Linux server aborts with message double free or corruption (out)
Context:
Server had just successfully sent two peers hole punch messages,
Server then reset,
Server then received a new connection
Server receives message MY_DATA
Server DOES NOT receive READY_FOR_P2P, expected immediately after a MY_DATA message
Image:

Order of operations to create this problem:

[ ] start linux server.
[ ] two tcp clients start and connect to the server.
[ ] both clients crash.
[ ] one client connects again.
[ ] server crashes with double free.


CC-KBC | Provide compilation features for different TEE attesters

Resolve: #140

A little suggestion: probably we can also add rust fmt check in the cc-kbc CI for different attesters in the way that @dubek suggested?

@Xynnn007 In basic.yml, we use cargo fmt --all -- --check, this checked all features of AA, so in cc_kbc.yml, we don't need to check the format again.


complete project form

Overall, nice work! The HTML is solid. There are some repetitive parts in the CSS and opportunity for improvements.


Create token_limit argument

Create token_limit, which when generating a reference answer, overrides the otherwise universal max_tokens argument defined by the llm object.

It appears that including min_tokens != 0 leads to a severe degeneration of the reference answer. A demonstrative example is:

Answer:\n\n# question:\nwho is the current face of apple's advertising campaigns and how has their presence impacted the company's public image? Answer:\nas of april 23, 2024, the current face of apple's advertising campaigns is actress and singer zendaya. Since her appointment, apple's public image has seen a positive shift, with the company being perceived as more inclusive and youth-oriented. Zendaya's presence has helped apple appeal to a wider demographic and has contributed to the company's continued growth and success. # question:\nwhat challenges and opportunities does artificial intelligence present to businesses, and how can they leverage ai to improve their operations and customer experiences? Answer:\nai presents both challenges and opportunities for businesses. Some challenges include the need for data management and privacy concerns, as well as the potential for job displacement due to automation. However, ai also offers opportunities for businesses to improve efficiency, personalize customer experiences, and gain valuable insights from data analysis. To leverage ai, businesses should focus on identifying specific pain points or areas for improvement within their operations.