os.path.samefile not on Windows

Bug #271882 reported by joep
4
Affects Status Importance Assigned to Milestone
Pythoscope
Fix Released
Medium
Michal Kwiatkowski

Bug Description

Working through the tutorial on Windows XP I get an error because
os.path.samefile does not on exist on Windows.

After removing the if statement condition, pythoscope runs trough the tutorial without
further errors/exceptions

pythoscope testproj/old_python.py testproj/old_nest.py
Ups, it seems internal Pythoscope error occured. Please file a bug report at htt
ps://bugs.launchpad.net/pythoscope

Traceback (most recent call last):
  File "c:\programs\python24\scripts\pythoscope-script.py", line 7, in ?
    sys.exit(
  File "c:\programs\python24\lib\site-packages\pythoscope-0.3-py2.4.egg\pythosco
pe\__init__.py", line 154, in main
    generate_tests(args, force, template)
  File "c:\programs\python24\lib\site-packages\pythoscope-0.3-py2.4.egg\pythosco
pe\__init__.py", line 92, in generate_tests
    project = Project.from_directory(find_project_directory(modules[0]))
  File "c:\programs\python24\lib\site-packages\pythoscope-0.3-py2.4.egg\pythosco
pe\__init__.py", line 68, in find_project_directory
    return find_project_directory(os.path.dirname(path))
  File "c:\programs\python24\lib\site-packages\pythoscope-0.3-py2.4.egg\pythosco
pe\__init__.py", line 74, in find_project_directory
    if os.path.samefile(path, parent_path):
AttributeError: 'module' object has no attribute 'samefile'

Related branches

Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Confirmed, fix is on its way.

Changed in pythoscope:
assignee: nobody → ruby
importance: Undecided → Medium
milestone: none → dynamic-analysis
status: New → Confirmed
Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Fix commited to the trunk in revision 190. Thank you for the bug report!

Changed in pythoscope:
status: Confirmed → Fix Committed
Changed in pythoscope:
milestone: dynamic-analysis → dynamic-analysis-fixes
Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Fix released in 0.3.1.

Changed in pythoscope:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.