I am trying to import a csv file into sugarCRM but on step 2 my data looks like: ;cqà,ý¼nÉBÏÛï÷£ýd$ÕÆóWHkÂQËrÅTyÀÁ
I have just no idea whatsoever what to do. I've tried researching how to import and I am just not seeing anything that helps me with my problem.
Try setting your input file format to UTF-8 and see if that solves the problem. Sounds like a problem with file encoding...
Related
I am trying (for a long time) to use pyrevit forms to open excel files, but everytime I try to use it, a different error appears. The most recent error is the one in the image.
If I try 'from pyrevit import *', the error is:
Exception : System.MissingMemberException: 'module' object has no attribute 'compat'
Does anyone have any idea what I'm doing wrong? I don't know what else to do... Sorry for my ignorance.
Thank you very much in advance!
new error message:
It looks like some links are missing. Have you tried reinstalling .NET Framework or pyrevit?
The problem may be with from pyrevit import * because it is not in your PATH. I was able to use pyRevit forms by adding its library and additional packages folders like this:
import sys
sys.path.append(r'C:\Users\<username>\AppData\Roaming\pyRevit-Master\pyrevitlib')
sys.path.append(r'C:\Users\<username>\AppData\Roaming\pyRevit-Master\site-packages')
from pyrevit import forms
Just replace <username> and paste into RevitPythonShell, provided pyRevit is installed in the default location. Other pyrevit modules should work similarly.
In draw.io there is a very nice option to create a diagram using CSV import utility (Arrange->Insert->Advanced->CSV). It is very simple and straight forward.
I was trying to find a way to do it using an API (REST for example), is there a way to do it?
One more question:
Does anybody knows if there's a way to create draw.io file with multiple pages using the CSV import utility?
Thanks
Danny
Absolutely possible. Working example here: https://github.com/GanizaniSitara/drawio/
pyMX.py you want to have a look at first.
It creates the file in XML then encodes it and packs it into the drawio format.
Needs input data in CSV in format:
Level0,Level1,Level2,AppName,TC,StatusRAG,Status,HostingPercent,HostingPattern1,HostingPattern2,Arrow1,Arrow2,Link
Cool Division,Some Department,Some Department2,SomeString,Zero,25,red,green,0,Azure,Linux,up,up,http://www.gooogle.com
Rinse and repeat for anything else you need to create. It's rough code, ping me here or on GitHub if anything needs clarification.
I try to import data from twinCAT into matlab for analyzing.
I have tried it with the code:
Tb = readtable('LogTestScopeView1.csv');
But that didn't work. I guess the header of a twinCAT csv-file is a bit more complicated.
Have someone experience with this?
Already many thanks.
This might depend on the header configuration you choose in the TwinCAT Scope Export Wizard. E.g. when choosing "Name only header" the readtable() command worked fine for me. Also, I selected "Comma" as CSV-Separator and "Point" as Decimal mark (see this
Measurement Export Wizard screenshot)
If you just need to quickly analyze the data and don't need code to automate this process, you can also use Matlab's import tool (Home -> Import Data), where you can interactively select the data to import.
Im trying to use a created 'bazaar' config file with this format (I tryed setting T and F):
load_system_dawg F
load_freq_dawg F
user_words_suffix user-words
I'm using as Latin.traineddata language and created a Latin.user-words in same directory /tessdata
with some words, like:
Monotributista,
Monotributista (with and without comma)
tesseract without config paramethers game me this, around other words, is a 5 pages text Nfonotributista,
So I tried with the user-words, maybe it can correct that, using this code:
import pytesseract
pytesseract.pytesseract.tesseract_cmd =r'C:\Program Files\Tesseract-OCR\tesseract'
imagen=Image.open("page-1.png")
text=pytesseract.image_to_string(imagen, lang='Latin', config='bazaar')
No errors, but same result, I cannot find much documentation to know what's happening behind, is it using the config? is it trying the OCRed words against the dictionary?
Is there anything wrong on my code?
I appreciate any help
Thank you!
Edit: added some character with bad recognition:
First one detects LIL or LII
Seccond detects LI
I have a webpage
https://www.google.com/finance/getprices?q=RELIANCE&x=NSE&i=60&p=5d&f=d,c,o,h,l&df=cpct&auto=1&ts=1266701290218
And I'm trying to get the data into a chart.
Any suggestions on how this can be done? Please no code, I just can't get any of it work.
you could use python in this way (writing csv files that are well understood by excel or similar):
#!/bin/python
import urllib2
response = urllib2.urlopen('https://www.google.com/finance/getprices?q=RELIANCE&x=NSE&i=60&p=5d&f=d,c,o,h,l&df=cpct&auto=1&ts=1266701290218')
data = response.read()
import csv
with open('data.csv', 'wb') as csvfile:
writer = csv.writer(csvfile, delimiter=',',
quotechar='"', quoting=csv.QUOTE_MINIMAL)
for line in data.split("\n"):
writer.writerow(list(line.split(",")))
be sure to open it setting the comma as field delimiter.
sorry I skipped the no-code part.