Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pub get error #47

Open
Mahati9 opened this issue Nov 12, 2021 · 8 comments
Open

Pub get error #47

Mahati9 opened this issue Nov 12, 2021 · 8 comments

Comments

@Mahati9
Copy link

Mahati9 commented Nov 12, 2021

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

@Purus
Copy link

Purus commented Nov 18, 2021

Same with my case too.. unable to solve with cache clear.

@jackeychina
Copy link

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 :)

@Purus
Copy link

Purus commented Nov 19, 2021

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?

@Mahati9
Copy link
Author

Mahati9 commented Nov 19, 2021

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

@jackeychina
Copy link

jackeychina commented Nov 19, 2021

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.

@jackeychina
Copy link

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 .

@Purus
Copy link

Purus commented Nov 19, 2021

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)

@jacksontan88
Copy link

jacksontan88 commented Jun 29, 2022

//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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants