Hi Qooxdoo Team :-)

I found some very interesting fact.
Although I'm not really a skilled Python programmer, I've been able to find
where the exception comes from.
But I don't know how to solve it...

I have added a line in \qooxdoo-4.0-sdk\tool\pylib\misc\json.py
This line simply prints the current working directory in function
loadStripComments.

  def loadStripComments(path, **kwargs):
      print "Current directory:", os.getcwd()          <--- I added this
line
      s = codecs.open(path, "r", "utf-8").read()
      return loadsStripComments(s, **kwargs)

Then I used another Windows PC (on which the generation is working
perfectly) and made a generation and got this result:

  C:\data\prgweb\qxtest>python generate.py source
  
  
 
----------------------------------------------------------------------------
      Initializing: qxtest
 
----------------------------------------------------------------------------
  >>> Processing configuration
  Current directory: C:\data\prgweb\qxtest
  Current directory: C:\data\prgweb\qxtest
  Current directory: C:\data\prgweb\qxtest
  Current directory: C:\data\prgweb\qxtest
  Current directory: C:\data\prgweb\qxtest
  Current directory: C:\data\prgweb\qxtest
  Current directory: C:\data\prgweb\qxtest
  Current directory: C:\data\prgweb\qxtest
  Current directory: C:\data\prgweb\qxtest
  
 
----------------------------------------------------------------------------
      Executing: source::source-script
 
----------------------------------------------------------------------------
  >>> Scanning libraries
  >>> Collecting classes
    - Sorting 257 classes
  >>> Generate application
    - Processing 2 locales
    - Generate packages
    - Generate loader script
  >>> Done (0m01.40)
  
  C:\data\prgweb\qxtest>

So far, so good. The application is correctly generated.
Then I did EXACTLY THE SAME on my work PC and here's the result:

  C:\data\prgweb\qxtest>python generate.py source
  
 
----------------------------------------------------------------------------
      Initializing: data
 
----------------------------------------------------------------------------
  >>> Processing configuration
  Current directory: C:\data
  <type 'exceptions.IOError'> :
  2
  No such file or directory
  
  C:\data\prgweb\qxtest>


There are two things we can see here:
- The first line says "Initializing: data" whereas the other PC said
"Initializing: qxtest" which is the correct name for my application.
- The current directory is "C:\data" instead of "C:\data\prgweb\qxtest".

I have no idea why the current directory is not the same in both cases.
The paths are exactly the same on both machines, same version of Python, I
really don't understand.
The second machine (the one where it works) is on Windows XP with the same
domain/user.

I hope this can lead you to a solution, I will try to find a way to overcome
this problem in the meantime.

Many thanks :-)
Marc.



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Generator-config-json-not-found-tp7585866p7585890.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to