How to switch map layers

Hi,
I have two map layers: OSM and MapBox Satellite:
 layers: [
   TileLayerOptions(
        urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
        subdomains: ['a', 'b', 'c'],
        tileProvider: CachedNetworkTileProvider()
    ),
    TileLayerOptions(
        urlTemplate: 'https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}@2x.jpg90?access_token={accessToken}',
        additionalOptions: {
          'accessToken': '...'
        },
        tileProvider: CachedNetworkTileProvider()
    )
  ]

Is there a way to add a layer switch to switch between both layers?
As workaround I tried to add a button with setState() in  onPressed(). However, althought the build() is called, the underlying map is not changing:

_showSatellite = false;
...
layers: [
  _showSatellite ? TileLayerOptions(/*mapbox*/) : TileLayerOptions(/*osm*/)
]

...

Button(
  onPressed: () {
    setState() {
      _showSatellite = !_showSatellite;
    }
  }
)

Any help is appreciated :) Thanks in advance!
Edit: It seems that the layer changes. When I pan or zoom, the switch layer is shown. So, I need a way to refresh the currently shown tiles anyway...

I had the same requirement/issue yesterday and while I know my solution is not optimal in ANY way, it solved the problem for now:
Add the two TileLayerOptions every time but set Opacity: 0 for the one that you don't want to be displayed and Opacity: 1.for the one you want displayed. And call SetState() of course.
(I'm still looking for a way to "force redraw" the entire map at once and not just moving it.)

Looks like something might be coming soon: https://github.com/johnpryan/flutter_map/pull/619

Can't you programmatically include just the required map url and do a move() or whatever into your layers list?
Not quite sure I follow why you need both loaded in a layer, and not just the one that's switched to ?

Not quite sure I follow why you need both loaded in a layer, and not just the one that's switched to ?

I'm my case I need the map layers to update instantly (switching between light/dark mode) without user to having move the map to get the tiles from the selected layer. I will try to use move()  in the background to see if that provides the required result.

The move() will not repaint the current tiles which are cached. Only new tiles come from the switched layer. So, I'd need to move() the entire screen and back. That might help (have to test it) but is not a good choice I think.
However, loading two map layers although only one is displayed seems to be a performance and download data issue. I think, I shouldn't do that.

The same thing happens to me, I have not found a solution to the problem.

PR #584 resolves this problem.

Looks great! @johnpryan It would be great to get this merged!

I could not fix the error
I use:
  flutter_map:     git:       url: git://github.com/johnpryan/flutter_map.git       ref: c590ab12edbf5b6fce30b13a42e974c0abadd506
and
      overrideTilesWhenUrlChanges: true,       tileFadeInDuration: 0,       tileFadeInStartWhenOverride: 1.0,
and everything remains the same, Help! Thanks!

@dariomadeira what happens if you use c590ab12edbf5b6fce30b13a42e974c0abadd506 flutter map but you don't provide any settings like this: overrideTilesWhenUrlChanges: true, tileFadeInDuration: 0, tileFadeInStartWhenOverride: 1.0,. By default overrideTilesWhenUrlChanges is false and the map still reloads the tiles but first it drops all old tiles and loads new ones (not overrides them one by one) if it works then tileFadeInStartWhenOverride: true maybe has some bugs.

@maRci002 I don't understand how to fix the error, in my pubspec.yaml I have:
  flutter_map:     git:       url: git://github.com/johnpryan/flutter_map.git       ref: c590ab12edbf5b6fce30b13a42e974c0abadd506
and my code is:
import 'package:flutter/material.dart';
import 'package:qrreaderapp/src/models/scan_model.dart';
import 'package:flutter_map/flutter_map.dart';
// import 'package:latlong/latlong.dart';

class MapaPage extends StatefulWidget {
  //const MapaPage({Key key}) : super(key: key);

  @override
  _MapaPageState createState() => _MapaPageState();
}

class _MapaPageState extends State<MapaPage> {

  final map = MapController();
  String tipoMapa = "streets-v11";

  @override
  Widget build(BuildContext context) {

    final ScanModel scan = ModalRoute.of(context).settings.arguments;

    return Scaffold(
      appBar: AppBar(
        title: Text("Coordenadas QR"),
        actions: <Widget>[
          IconButton(
            icon: Icon(Icons.my_location),
            onPressed: (){
              map.move(scan.getLatLng(), 15);
            },
          ),
        ],
      ),
      body: _crearFlutterMap(scan),
      floatingActionButton: _crearBotonFlotante(context),
    );
  }

  Widget _crearFlutterMap(ScanModel scan) {
    return FlutterMap(
      mapController: map,
      options: MapOptions(
        center: scan.getLatLng(),
        zoom: 15,
      ),
      layers: [
        _crearMapa(),
        _crearMarcadores(scan),
      ],
    );
  }

  _crearMapa() {
    return TileLayerOptions(
      urlTemplate :  "https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}" ,
      additionalOptions: {
        'accessToken': '<MyToken>',
        'id': 'mapbox/$tipoMapa',
      }
    );
  }

  _crearMarcadores(ScanModel scan) {
    return MarkerLayerOptions(
      markers: <Marker> [
        Marker(
          width: 100.0,
          height: 100.0,
          point: scan.getLatLng(),
          builder: (context) => Container(
            child: Icon(Icons.location_on, color: Theme.of(context).primaryColor, size: 70.0),
          )
        ),
      ]
    );
  }

  Widget _crearBotonFlotante(BuildContext context) {
    return FloatingActionButton(
      onPressed:(){
        setState(() {
          if (tipoMapa == "streets-v11") {
            tipoMapa = "outdoors-v11";
          } else if (tipoMapa == "outdoors-v11") {
            tipoMapa = "light-v10";
          } else if (tipoMapa == "light-v10") {
            tipoMapa = "dark-v10";
          } else if (tipoMapa == "dark-v10") {
            tipoMapa = "satellite-v9";
          } else if (tipoMapa == "satellite-v9") {
            tipoMapa = "satellite-streets-v11";
          } else {
            tipoMapa = "streets-v11";
          }
        });
      },
      child: Icon(Icons.repeat),
      backgroundColor: Theme.of(context).primaryColor,
    );
  }
}

the result:
https://imgur.com/zpIm8gP
I am new to Flutter, sorry for my English and thank you very much!

@dariomadeira I see the problem now. I haven't checked additionalOptions if it's conetent is changed or not, I'll fix it soon.
Till use this as workaround:
      urlTemplate :  "https://api.mapbox.com/styles/v1/mapbox/$tipoMapa/tiles/{z}/{x}/{y}?access_token={accessToken}" ,
      additionalOptions: {
        'accessToken': '<MyToken>',
      }

@maRci002
Thank you very much for answering!

@maRci002 Thanks for implementing this. I'm now using 381afd019d34f29e12e997018c65d41e79384964 and it works great to have the map refreshed when changing the map with a different urlTemplate. However, I have a MarkerLayerOptions layer as well where I have an option to show/hide this marker layer. When toggling this marker layer the map layer also gets redrawn even though the urlTemplate has not been changed. Is this by design or am I doing something wrong?
If I use 0.9.0 I can toggle the marker layer without the map being reloaded.

@dariomadeira I see the problem now. I haven't checked additionalOptions if it's conetent is changed or not, I'll fix it soon.
Till use this as workaround:
      urlTemplate :  "https://api.mapbox.com/styles/v1/mapbox/$tipoMapa/tiles/{z}/{x}/{y}?access_token={accessToken}" ,
      additionalOptions: {
        'accessToken': '<MyToken>',
      }

Dear @maRci002 I've tried to fix that here #740 . Can you take a look into that MR and give feedback if that's correct?


chore(Order/Interval/Set/Infinite): instance NoMaxOrder.infinite and NoMinOrder.infinite

These instances are no longer problematic in Lean 4.

!bench

I agree the tiny extra search time is no big deal, but it would be good to see (also for future changes) if changing instance priorities can help avoid this issue completely. But LGTM either way so:
bors d+

!bench

This seems to give basically the same results. I think we can keep these instances at full priority until there's an actual reason to lower it.

bors r+


[BUG] No error message is seen on the UI when the user tries to restore from latest backup which has been deleted

Describe the bug
No error message is seen on the UI when the user tries to restore from latest backup which has been deleted
To Reproduce

Create a volume, PV/PVC/ attach to a workload. Write some data into the volume
Enable recurring backups for this volume for every minute
Wait for a couple of recurring backups happen
Go to Backup list page and delete the latest backup
Go back to backup page

Issue#1: When user comes to Backup page, Last Backup At column is blank for that backup v1

Issue#2: When user tries to do restore latest backup, he sees error in console.
main.97987796.async.js?11ce8446a12da3cabdc2:40 Uncaught (in promise) TypeError: Cannot read property 'volumeName' of null
    at main.97987796.async.js?11ce8446a12da3cabdc2:40
    at Array.forEach (<anonymous>)
    at main.97987796.async.js?11ce8446a12da3cabdc2:40
    at s (main.97987796.async.js?11ce8446a12da3cabdc2:21)
    at Generator._invoke (main.97987796.async.js?11ce8446a12da3cabdc2:21)
    at Generator.forEach.e.<computed> [as next] (main.97987796.async.js?11ce8446a12da3cabdc2:21)
    at H (main.97987796.async.js?11ce8446a12da3cabdc2:26)
    at s (main.97987796.async.js?11ce8446a12da3cabdc2:26)
    at main.97987796.async.js?11ce8446a12da3cabdc2:26
    at o (main.97987796.async.js?11ce8446a12da3cabdc2:16)

Expected behavior
In both the issues, user should see an error message on the UI that the latest backup is not found
Environment:

Longhorn version: master - 04/16/2020
Kubernetes version: 1.17.4
Node OS type and version: rke DO Linux

Backup data returned without lastBackupName @yasker

When a new backup was created, the lastBackup should be updated. So it's ok to disable the option temporarily since it's uncommon to remove the last backup.

Validation: PASSED
Longhorn UI: wangsiye/longhorn-ui:9211206
Steps to test:

Create a volume, PV/PVC/ attach to a workload. Write some data into the volume, compute it's checksum (checksum#1)
Enable recurring backups for this volume for every 2 minutes
Wait for a couple of recurring backups happen
Go to Backup list page and delete the latest backup
Go back to backup page
When user comes to Backup page, Last Backup At column is blank for that backup v1 (PASSED)
On Backup page, on Operation menu Restore Latest Backup should be disabled while no new backup has been created.
write some more data to the volume, and compute it's checksum (checksum#2)
Wait for a new backup to be created.
Click on Backup for Last Backup Atvalue to be updated.
On Backup page, on Operation menu Restore Latest Backup should be enabled
Restore latest backup, verify volume data, and verify it's checksum (checksum#1& checksum#2)


istioctl x internal-debug does nothing anymore

$ go run ./istioctl/cmd/istioctl x internal-debug adsz  | wc -l
0

broken by https://github.com/istio/istio/pull/47801


MAINT: special: clean up Cephes header files

Remove commented out function declarations and fix whitespace in
cephes.h and remove accidental semicolons in cephes.pxd.

Changes approved 18 days ago with no subsequent comments & CI suite passes, so in it goes.


Update Feed Text

Change "Likes" to "Like"
Change "Comments" to "Comment"

[#108473372]

test are actually in host applications. Example: https://github.com/cbitstech/sunnyside/blob/master/spec/features/social_networking/home_tool_spec.rb#L53 and https://github.com/cbitstech/sunnyside/blob/master/spec/features/social_networking/home_tool_spec.rb#L106


[WIP] Use Optional for arguments set to None by default

Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure to update the docs?
[ ] Did you write any new necessary tests?

What does this PR do?
Fixes type hints so that we use typing.Optional for variables that have None by default. Motivation is the same as https://github.com/PyTorchLightning/pytorch-lightning/pull/4164.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Hello @akihironitta! Thanks for updating this PR.

In the file pl_bolts/callbacks/self_supervised.py:

Line 24:121: E501 line too long (132 > 120 characters)


Allow source account to be its own owner in Transfer and Transfer2

#411 for /program-v3
In the transfer instruction, if the source account owns itself the instruction panics trying to double mutably borrow.
Add test and re-arrange to avoid duplicate borrow
These changes are incomplete: more duplicate key tests should be added and more instructions will probably have to be updated. To follow in separate PRs
Also, since I was in there:
Fixes #427

Fyi @jackcmay , I added a few more test cases here to ensure that other duplicates (destination-owner and source-multisig-signer) cause no issues

Looks like this same issue also applies to most of the other instructions

Looks like this same issue also applies to most of the other instructions

Yep, expect more PRs shortly!


CI: run it for change on every file.

Codecov Report

Merging #299 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #299      +/-   ##
==========================================
- Coverage   99.91%   99.91%   -0.01%
==========================================
  Files          19       19
  Lines        1247     1238       -9
  Branches      196      196
==========================================
- Hits         1246     1237       -9
  Partials        1        1

Flag
Coverage Δ

#unittests
99.91% <ø> (-0.01%)
:arrow_down:

Impacted Files
Coverage Δ

src/schemathesis/extra/pytest_plugin.py
100% <0%> (ø)
:arrow_up:

src/schemathesis/runner/events.py
100% <0%> (ø)
:arrow_up:

src/schemathesis/models.py
100% <0%> (ø)
:arrow_up:

src/schemathesis/lazy.py
100% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Add decimal type support to RowContainer

The (RowContainerTest, types) creates RowContainers with mix of Scalar and Complex types.
This change includes short and long decimals in the types test. Also, encountered deserialization
issue with LONG_DECIMALS when trying to use reinterpret_cast on long decimal values here:
 template <typename T>
  static inline T valueAt(const char* FOLLY_NONNULL group, int32_t offset) {
    return *reinterpret_cast<const T*>(group + offset);
  }

Specialized the RowContainer::valueAt<>() and DecodedVector::valueAt<>() method to read long decimal values as two 64 bit values.

@karteekmurthys can you describe the deserialization issue?

Thanks Deepak, updated. I have a SEGFAULT in the test. Will try to resolve it and open this PR for review.

@karteekmurthys can you also clarify Also, encountered deserialization issue with LONG_DECIMALS when trying to use reinterpret_cast on long decimal values here?
What was the behavior?

I tried overloading makeNullableShortDecimalFlatVector but hit this issue:
../../velox/expression/tests/CastExprTest.cpp: In member function 'virtual void CastExprTest_decimalToDecimal_Test::TestBody()':
../../velox/expression/tests/CastExprTest.cpp:733:75: error: call of overloaded 'makeNullableLongDecimalFlatVector(<brace-enclosed initializer list>, facebook::velox::TypePtr)' is ambiguous
  733 |               {UnscaledLongDecimal::max().unscaledValue()}, DECIMAL(38, 0)),
      |

Added new methods insteads to create flat vectors from unscaled values.
Reason: https://stackoverflow.com/questions/14587436/call-of-overloaded-brace-enclosed-initializer-list-is-ambiguous-how-to-deal-w

@karteekmurthys the decimal vector creation does not look clean.  I will try to come up with a cleaner API today. Can you move the RowContainerTest changes to its own PR since that is complete and independent?

@Yuhta would you please review and help with the merge.

Merged as 9ca921171cf6cddc85125813afc17b31e052030a

Thanks Karteek for this change.
@pramodsatya : This should enable us to try decimal values in Window function tests (both in PARTITION BY/ORDER BY) and nth_value. Please can you try the same.

Hi Aditi, thanks for sharing! I have added tests with decimal values in PARTITION BY/ORDER BY for the nth_value function. The ShortDecimal tests are running fine but the DuckDb results with LongDecimal are incorrect (looking into it).


typeof A vs Class<A>

Ran into this one a little bit ago while working on a Bluebird lib:
According to the documentation:

Given a type T representing instances of a class C, the type Class is the type of the class C.

So it would stand to reason that a definition like this should work:
declare module 'bluebird' {
  class BluebirdPromise<R> {
    // ....
  }
  declare var exports: Class<BluebirdPromise>;
}

Yet this throws all kinds of errors about polymorphic types not equaling class types.
The solution is to export:
  declare var exports: typeof BluebirdPromise;

When should one use Class<T> vs typeof?

@STRML The kink here with using Class<BluebirdPromise> as a type is that BluebirdPromise is not really a valid type. Today, it is interpreted as sugar for BluebirdPromise<any> (which is not what you intend), and in the future we will require type arguments to make this fact explicit.
typeof is indeed the right solution here, since it's argument is a value, and certainly BluebirdPromise is a value: it is a class at run time whose type happens to be polymorphic, i.e., something like <T> Class<BluebirdPromise<T>>.
In the future we will have more direct ways of expressing what you want instead of needing the indirection, much like how regular ES6 modules can export default.

gonna leave this open to update the docs


[Website] add Intuit case-study

add intuit to case-studies
add intuit to quote-cards on homepage

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

@pabloem, @aijamalnk, could you, please, review current PR?

Thank you, LGTM!


Liveview Canon EOS750D

Describe the bug
I´m able to capture a photo via gphoto2 from the Canon EOS750D - but I don´t get a live preview.
To Reproduce
Steps to reproduce the behavior:
2. Click on Image
3. Get Photo but no live preview
Expected behavior
Live preview from the camera
Additional context
Camera is connected via usb; ist putted on manual focus; tried different modes (auto, video, etc.) on the camera itslef; no changes;

Ok, I´ve solved it by my own:
systemctl --user stop photobooth-app.service
gphoto2 --camera="Canon EOS 750D" --set-config viewfinder=1
systemctl --user start photobooth-app.service

Hey, my camera 1100d switches to viewfinder mode automatically and instead I need to disable viewfinder before capture: https://github.com/photobooth-app/photobooth-app/blob/29396c59dd9e5a22ac108a76839280d126ec6ea1/photobooth/services/backends/gphoto2.py#L297
You need to set to one once before you start the app? Liveview still works after first picture captured?

No works fine; after the photo it´s just sending a new livefeed


Fix black docker image builds

The newest version of black broke our dockerfile because it requires gcc
to be installed. I've modified the black Dockerfile to a two-staged such
that the image size stays small.
Fixes #51

Friendly ping :)


