importing error

View: New views
15 Messages — Rating Filter:   Alert me  

importing error

by wavemaster2000 :: Rate this Message:

| View Threaded | Show Only this Message

Hi all,

I had taken a class using zope last summer and had worked on a project, on completion of the class, I exported my project folder via the zmi interface. I have tried to load it on to my local zope instance and it does not import.

I can import files into it with out a problem, but for some reason the folder does not import, I get a page can not be displayed error. I do not know whta products are missing if any, as fas as the Prof said, the only thing I needed way Mysql installed, which I have and I have linked it to zope.

still no luck
I have tried inporting it into a different folder adn intot he root directory with no luck. does anyone have any suggestions

thanks in advance

Re: importing error

by Andreas Jung-5 :: Rate this Message:

| View Threaded | Show Only this Message



--On 14. März 2006 07:38:21 -0800 wavemaster2000
<fernand3@...> wrote:

>
> Hi all,
>
> I had taken a class using zope last summer and had worked on a project, on
> completion of the class, I exported my project folder via the zmi
> interface. I have tried to load it on to my local zope instance and it
> does not import.
>
> I can import files into it with out a problem, but for some reason the
> folder does not import, I get a page can not be displayed error. I do not
> know whta products are missing if any, as fas as the Prof said, the only
> thing I needed way Mysql installed, which I have and I have linked it to
> zope.
>
>
If there is an error you should find additional information including a
traceback in /error_log. You must provide these informations for getting
help.

-aj


    -----------------------------------------------------------------------
   -   Andreas Jung            ZOPYX Ltd. & Co KG                        -
  -   E-mail: info@...   Web: www.zopyx.com, www.zopyx.de         -
   -----------------------------------------------------------------------


_______________________________________________
Zope maillist  -  Zope@...
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

attachment0 (193 bytes) Download Attachment

Re: importing error

by wavemaster2000 :: Rate this Message:

| View Threaded | Show Only this Message

this is what I found on the traceback

2006-03-14T10:42:06 ERROR Zope Could not import Products.ZMySQLDA
Traceback (most recent call last):
  File "C:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py", line 695, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\__init__.py", line 91, in ?
    import DA
  File "C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\DA.py", line 92, in ?
    from db import DB
  File "C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\db.py", line 89, in ?
    import _mysql
ImportError: DLL load failed: The specified module could not be found.

Re: importing error

by Andreas Jung-5 :: Rate this Message:

| View Threaded | Show Only this Message



--On 14. März 2006 07:53:50 -0800 wavemaster2000
<fernand3@...> wrote:

>
> this is what I found on the traceback
>
> 2006-03-14T10:42:06 ERROR Zope Could not import Products.ZMySQLDA
> Traceback (most recent call last):
>   File "C:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py",
> line 695, in import_product
>     product=__import__(pname, global_dict, global_dict, silly)
>   File "C:\Program
> Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\__init__.py", line 91,
> in ?
>     import DA
>   File "C:\Program
> Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\DA.py", line 92, in ?
>     from db import DB
>   File "C:\Program
> Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\db.py", line 89, in ?
>     import _mysql
> ImportError: DLL load failed: The specified module could not be found.
Well, this message is obvious: you don't have mysql-python installed or the
installation is broken.

-aj

    -----------------------------------------------------------------------
   -   Andreas Jung            ZOPYX Ltd. & Co KG                        -
  -   E-mail: info@...   Web: www.zopyx.com, www.zopyx.de         -
   -----------------------------------------------------------------------


_______________________________________________
Zope maillist  -  Zope@...
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

attachment0 (193 bytes) Download Attachment

Re: importing error

by wavemaster2000 :: Rate this Message:

| View Threaded | Show Only this Message

I had MySQLdb (MySQL for Python) 0.9.1, downloaded another one and will try it out, will post backa s soon as I am done

Re: importing error

by wavemaster2000 :: Rate this Message:

| View Threaded | Show Only this Message

didnt seem to help, I got the same error, I am running python 2.4 and I downloaded and installed Mysql for python 1.20


2006-03-14T11:22:26 ERROR Zope Could not import Products.ZMySQLDA
Traceback (most recent call last):
  File "C:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py", line 695, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\__init__.py", line 91, in ?
    import DA
  File "C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\DA.py", line 92, in ?
    from db import DB
  File "C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\db.py", line 89, in ?
    import _mysql
ImportError: DLL load failed: The specified module could not be found.
------
2006-03-14T11:22:27 INFO Zope Ready to handle requests
------
2006-03-14T11:22:38 WARNING ZODB Could not import class 'PloneFolder' from module 'Products.CMFPlone.PloneFolder'

Re: importing error

by Paul Winkler :: Rate this Message:

| View Threaded | Show Only this Message

You're running on Windows?
The windows zope installer comes with its own Python.
I think you have to make sure that the mysql extension
gets installed for the right python.

Sorry, I don't run windows so I can't suggest anything more detailed.

-PW

On Tue, Mar 14, 2006 at 08:28:32AM -0800, wavemaster2000 wrote:

