-
Notifications
You must be signed in to change notification settings - Fork 382
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
%classpath add mvn: NoSuchFileException #7780
Comments
I suspect this is some kind of Maven/Windows issue possibly involving |
I confirm on windows 10. The text file indeed does not exist (the jar is where is should be). Also the path shown in the notebook uses DOS-like abbreviation for user name which is not used for a long time. Windows 10 fully supports unix-like paths. |
I've searched the source code. The path is resolved here. The code is really strange since it uses manual addition of token to path and transformation from io path to nio path. it should be like this: File file= new File(pathToMavenRepo, MAVEN_BUILT_CLASSPATH_FILE_NAME);
InputStream isPaths = new FileInputStream(file); Also it is possible to avoid IOUtils and us |
Let's focus on finding and fixing the bug in this discussion. Every software project that isn't a solo effort will have a variety of contributors with a variety of backgrounds, and every open source software project can benefit from volunteers helping to improve the code. |
Sorry. My rude remarks aside, the problem probably comes from python part. I've encountered similar behavior in another python based piece of code recently. For some reason it tries to use DOS-like name abbreviations for user home directory name. |
I don't seem to be able to use
%classpath add mvn
anymore since v1.1.0.I'm working on Windows, with v1.1.0 of BeakerX installed with pip, and maven 3.5.4 in my PATH. I'm starting with an empty Clojure notebook and then I'm executing
%classpath add mvn com.google.code.gson gson 2.2.4
(or any other library). This throws exception:java.nio.file.NoSuchFileException: C:\Users\XXXX\AppData\Local\Temp\beaker400090105507806186\mvnJars\mavenclasspathfilename.txt
When I execute
%classpath add mvn ...
, the notebook shows that the library gets downloaded from the remote repo, but then NoSuchFileException is thrown. The library does appear in the local cache after this. But if I re-run%classpath add mvn ...
, with the files already there, the download starts again, and the exception is thrown again.So whether the library is already in the cache or not, I can't add any maven dependency to my classpath.
Reverting to 1.0.0 (simply
pip install beakerx==1.0.0
) solves the issue.The text was updated successfully, but these errors were encountered: