Tracd creating Environment - tracd

I was trying to create a Tracd Environment using the following command :
trac-admin D:\My_Project initenv
I get an error saying
Import Error : No module named pkg_resources
What am I missing? I have installed Genshi and Python 2.5.2
Thanks...

Read the Trac wiki. You need setuptools, which you can download here.

Related

How to get rid of the error "_ms sql" not found

There is a script with import pymssql.
I'm trying to compile this file with this command
As a result, I get an error:
45873 WARNING: Hidden import "_mssql" not found!
Maybe someone has encountered a similar one? Tell me what can be done?
enter image description here
If you are using pymssql > 2.1.5, you can add these arguments:
--hidden-import decimal --hidden-import pymssql._mssql --hidden-import uuid
when running PyInstaller.
I have updated the hook for this.

How to Import Jar or Java code in Robot Framework use the methods defined in Java

I have followed all the steps provided in Link
https://blog.codecentric.de/en/2012/06/robot-framework-tutorial-writing-keyword-libraries-in-java/
Folder Structure
Running Jybot
Console:
C:\robot\execution\local\scripts>start_SampleLibrary_TestSuite.bat
C:\robot\execution\local\scripts>del ......\output*.xml /Q
The system cannot find the file specified.
C:\robot\execution\local\scripts>del ......\output*.html /Q
The system cannot find the file specified.
C:\robot\execution\local\scripts>del ......\output*.png /Q
The system cannot find the file specified.
C:\robot\execution\local\scripts>set CLASSPATH="....\lib\SampleLibrary.jar;"....\lib\SampleLibrary.jar;""
C:\robot\execution\local\scripts>echo "....\lib\SampleLibrary.jar;"....\lib\SampleLibrary.jar;""
"....\lib\SampleLibrary.jar;"....\lib\SampleLibrary.jar;""
C:\robot\execution\local\scripts>jybot --outputdir ......\output ......\implementation\testsuites\SampleLibraryTestsuite.html
[ ERROR ] Parsing '......\implementation\testsuites\SampleLibraryTestsuite.html' failed: Data source does not exist.
Any suggestions is appriciated !!
https://tutel.me/c/programming/questions/42384822/it+errors+when+specifying+the+user+defined+java+library+into+red+robot+framework+eclipse+editor
With reference to above blog, it worked !!!
Why Java? RobotFramework is python wrapper, you can use python with all its library.
Easy to import:
Library your/python/file/path.py
You can also execute a python line in one robot file
Evaluate print("Hello word")
BTW you can make your java keyword and import it in robot. Tutorial here https://blog.codecentric.de/en/2012/06/robot-framework-tutorial-writing-keyword-libraries-in-java/

Apache spark-shell error import jars

I have a local spark 1.5.2 (hadoop 2.4) installation on Windows as explained here.
I'm trying to import a jar file that I created in Java using maven (the jar is jmatrw that I uploaded on here on github). Note the jar does not include a spark program and it has no dependencies to spark. I tried the following steps, but no one seems to work in my installation:
I copied the library in "E:/installprogram/spark-1.5.2-bin-hadoop2.4/lib/jmatrw-v0.1-beta.jar"
Edit spark-env.sh and add SPARK_CLASSPATH="E:/installprogram/spark-1.5.2-bin-hadoop2.4/lib/jmatrw-v0.1-beta.jar"
In a command window I run > spark-shell --jars "E:/installprogram/spark-1.5.2-bin-hadoop2.4/lib/jmatrw-v0.1-beta.jar", but it says "Warning: skip remote jar"
In the spark shell I tried to do scala> sc.addJar("E:/installprogram/spark-1.5.2-bin-hadoop2.4/lib/jmatrw-v0.1-beta.jar"), it says "INFO: added jar ... with timestamp"
When I type scala> import it.prz.jmatrw.JMATData, spark-shell replies with error: not found: value it.
I spent lot of time searching on Stackoverflow and on Google, indeed a similar Stakoverflow question is here, but I'm still not able to import my custom jar.
Thanks
There are two settings in 1.5.2 to reference an external jar. You can add it for the driver or for the executor(s).
I'm doing this by adding settings to the spark-defaults.conf, but you can set these at spark-shell or in SparkConf.
spark.driver.extraClassPath /path/to/jar/*
spark.executor.extraClassPath /path/to/jar/*
I don't see anything really wrong with the way you are doing it, but you could try the conf approach above, or setting these using SparkConf
val conf = new SparkConf()
conf.set("spark.driver.extraClassPath", "/path/to/jar/*")
val sc = new SparkContext(conf)
In general, I haven't enjoyed working with Spark on Windows. Try to get onto Unix/Linux.

phpexcel doesn't work in preprocess function for drupal 7

I'm trying to use phpexcel to parse .xls files but I always get the same error :
Fatal error: Class 'PHPExcel_IOFactory' not found
I have installed the phpexcel module without any errors. Where is problem ?
Thanks.
In addition to enabling the module, you need to download the PHPExcel library (version 1.7).
After that PHPExcel library can be extracted in any libraries folder you want (sites/*/libraries). You should have sites/*/libraries/PHPExcel/Classes/PHPExcel.php.
Hope this will help.

Julia error: no method haskey(Dict{String,Dict{String,String}},ASCIIString)

I'm trying to test out the Winston plotting engine in Julia. I installed the package but I'm getting some errors now when I try to compile one of the examples:
> julia example1.jl
Warning: could not import Base.haskey into Inifile
Warning: could not import Graphics.set_source into Color
ERROR: no method haskey(Dict{String,Dict{String,String}},ASCIIString)
in read at /Users/thinkpad20/.julia/IniFile/src/IniFile.jl:41
in read at /Users/thinkpad20/.julia/IniFile/src/IniFile.jl:67
in anonymous at /Users/thinkpad20/.julia/Winston/src/Winston.jl:39
in include_from_node1 at loading.jl:88
in reload_path at loading.jl:111
in require at loading.jl:46
in include_from_node1 at loading.jl:88
in process_options at client.jl:253
in _start at client.jl:334
at /Users/thinkpad20/.julia/Winston/src/Winston.jl:31
at /Users/thinkpad20/.julia/Winston/examples/example1.jl:3
can anyone tell me what's going on? It seems to be that it can't find Base.haskey, but I'm not sure how to address that.
Try inspecting Base.VERSION
haskey was introduced in Julia v0.2 (still pre-release as of this writing), I suspect that you are running a version 0.1.x
The real problem is inside of the Winston package. It sounds like they have their REQUIRES information set up wrong. You should file an issue here: https://github.com/nolta/Winston.jl
You can also download pre-release version of 0.2 for windows and mac here: https://code.google.com/p/julialang/downloads/list

Resources