AttributeError: 'unicode' object has no attribute 'readline'

Vincenzo Molendini <[email protected]>
Newsgroups gmane.comp.lang.jython.devel
Message-ID <[email protected]>
Dear all,I have imported a new version of eppy library 
Eppy Tutorial — eppy 0.4.6.4a documentation
santoshphilip/eppy

|   |
|   |  |   |   |   |   |   |
| santoshphilip/eppyeppy - scripting language for E+, Energyplus |
|  |
| Visualizza su github.com | Anteprima per Yahoo |
|  |
|   |

  
|   |
|   |  |   |   |   |   |   |
| Eppy Tutorial — eppy 0.4.6.4a documentationEppy Tutorial¶ Authors: Santosh Philip, Leora Tanjuatco Eppy is a scripting language for E+ idf files, and E+ output files. Eppyis written in the programmin... |
|  |
| Visualizza su pythonhosted.org | Anteprima per Yahoo |
|  |
|   |


in a Java Web Application and when I doing this
iddfile = request.getContextPath() + '/Energy+V7_2_0.idd'fname1 = request.getContextPath() + '/smallfile.idf'IDF.setiddname(iddfile)idf1 = IDF(fname1)
I have this error:
Traceback (most recent call last):
  File "/Users/vincenzo/NetBeansProjects/ProvaPython/build/web/serv.py", line 18, in doPost
    idf1 = IDF(fname1)
  File "/Users/vincenzo/NetBeansProjects/ProvaPython/build/web/eppy/modeleditor.py", line 615, in __init__
    super(IDF3, self).__init__(idfname)
  File "/Users/vincenzo/NetBeansProjects/ProvaPython/build/web/eppy/modeleditor.py", line 560, in __init__
    super(IDF2, self).__init__(idfname)
  File "/Users/vincenzo/NetBeansProjects/ProvaPython/build/web/eppy/modeleditor.py", line 488, in __init__
    super(IDF1, self).__init__(idfname)
  File "/Users/vincenzo/NetBeansProjects/ProvaPython/build/web/eppy/modeleditor.py", line 442, in __init__
    self.read()
  File "/Users/vincenzo/NetBeansProjects/ProvaPython/build/web/eppy/modeleditor.py", line 472, in read
    readout = idfreader1(self.idfname, self.iddname,
  File "/Users/vincenzo/NetBeansProjects/ProvaPython/build/web/eppy/idfreader.py", line 148, in idfreader1
    versiontuple = iddversiontuple(iddfile)
  File "/Users/vincenzo/NetBeansProjects/ProvaPython/build/web/eppy/idfreader.py", line 35, in iddversiontuple
    line1 = fhandle.readline()
AttributeError: 'unicode' object has no attribute 'readline'
 Why?
Many thanks.

------------------------------------------------------------------------------

_______________________________________________
Jython-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.