GraphQL error handling

Currently when graphql errors occur, the error text is written out under the submit button. Introduce a error dialog with a general user friendly message.

 General refinement

#265 handled graphql errors for forms. The PR against this issue deals with graphql errors when loading containers.


Can someone please explain to me how to install opendevin using windows WSL (ubuntu) because i've been 3 hours trying and the only thing i got as a result was a headache

Please someone can explain how to install it like with detail because i don't know how to install it and each tutorial gives a different way that at the end ends with an error

This

???

can you write what the problems you met? or just post the errors you faced.

can you write what the problems you met? or just post the errors you faced.

i don't really know how to install it, could you help me?

I am getting this error

@jaslogic1 , thank you for the report, I have created a new issue #655 that we can track separately.
And thank you everyone for the comments on Windows install. If you have the same issue as @jaslogic1 , could you please upvote it or comment there in #655? If you have a different issue, could you please create an issue with detail of the error message?
I am going to close this issue because we'll need more detail in order to resolve it.
And everyone, I understand that the instructions for OpenDevin keep changing, this is a rapidly developing OSS project that just started about two weeks ago, so hopefully things will be stabilizing soon! We welcome PRs to help out with that.

Can someone give me clear instructions on how to install this please? im new in this things and i want to try this out but idk how to use the command "make" to install it

make run
Running the app...
make[1]: Entering directory '/home/zeus/workspace/devin/OpenDevin'
Starting backend...
make[1]: Entering directory '/home/zeus/workspace/devin/OpenDevin'
Starting frontend...
make[1]: python: No such file or directory
make[1]: *** [Makefile:26: start-backend] Error 127
make[1]: Leaving directory '/home/zeus/workspace/devin/OpenDevin'

<EMAIL_ADDRESS>start
vite

/mnt/c/Users/User/AppData/Roaming/npm/node_modules/vite/node_modules/rollup/dist/native.js:89
throw new Error(
^
Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try npm i again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (/mnt/c/Users/User/AppData/Roaming/npm/node_modules/vite/node_modules/rollup/dist/native.js:89:9)
at Object. (/mnt/c/Users/User/AppData/Roaming/npm/node_modules/vite/node_modules/rollup/dist/native.js:98:76)
... 3 lines matching cause stack trace ...
at Module._load (node:internal/modules/cjs/loader:1019:12)
at ModuleWrap. (node:internal/modules/esm/translators:203:29)
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:337:24) {
[cause]: Error: Cannot find module '@rollup/rollup-linux-x64-gnu'
Require stack:

/mnt/c/Users/User/AppData/Roaming/npm/node_modules/vite/node_modules/rollup/dist/native.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at requireWithFriendlyError (/mnt/c/Users/User/AppData/Roaming/npm/node_modules/vite/node_modules/rollup/dist/native.js:71:10)
at Object. (/mnt/c/Users/User/AppData/Roaming/npm/node_modules/vite/node_modules/rollup/dist/native.js:98:76)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/mnt/c/Users/User/AppData/Roaming/npm/node_modules/vite/node_modules/rollup/dist/native.js'
]
}
}