>
> didnt seem to help, I got the same error, I am running python 2.4 and I
> downloaded and installed Mysql for python 1.20
>
>
> 2006-03-14T11:22:26 ERROR Zope Could not import Products.ZMySQLDA
> Traceback (most recent call last):
>   File "C:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py",
> line 695, in import_product
>     product=__import__(pname, global_dict, global_dict, silly)
>   File "C:\Program
> Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\__init__.py", line 91,
> in ?
>     import DA
>   File "C:\Program
> Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\DA.py", line 92, in ?
>     from db import DB
>   File "C:\Program
> Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\db.py", line 89, in ?
>     import _mysql
> ImportError: DLL load failed: The specified module could not be found.
> ------
> 2006-03-14T11:22:27 INFO Zope Ready to handle requests
> ------
> 2006-03-14T11:22:38 WARNING ZODB Could not import class 'PloneFolder' from
> module 'Products.CMFPlone.PloneFolder'
>
> --
> View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3399845
> Sent from the Zope - General forum at Nabble.com.
>
> _______________________________________________
> Zope maillist  -  Zope@...
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )

--

Paul Winkler
http://www.slinkp.com
_______________________________________________
Zope maillist  -  Zope@...
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Parent Message unknown Re: importing error

by Bert Vanderbauwhede :: Rate this Message:

| View Threaded | Show Only this Message

> this is what I found on the traceback
>
> 2006-03-14T10:42:06 ERROR Zope Could not import Products.ZMySQLDA

I don't know if this is the same problem, but I never could import a
folder containing a ZMySQLDA
object, even if the same package/product versions were installed on
both machines. I solved it by
removing the ZMySQLDA from the folder, exporting/importing the folder,
and recreating the
ZMySQLDA.


Bert...
_______________________________________________
Zope maillist  -  Zope@...
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Re: importing error

by wavemaster2000 :: Rate this Message:

| View Threaded | Show Only this Message

hey Bert, I tried what you suggested and no luck

Re: importing error

by Andreas Jung-5 :: Rate this Message:

| View Threaded | Show Only this Message



--On 14. März 2006 10:01:56 -0800 wavemaster2000
<fernand3@...> wrote:

>
> hey Bert, I tried what you suggested and no luck
>

You should check if there is something like a _mysql.* file ...try to
locate it move and try to move it e.g. the lib/python directoy of your Zope
installation.

-aj

    -----------------------------------------------------------------------
   -   Andreas Jung            ZOPYX Ltd. & Co KG                        -
  -   E-mail: info@...   Web: www.zopyx.com, www.zopyx.de         -
   -----------------------------------------------------------------------


_______________________________________________
Zope maillist  -  Zope@...
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

attachment0 (193 bytes) Download Attachment

Re: importing error

by wavemaster2000 :: Rate this Message:

| View Threaded | Show Only this Message

these are the files that I had copied into C:\Program Files\Zope-2.8.1-final/lib/python/
MySQLdb
    _mysql.pyd
    _mysql.exceptions.py
    _mysql.exceptions.pyc

and
ZMySQLDA
   
    to:  C:\Program Files\Zope-2.8.1-final/lib/python/Products/

Re: importing error

by wavemaster2000 :: Rate this Message:

| View Threaded | Show Only this Message

I have reinstalled zope, but now when I try to import, the files in the import folder dont show up in the drop down box, the box does not show up, I know there somethign you have to do to get zope initialize importing stuff, but I cant remember what exactly it is

Re: importing error

by Chris Withers :: Rate this Message:

| View Threaded | Show Only this Message

wavemaster2000 wrote:
> I have reinstalled zope, but now when I try to import, the files in the
> import folder dont show up in the drop down box, the box does not show up, I
> know there somethign you have to do to get zope initialize importing stuff,
> but I cant remember what exactly it is

Sounds like a permission problem. Can the user zope is running as (also
check your effective-user in zope.conf) read the 'import' directory in
your instance home?

> View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3404114
> Sent from the Zope - General forum at Nabble.com.

WTF is Nabble? *grumbles* ad-ware *grumbles*

Chris

--
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk

_______________________________________________
Zope maillist  -  Zope@...
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Re: importing error

by wavemaster2000 :: Rate this Message:

| View Threaded | Show Only this Message

found the problem with the permissions, but still no luck.
I have found 2 web papges that was kinda helpful

http://www.devshed.com/c/a/Zope/Zope-And-MySQL/2/
and
http://www.transana.org/developers/setup/MySQLPython_Win_MU.htm

for the later one, I installed mysql4.1.14, but the file that they said to copy, the lib one wasnt availlable,
but I edited the setup.py and everything compiled I think, how ever I get an error message saying that the script was compliled using microsoft visual 6, and I need some extensions

so thats my new problem
I know there isnt much support for winxp out there, if I get it to work, I intend to document it.
thanks

Re: importing error

by wavemaster2000 :: Rate this Message:

| View Threaded | Show Only this Message

I have now installed visual studio express 6, in the compiler dos promt, i type in the setup.py build, it still gives me that same error