Coder Social home page Coder Social logo

Error when Save As a file about sci-corpus HOT 9 CLOSED

zericardo avatar zericardo commented on July 2, 2024
Error when Save As a file

from sci-corpus.

Comments (9)

tiagocampo avatar tiagocampo commented on July 2, 2024

There are two different errors happening and none of then is about saving!
The first I'll have to think because I thought that was correct. The second
is because u don't have the shutil installed which is the third dependence.
Em 06/05/2014 00:38, "Daniel Pizetta" [email protected] escreveu:

It creates the file, but not save anything.

[image: screenshot 2014-05-06 00 29 23]https://cloud.githubusercontent.com/assets/5084939/2885788/163e997e-d4cf-11e3-8ac4-6d764afde9fb.png

In the screen it maintains the categories and sentences and appears the
file path and name. But if you click in Save, show another error:

[image: screenshot 2014-05-06 00 33 59]https://cloud.githubusercontent.com/assets/5084939/2885805/df9fb4ba-d4cf-11e3-80bd-fa1b2f41c46a.png

If you close and try to reopen, it do nothing.


Reply to this email directly or view it on GitHubhttps://github.com//issues/44
.

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 2, 2024

The first I'll have to think because I thought that was corrected*.

python-unipath is the package containing shutil module!

from sci-corpus.

dpizetta avatar dpizetta commented on July 2, 2024

Shutil is a python standart library not need install. Some information:

Warning Even the higher-level file copying functions (shutil.copy(), shutil.copy2()) cannot copy all file metadata. On POSIX platforms, this means that file owner and group are lost as well as ACLs. On Mac OS, the resource fork and other metadata are not used. This means that resources will be lost and file type and creator codes will not be correct. On Windows, file owners, ACLs and alternate data streams are not copied.

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 2, 2024

Thus I'll have to think about other strategy.

On Tue, May 6, 2014 at 8:03 AM, Daniel Pizetta [email protected]:

Shutil is a python standart library not need install. Some information:

Warning Even the higher-level file copying functions (shutil.copy(),
shutil.copy2()) cannot copy all file metadata. On POSIX platforms, this
means that file owner and group are lost as well as ACLs. On Mac OS, the
resource fork and other metadata are not used. This means that resources
will be lost and file type and creator codes will not be correct. On
Windows, file owners, ACLs and alternate data streams are not copied.


Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-42288996
.

                  Tiago de Campos
  ----------------------------------------------------------

                Skype: tiagocampo1
  https://www.facebook.com/tiagodecampo

from sci-corpus.

dpizetta avatar dpizetta commented on July 2, 2024

Not working yet... did you test it?

pizetta:~/workspace/sci-corpus/sci_corpus$ python sci_corpus_main.py
Error: /home/pizetta/workspace/sci-corpus/examples/teste - No such file or directory.
Error: /home/pizetta/workspace/sci-corpus/examples/teste.db - No such file or directory.

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 2, 2024

It's working. When you save a file, the program trys to remove the file and
then save. If the file doens exist, it will raise this error, but it is
expected!

On Tue, May 6, 2014 at 2:43 PM, Daniel Pizetta [email protected]:

Reopened #44 #44.


Reply to this email directly or view it on GitHubhttps://github.com//issues/44#event-118345289
.

                  Tiago de Campos
  ----------------------------------------------------------

                Skype: tiagocampo1
  https://www.facebook.com/tiagodecampo

from sci-corpus.

dpizetta avatar dpizetta commented on July 2, 2024

Why is expected? HAUhaua you need to treat it if was expected, not raise an
error. Raise you use just when you dont expect.

On Tue, May 6, 2014 at 3:26 PM, tiagocampo [email protected] wrote:

It's working. When you save a file, the program trys to remove the file
and
then save. If the file doens exist, it will raise this error, but it is
expected!

On Tue, May 6, 2014 at 2:43 PM, Daniel Pizetta [email protected]:

Reopened #44 #44.

Reply to this email directly or view it on GitHub<
https://github.com/zericardo182/sci-corpus/issues/44#event-118345289>
.

Tiago de Campos

Skype: tiagocampo1
https://www.facebook.com/tiagodecampo

Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-42340157
.

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 2, 2024

I want to know if you still have the problem when you try to save or open and the program says that the table already exists.
And the shutil problem? did you change the import name? cause I dont!

from sci-corpus.

dpizetta avatar dpizetta commented on July 2, 2024
  • I correct the problem of shutil. On Linux ii was working, but on windows
    not. I will test again.
  • You need to treat the problem of Error: - No such file or directory.
    when save at fist time, just put an if os.path.exists(path) before try to
    remove, because it causes a break when it raises an error and not continue
    the actions after the raise!
  • The table problem was corrected;

On Tue, May 6, 2014 at 3:33 PM, tiagocampo [email protected] wrote:

I want to know if you still have the problem when you try to save or open
and the program says that the table already exists.
And the shutil problem? did you change the import name? cause I dont!

Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-42340987
.

from sci-corpus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.