Node.js v18.20.0
make[1]: *** [Makefile:31: start-frontend] Error 1
make[1]: Leaving directory '/home/zeus/workspace/devin/OpenDevin'
Please help me fix this
I am using WSL

@Zeus9820 It seems that Python is not installed in your version of WSL, so you will need to install it. This isn't an OpenDevin specific problem so we probably won't be able to provide support for that.

I have fixed it can you see whats happening here
zeus@ZEUS:~/workspace/devin/OpenDevin$ make run
Running the app...
make[1]: Entering directory '/home/zeus/workspace/devin/OpenDevin'
Starting backend...
make[1]: Entering directory '/home/zeus/workspace/devin/OpenDevin'
Starting frontend...
yarn run v1.22.19
$ vite
Traceback (most recent call last):
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/bin/uvicorn", line 8, in
sys.exit(main())
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/uvicorn/main.py", line 409, in main
run(
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/uvicorn/main.py", line 575, in run
server.run()
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/uvicorn/config.py", line 433, in load
self.loaded_app = import_from_string(self.app)
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/uvicorn/importer.py", line 22, in import_from_string
raise exc from None
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/zeus/workspace/devin/OpenDevin/opendevin/server/listen.py", line 1, in
from opendevin.server.session import Session
File "/home/zeus/workspace/devin/OpenDevin/opendevin/server/session.py", line 5, in
from fastapi import WebSocketDisconnect
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/fastapi/init.py", line 7, in
from .applications import FastAPI as FastAPI
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/fastapi/applications.py", line 16, in
from fastapi import routing
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/fastapi/routing.py", line 22, in
from fastapi import params
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/fastapi/params.py", line 5, in
from fastapi.openapi.models import Example
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/fastapi/openapi/models.py", line 4, in
from fastapi._compat import (
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/fastapi/_compat.py", line 24, in
from starlette.datastructures import UploadFile
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/starlette/datastructures.py", line 7, in
from starlette.concurrency import run_in_threadpool
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/starlette/concurrency.py", line 8, in
import anyio.to_thread
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/anyio/init.py", line 27, in
from ._core._sockets import connect_tcp as connect_tcp
File "/home/zeus/.local/share/virtualenvs/OpenDevin-vcEyM1DF/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 35, in
from exceptiongroup import ExceptionGroup
ModuleNotFoundError: No module named 'exceptiongroup'
make[1]: *** [Makefile:26: start-backend] Error 1
make[1]: Leaving directory '/home/zeus/workspace/devin/OpenDevin'
VITE v5.2.7  ready in 283 ms
➜  Local:   http://localhost:3001/
➜  Network: use --host to expose
6:55:08 AM [vite] ws proxy error:
Error: connect ECONNREFUSED <IP_ADDRESS>:3000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
6:55:08 AM [vite] http proxy error: /litellm-models
Error: connect ECONNREFUSED <IP_ADDRESS>:3000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
6:55:08 AM [vite] http proxy error: /litellm-agents
Error: connect ECONNREFUSED <IP_ADDRESS>:3000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
6:55:08 AM [vite] http proxy error: /litellm-models
Error: connect ECONNREFUSED <IP_ADDRESS>:3000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
6:55:08 AM [vite] http proxy error: /litellm-agents
Error: connect ECONNREFUSED <IP_ADDRESS>:3000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)

Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.

INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:3000 (Press CTRL+C to quit)
I have fixed all the issues i dont know what is happeing here

we need more info if you want help.
python --version
python3 --version
docker-compose --version
node --version
cat /etc/os-release
I had a problem that makefile was looking for python and not python3.
so provide this info, and i can help

I have resolved all this issues of wsl it is working fine now @azmodeuz

Was running into quite a bit of issues too on WSL. One thing that really help me to get it working is by creating a opendevin_env python3.11 venv and then cloning the report in the venv folder. After source activating, run the make file.
Another thing with just using the python command in the MakeFile, it assumes that you are already in a venv and running make build in the venv. I think this can be solved by both adding a way to specify python 3.11 or greater or just python3.11 as default or adding commands in the MakeFile to create a venv with python3.11 or greater first before running any python commands
Something I would like to add to the setup instructions especially WSL. I am going to try it in a fully Linux env (PopOS) though and see if I get similar issues.


Adds new Level: Planet XMLon

Why:
Adding a new level for XXE leading to an RCE vulnerability due to a file upload.
What's being changed:
Adding a level around XXE.
Check off the following:

[x]  For workflow changes, I have verified the Actions workflows function as expected.
[x]  For content changes, I have reviewed the style guide.

As the second season levels are hosted in an internal repo for staff testing and content review, I am now closing this public PR. Thanks again for your valuable contribution and it will be soon merge into the public repo :-)