Pub get error
Opened this issue · 8 comments
I get this error while installing this package and its dependencies.
Cannot open file, path = 'C:\flutter\.pub-cache\_temp\dir5ba449a4\test\fixtures\invalid\n_structure_<.>.json' (OS Error: The filename, directory name, or volume label syntax is incorrect.
, errno = 123)
pub finished with exit code 66
I have tried everything based on previous answers related such as
flutter clean
flutter pub cache repair
Also deleting pub cache folder. Nothing worked. The issue comes only when I install this image_editor_pro plugin. It is not the case with any other plugin. I thought there is some bug with this plugin. Surprisingly, no one else reported this issue. So please help me if someone tried to resolve this
Same with my case too.. unable to solve with cache clear.
I have resolved it. You can download it from here - https://drive.google.com/file/d/1DV1OsriI0su3Is13j65NpOpabRlOhDTZ/view?usp=sharing
Now it will work with flutter 2.5
Enjoy :)
I have resolved it. You can download it from here - https://drive.google.com/file/d/1DV1OsriI0su3Is13j65NpOpabRlOhDTZ/view?usp=sharing
Now it will work with flutter 2.5
Enjoy :)
Thanks for your time on this. By any chance, you have it GitHub so that it can be used directly in pubspec.yml and contribute too?
Is it working properly for you @Purus ?
@jackeychina I am getting this error while uploading pubspec via path.
Running "flutter pub get" in editing_pro...
Because every version of image_editor_pro from path depends on firexcode from path which is forbidden, image_editor_pro from path is forbidden.
So, because editing_pro depends on image_editor_pro from path, version solving failed.
pub get failed (66; So, because editing_pro depends on image_editor_pro from path, version solving failed.)
exit code 66
This is the pubspec file
version: 1.0.0+1
environment:
sdk: ">=2.15.0-285.0.dev <3.0.0"
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
image_editor_pro:
path: "C:/Users/Avilain/Downloads/ImageEditorPro-master_solved/ImageEditorPro-master_solved"
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
uses-material-design: true
My flutter version is 2.6.0-12.0.pre.701
I have resolved it. You can download it from here - https://drive.google.com/file/d/1DV1OsriI0su3Is13j65NpOpabRlOhDTZ/view?usp=sharing
Now it will work with flutter 2.5
Enjoy :)Thanks for your time on this. By any chance, you have it GitHub so that it can be used directly in pubspec.yml and contribute too?
@Purus
No i haven't created separate git to maintain or contribute. If you want then you can do it.
Is it working properly for you @Purus ? @jackeychina I am getting this error while uploading pubspec via path.
Running "flutter pub get" in editing_pro... Because every version of image_editor_pro from path depends on firexcode from path which is forbidden, image_editor_pro from path is forbidden. So, because editing_pro depends on image_editor_pro from path, version solving failed. pub get failed (66; So, because editing_pro depends on image_editor_pro from path, version solving failed.) exit code 66
This is the pubspec file
version: 1.0.0+1 environment: sdk: ">=2.15.0-285.0.dev <3.0.0" # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions # consider running `flutter pub upgrade --major-versions`. Alternatively, # dependencies can be manually updated by changing the version numbers below to # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 image_editor_pro: path: "C:/Users/Avilain/Downloads/ImageEditorPro-master_solved/ImageEditorPro-master_solved" dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^1.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. flutter: uses-material-design: true
My flutter version is 2.6.0-12.0.pre.701
You do not have to define whole C drive path. Kindly check my code .
I am still having the same issue as before. I am trying in Windows 10.
I updated the path of firexcode in ImageEditorPro-master_solved/pubspec.yaml to refer the correct path. But after that, i get the initial error.
Cannot open file, path = 'C:\flutter\.pub-cache\_temp\dir5ba449a4\test\fixtures\invalid\n_structure_<.>.json' (OS Error: The filename, directory name, or volume label syntax is incorrect.
, errno = 123)
//Same with my case too.. unable to solve with cache clear.
Running "flutter pub get" in photo...
Cannot open file, path = 'C:\Users\spaculus\flutter_2.5.0.pub-cache_temp\dir9ee0b997\test\fixtures\invalid\n_structure_<.>.json' (OS Error: The filename, directory name, or volume label syntax is incorrect.
, errno = 123)
pub get failed (66; , errno = 123))
Process finished with exit code 66