I get an error when trying to generate the documentation in readthedocs.org, autodoc is failing to import a set of functions with the following error message:
WARNING: autodoc: failed to import function 'open_template' from module 'pypyt'; the following exception was raised:
Missing required dependencies ['numpy']
I'm using the requirements file, so the environment is actually installing numpy. I've tried to mock it, autodoct_mock_imports, autodoct_warningiserro, suppress_warnings, but no has worked.
The conf.py file I use is in the repo below
https://github.com/llulai/pypyt/blob/master/docs/conf.py
Anything I haven't tried yet?
thanks
ps: when I run it locally, it works without any problems
Related
I'm new to Kotlin scripting, and I'm trying to use Kscript to import libraries. I've been following the tutorials, and trying a very simple script (below) that imports a couple libraries. When I go to run the script, I get the below error (this error happens with any import I try to do). The script runs fine when I remove the imports. Any ideas on how I can fix the imports in my code?
Error message:
[kscript] Resolving dependencies...
[kscript] Resolving org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2...Exception in thread "main" java.lang.NoClassDefFoundError: org/ietf/jgss/GSSException
My code:
#!/usr/bin/env kscript
#file:MavenRepository("central", "https://repo.maven.apache.org/maven2/")
#file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2")
#file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.2")
import kotlinx.coroutines.*
println("Script is running with ${args.size} args passed")
for(arg in args) {
println("arg: $arg")
}
This script fails when you use jdk 9+ and causes the NoClassDefFoundError for org/ietf/jgss/GSSException on Kotlin 1.3.x.
As a workaround use jdk 1.8.
Future fix refer this Dependencies are working only with jdk8
I am trying to create autodoc for my python project. the problem is that when I am trying to do make html it's not working...
my project tree looks like -
- docs
- EDA_miner
When the EDA miner contains all the code
https://pasteboard.co/If8dT8AS.png - project tree
in the sphinx's conf.py I configured like -
sys.path.insert(0, os.path.abspath('../..'))
but when I am trying to generate using make html I get
WARNING: autodoc: failed to import module 'app' from module 'EDA_miner';
the following exception was raised:
No module named 'server'
WARNING: autodoc: failed to import module 'menus' from module 'EDA_miner';
the following exception was raised:
No module named 'server'
when I am opening ipython and importing server.py it succeed, how am I doing wrong ?
Make to run make html from within your virtual environment (or just be sure to have all your python dependencies installed)
I am trying to migrate from rx5 to rx6 by following the guide here. Initially, I installed along with the rxjs-compat package and everything works fine. However, when I try to remove the rxjs-compat package, I am getting an exception Cannot find module 'rxjs-compat/Subscription'. I used the rxjs-5-to-6-migrate to perform the migration
I am using this statement for Subscription : import { Subscription } from "rxjs";
For reference this is my branch- https://github.com/akshita31/omnisharp-vscode/tree/rxjs_update and this is the corresponding pull request that lists all the changes - https://github.com/OmniSharp/omnisharp-vscode/pull/2830
I updated all the dependencies to the latest versions and used the rxjs-tslint-rules as follows
npm install rxjs-tslint-rules --save-dev
Then in my tslint.json add the rule "rxjs-no-compat" : true
Execute ./node_modules/.bin/tslint -c tslint.json -p tsconfig.json in the project folder. This will give all the set of invalid imports
Resolve the invalid imports and then try removing the rxjs-compat package.
I also cleaned my npm cache - npm cache clean --force
If there are no more errors, we can as well remove the above tslint dependency from the package.json
More details can be found in the issue.
Thanks #cartant for the help
Do you by any chance still have some imports that are still using rxjs-compat?
With the migration from rxjs 5 to 6, you need to be very careful about all the imports, since you don't want to import some module from wrong the wrong path. I believe rxjs-tslint can help you.
I have maven project where i am adding the dependencies which are not resolvable as below.
My servlet is as follows:
LocaleUtil is getting resolve but its sub packages are throwing error when including.
I have tried invalidate cache and restart. But this didn't work for me.
Thanks,
The packages you are trying to import are internal, non-exported packages of the bundle com.adobe.granite.i18n. In fact, that bundle only exports the following packages:
Export-Package
com.adobe.granite.i18n {version=1.0, imported-as=[1.0.0,1.1)}
com.day.cq.i18n {version=5.4.0}
You should not attempt to use private packages of a library. Limit yourself to using only the exported API.
RoleGroupAOImpl1Client.java:3: error: cannot find symbol import
com.shaic.framework.service.org.CreateRoleGroup;
I'm getting this error while building, can anyone help me?
your code does not compile, probably because of a missing dependency - the one that has the CreateRoleGroup class. Since it looks like an internal class, you might need to check if it is properly packaged (in a jar) and uploaded to the repository you use.