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

Add support for Yarn 3 #62

Open
epomatti opened this issue Jul 21, 2022 · 4 comments
Open

Add support for Yarn 3 #62

epomatti opened this issue Jul 21, 2022 · 4 comments

Comments

@epomatti
Copy link

epomatti commented Jul 21, 2022

Getting this error when running latest yarn versions:

$ yarn --version
3.2.1
const { python } = require('pythonia')

python3: can't open file '/home/pomatti/nodejs-python-interop/.yarn/__virtual__/pythonia-virtual-8228fabc54/0/cache/pythonia-npm-1.0.0-bf636a6ffb-96a24ebdbf.zip/node_modules/pythonia/src/pythonia/interface.py': [Errno 2] No such file or directory
@alagiribuddhar
Copy link

Is this issue fixed since I am also getting same type of error?

@KrzysztofZawisla
Copy link

@epomatti @alagiribuddhar I had the same error, and the clue to resolve it is to add pythonia to webpack externals in case when we create a bundle. I bet in your use-cases pythonia has a different process.cwd() result than __dirname.

@thearchitector
Copy link
Contributor

thearchitector commented Apr 25, 2024

if anyone comes across this in the future and is using Yarn PnP, you can resolve this error by telling yarn to unplug the package at install time

package.json

"dependenciesMeta": {
    "[email protected]": {
      "unplugged": true
    }
  }

that will force yarn to install the package to an actual FS location, rather than resolve it virtually from within the cached zip file (which this package doesn't support yet)

@petrosmm
Copy link

petrosmm commented Jun 19, 2024

@KrzysztofZawisla I think there is a similar problem with pnpm, would you be able to point me in the right direction to investigate?

Update: solution is the same as this issue: ldapjs/node-ldapjs#967

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

5 participants